ISRC-CAS / tarsier-oerv

Project magament for porting openEuler to RISC-V
Apache License 2.0
33 stars 51 forks source link

unmatched上安装openeuler测试 #217

Closed xijing21 closed 2 years ago

xijing21 commented 2 years ago

镜像地址:p8:/home/plct/openEuler-unmatched/openEuler-unmatched.img.bz2 已经发布到:https://mirror.iscas.ac.cn/plct/openEuler-unmatched.img.bz2

unmatched开发板烧录openeuler镜像过程:https://github.com/xijing21/rvOe_study/blob/main/unmatched/unmatched_oe%E5%AE%89%E8%A3%85.md

安装结果:

  1. 能够成功进入系统 image

  2. 进入系统后,用nmtui 命令对wifi进行设置后,能够联网、安装软件 image

  3. 看到ifconfig有docker信息,发现镜像已经内置了docker,测一下docker: 修改/etc/docker/daemon.json 添加内容:

    "registry-mirrors": [
    "https://hub.daocloud.io/",
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com",
    "https://docker.mirrors.ustc.edu.cn",
    "https://mirror.ccs.tencentyun.com",
    "https://registry.hub.docker.com/",
    "http://aad0405c.m.daocloud.io",
    "https://3laho3y3.mirror.aliyuncs.com",
    "http://f1361db2.m.daocloud.io"
    ],
    "experimental": true

    重启docker之后,拉取ubuntu镜像并启动ubuntu成功。

image

本次测试简单测试了镜像是否可以成功烧录和启动,网络、docker;更多功能暂未测试。

xijing21 commented 2 years ago

补充: 之前用金士顿的64G 容量的SD卡执行同样的操作,烧录后启动系统未成功,不知道是否卡的类型还会影响烧录结果。

串口提示信息:

ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-riscv
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
Config file not found
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
=> 
=> 
=> ÿ

64G SD卡 dd烧录之后不扩容,启动:

U-Boot SPL 2021.07-dirty (Nov 26 2021 - 15:19:41 +0800)
Trying to boot from MMC1

U-Boot 2021.07-dirty (Nov 26 2021 - 15:19:41 +0800)

CPU:   rv64imafdc
Model: SiFive HiFive Unmatched A00
DRAM:  16 GiB
MMC:   spi@10050000:mmc@0: 0
Loading Environment from nowhere... OK
EEPROM: SiFive PCB EEPROM format v1
Product ID: 0002 (HiFive Unmatched)
PCB revision: 3
BOM revision: B
BOM variant: 0
Serial number: SF105SZ212200852
Ethernet MAC address: 70:b3:d5:92:fa:29
CRC: 16bdef1f
In:    serial@10010000
Out:   serial@10010000
Err:   serial@10010000
Model: SiFive HiFive Unmatched A00
Net:   eth0: ethernet@10090000
Hit any key to stop autoboot:  0 
PCIE-0: Link up (Gen1-x8, Bus0)

Device 0: Vendor: 0x15b7 Rev: 233010WD Prod: 21311Q801399        
            Type: Hard Disk
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
... is now current device
** No partition table - nvme 0 **
Couldn't find partition nvme 0:1
starting USB...
Bus xhci_pci: Register 4000840 NbrPorts 4
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 8 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:3...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
212 bytes read in 4 ms (51.8 KiB/s)
1:  openEuler-Unmatched
Retrieving file: /boot/vmlinux-5.13.19
9932459 bytes read in 8462 ms (1.1 MiB/s)
append: earlyprintk rw root=/dev/mmcblk0p3 rootfstype=ext4 rootwait console=ttySIF0,115200 earlycon
Retrieving file: /boot/dtbs/5.13.19/sifive/hifive-unmatched-a00.dtb
10927 bytes read in 16 ms (666 KiB/s)
   Uncompressing Kernel Image
Moving Image from 0x84000000 to 0x80200000, end=816ba000
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Using Device Tree in place at 0000000088000000, end 0000000088005aae

Starting kernel ...

[    0.000000] Linux version 5.13.19 (merle@x390) (riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #2 SMP Fri Nov 26 22:39:58 CST 2021
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] Machine model: SiFive HiFive Unmatched
[    0.000000] earlycon: sifive0 at MMIO 0x0000000010010000 (options '')
[    0.000000] printk: bootconsole [sifive0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000047fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x000000047fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000047fffffff]
[    0.000000] On node 0, zone DMA32: 512 pages in unavailable ranges
[    0.000000] SBI specification v0.2 detected
[    0.000000] SBI implementation ID=0x1 Version=0x9
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 28 pages/cpu s74136 r8192 d32360 u114688
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
[    0.000000] Kernel command line: earlyprintk rw root=/dev/mmcblk0p3 rootfstype=ext4 rootwait console=ttySIF0,115200 earlycon
[    0.000000] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[    0.000000] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 16383408K/16775168K available (12741K kernel code, 2307K rwdata, 4928K rodata, 819K init, 412K bss, 391760K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 44647 entries in 175 pages
[    0.000000] ftrace: allocated 175 pages with 6 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@c000000: mapped 69 interrupts with 4 handlers for 9 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x438/0x616 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [3]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[    0.000002] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[    0.008542] Console: colour dummy device 80x25
[    0.012857] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=4000)
[    0.022850] pid_max: default: 32768 minimum: 301
[    0.028425] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.036107] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.046005] ASID allocator disabled
[    0.048900] rcu: Hierarchical SRCU implementation.
[    0.053852] EFI services will not be available.
[    0.058520] smp: Bringing up secondary CPUs ...
[    0.064960] smp: Brought up 1 node, 4 CPUs
[    0.071911] devtmpfs: initialized
[    0.077303] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.086335] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.094160] NET: Registered protocol family 16
[    0.098053] audit: initializing netlink subsys (disabled)
[    0.103459] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1
[    0.103765] thermal_sys: Registered thermal governor 'step_wise'
[    0.195160] raid6: int64x8  gen()   703 MB/s
[    0.272749] raid6: int64x8  xor()   478 MB/s
[    0.340870] raid6: int64x4  gen()  1120 MB/s
[    0.408943] raid6: int64x4  xor()   645 MB/s
[    0.477050] raid6: int64x2  gen()  1156 MB/s
[    0.545145] raid6: int64x2  xor()   627 MB/s
[    0.613255] raid6: int64x1  gen()   763 MB/s
[    0.681323] raid6: int64x1  xor()   467 MB/s
[    0.684812] raid6: using algorithm int64x2 gen() 1156 MB/s
[    0.690291] raid6: .... xor() 627 MB/s, rmw enabled
[    0.695155] raid6: using intx1 recovery algorithm
[    0.700029] iommu: Default domain type: Translated 
[    0.704870] vgaarb: loaded
[    0.707717] SCSI subsystem initialized
[    0.711502] usbcore: registered new interface driver usbfs
[    0.716703] usbcore: registered new interface driver hub
[    0.721942] usbcore: registered new device driver usb
[    0.727071] EDAC MC: Ver: 3.0.0
[    0.730465] Advanced Linux Sound Architecture Driver Initialized.
[    0.737224] clocksource: Switched to clocksource riscv_clocksource
[    0.843274] VFS: Disk quotas dquot_6.6.0
[    0.846562] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.863451] NET: Registered protocol family 2
[    0.874309] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.896245] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.904765] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.916664] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.927616] TCP: Hash tables configured (established 131072 bind 65536)
[    0.936065] MPTCP token hash table entries: 16384 (order: 6, 393216 bytes, linear)
[    0.943456] UDP hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.950828] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.958764] NET: Registered protocol family 1
[    0.963750] RPC: Registered named UNIX socket transport module.
[    0.968939] RPC: Registered udp transport module.
[    0.973612] RPC: Registered tcp transport module.
[    0.978296] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.984728] NET: Registered protocol family 44
[    0.989163] PCI: CLS 0 bytes, default 64
[    0.993892] Initialise system trusted keyrings
[    0.997780] workingset: timestamp_bits=46 max_order=22 bucket_order=0
[    1.011819] NFS: Registering the id_resolver key type
[    1.016133] Key type id_resolver registered
[    1.020277] Key type id_legacy registered
[    1.024371] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.030963] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.038343] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.046074] SGI XFS with ACLs, security attributes, realtime, scrub, repair, quota, no debug enabled
[    1.055963] 9p: Installing v9fs 9p2000 file system support
[    1.093837] NET: Registered protocol family 38
[    1.097527] xor: measuring software checksum speed
[    1.106079]    8regs           :  2608 MB/sec
[    1.113445]    8regs_prefetch  :  2608 MB/sec
[    1.120541]    32regs          :  2800 MB/sec
[    1.127654]    32regs_prefetch :  2793 MB/sec
[    1.131237] xor: using function: 32regs (2800 MB/sec)
[    1.136279] Key type asymmetric registered
[    1.140359] Asymmetric key parser 'x509' registered
[    1.145257] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.152786] io scheduler mq-deadline registered
[    1.157128] io scheduler kyber registered
[    2.269107] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    2.296825] fu740-pcie e00000000.pcie: host bridge /soc/pcie@e00000000 ranges:
[    2.303402] fu740-pcie e00000000.pcie:       IO 0x0060080000..0x006008ffff -> 0x0060080000
[    2.311624] fu740-pcie e00000000.pcie:      MEM 0x0060090000..0x0070ffffff -> 0x0060090000
[    2.319852] fu740-pcie e00000000.pcie:      MEM 0x2000000000..0x3fffffffff -> 0x2000000000
[    2.434203] fu740-pcie e00000000.pcie: invalid resource
[    2.438681] fu740-pcie e00000000.pcie: iATU unroll: enabled
[    2.444231] fu740-pcie e00000000.pcie: Detected iATU regions: 8 outbound, 8 inbound
[    2.551911] fu740-pcie e00000000.pcie: Link up
[    2.555748] fu740-pcie e00000000.pcie: PCI host bridge to bus 0000:00
[    2.562030] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.567490] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x60080000-0x6008ffff])
[    2.576953] pci_bus 0000:00: root bus resource [mem 0x60090000-0x70ffffff]
[    2.583815] pci_bus 0000:00: root bus resource [mem 0x2000000000-0x3fffffffff pref]
[    2.591502] pci 0000:00:00.0: [f15e:0000] type 01 class 0x060400
[    2.597465] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.603711] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    2.610448] pci 0000:00:00.0: supports D1
[    2.614390] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.621198] pci 0000:01:00.0: [1b21:2824] type 01 class 0x060400
[    2.626519] pci 0000:01:00.0: enabling Extended Tags
[    2.631510] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.649868] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.657283] pci 0000:02:00.0: [1b21:2824] type 01 class 0x060400
[    2.663182] pci 0000:02:00.0: enabling Extended Tags
[    2.668178] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.674491] pci 0000:02:02.0: [1b21:2824] type 01 class 0x060400
[    2.680204] pci 0000:02:02.0: enabling Extended Tags
[    2.685201] pci 0000:02:02.0: PME# supported from D0 D3hot D3cold
[    2.691484] pci 0000:02:03.0: [1b21:2824] type 01 class 0x060400
[    2.697229] pci 0000:02:03.0: enabling Extended Tags
[    2.702226] pci 0000:02:03.0: PME# supported from D0 D3hot D3cold
[    2.708526] pci 0000:02:04.0: [1b21:2824] type 01 class 0x060400
[    2.714254] pci 0000:02:04.0: enabling Extended Tags
[    2.719249] pci 0000:02:04.0: PME# supported from D0 D3hot D3cold
[    2.725603] pci 0000:02:08.0: [1b21:2824] type 01 class 0x060400
[    2.731277] pci 0000:02:08.0: enabling Extended Tags
[    2.736273] pci 0000:02:08.0: PME# supported from D0 D3hot D3cold
[    2.742991] pci 0000:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.750252] pci 0000:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.758238] pci 0000:02:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.766228] pci 0000:02:04.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.774227] pci 0000:02:08.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.782903] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    2.788983] pci 0000:04:00.0: [1b21:1142] type 00 class 0x0c0330
[    2.794838] pci 0000:04:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.801764] pci 0000:04:00.0: PME# supported from D3cold
[    2.817866] pci_bus 0000:04: busn_res: [bus 04-ff] end is updated to 04
[    2.823894] pci 0000:05:00.0: [8086:3165] type 00 class 0x028000
[    2.829772] pci 0000:05:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[    2.836764] pci 0000:05:00.0: PME# supported from D0 D3hot D3cold
[    2.853877] pci_bus 0000:05: busn_res: [bus 05-ff] end is updated to 05
[    2.859889] pci 0000:06:00.0: [15b7:5019] type 00 class 0x010802
[    2.865766] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    2.872542] pci 0000:06:00.0: reg 0x20: [mem 0x00000000-0x000000ff 64bit]
[    2.889866] pci_bus 0000:06: busn_res: [bus 06-ff] end is updated to 06
[    2.895880] pci 0000:07:00.0: [1002:68f9] type 00 class 0x030000
[    2.901758] pci 0000:07:00.0: reg 0x10: [mem 0x00000000-0x0fffffff 64bit pref]
[    2.908947] pci 0000:07:00.0: reg 0x18: [mem 0x00000000-0x0001ffff 64bit]
[    2.915728] pci 0000:07:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    2.922739] pci 0000:07:00.0: reg 0x20: [io  size 0x0100]
[    2.928147] pci 0000:07:00.0: reg 0x30: [mem 0x00000000-0x0001ffff pref]
[    2.934826] pci 0000:07:00.0: enabling Extended Tags
[    2.939874] pci 0000:07:00.0: supports D1 D2
[    2.944116] pci 0000:07:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:02:08.0 (capable of 32.000 Gb/s with 2.5 GT/s PCIe x16 link)
[    2.959162] pci 0000:07:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    2.967462] pci 0000:07:00.1: [1002:aa68] type 00 class 0x040300
[    2.973415] pci 0000:07:00.1: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    2.980224] pci 0000:07:00.1: enabling Extended Tags
[    2.985226] pci 0000:07:00.1: supports D1 D2
[    3.001878] pci_bus 0000:07: busn_res: [bus 07-ff] end is updated to 07
[    3.007745] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 07
[    3.014344] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 07
[    3.020988] pci 0000:00:00.0: BAR 15: assigned [mem 0x2000000000-0x200fffffff 64bit pref]
[    3.029107] pci 0000:00:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff]
[    3.035880] pci 0000:00:00.0: BAR 14: assigned [mem 0x60200000-0x605fffff]
[    3.042739] pci 0000:00:00.0: BAR 6: assigned [mem 0x60090000-0x6009ffff pref]
[    3.049948] pci 0000:00:00.0: BAR 13: assigned [io  0x0000-0x0fff]
[    3.056119] pci 0000:01:00.0: BAR 15: assigned [mem 0x2000000000-0x200fffffff 64bit pref]
[    3.064279] pci 0000:01:00.0: BAR 14: assigned [mem 0x60200000-0x605fffff]
[    3.071142] pci 0000:01:00.0: BAR 13: assigned [io  0x0000-0x0fff]
[    3.077314] pci 0000:02:08.0: BAR 15: assigned [mem 0x2000000000-0x200fffffff 64bit pref]
[    3.085473] pci 0000:02:02.0: BAR 14: assigned [mem 0x60200000-0x602fffff]
[    3.092334] pci 0000:02:03.0: BAR 14: assigned [mem 0x60300000-0x603fffff]
[    3.099196] pci 0000:02:04.0: BAR 14: assigned [mem 0x60400000-0x604fffff]
[    3.106058] pci 0000:02:08.0: BAR 14: assigned [mem 0x60500000-0x605fffff]
[    3.112919] pci 0000:02:08.0: BAR 13: assigned [io  0x0000-0x0fff]
[    3.119088] pci 0000:02:00.0: PCI bridge to [bus 03]
[    3.124057] pci 0000:04:00.0: BAR 0: assigned [mem 0x60200000-0x60207fff 64bit]
[    3.131358] pci 0000:02:02.0: PCI bridge to [bus 04]
[    3.136290] pci 0000:02:02.0:   bridge window [mem 0x60200000-0x602fffff]
[    3.143072] pci 0000:05:00.0: BAR 0: assigned [mem 0x60300000-0x60301fff 64bit]
[    3.150379] pci 0000:02:03.0: PCI bridge to [bus 05]
[    3.155310] pci 0000:02:03.0:   bridge window [mem 0x60300000-0x603fffff]
[    3.162094] pci 0000:06:00.0: BAR 0: assigned [mem 0x60400000-0x60403fff 64bit]
[    3.169394] pci 0000:06:00.0: BAR 4: assigned [mem 0x60404000-0x604040ff 64bit]
[    3.176689] pci 0000:02:04.0: PCI bridge to [bus 06]
[    3.181628] pci 0000:02:04.0:   bridge window [mem 0x60400000-0x604fffff]
[    3.188413] pci 0000:07:00.0: BAR 0: assigned [mem 0x2000000000-0x200fffffff 64bit pref]
[    3.196494] pci 0000:07:00.0: BAR 2: assigned [mem 0x60500000-0x6051ffff 64bit]
[    3.203790] pci 0000:07:00.0: BAR 6: assigned [mem 0x60520000-0x6053ffff pref]
[    3.210983] pci 0000:07:00.1: BAR 0: assigned [mem 0x60540000-0x60543fff 64bit]
[    3.218295] pci 0000:07:00.0: BAR 4: assigned [io  0x0000-0x00ff]
[    3.224364] pci 0000:02:08.0: PCI bridge to [bus 07]
[    3.229310] pci 0000:02:08.0:   bridge window [io  0x0000-0x0fff]
[    3.235394] pci 0000:02:08.0:   bridge window [mem 0x60500000-0x605fffff]
[    3.242167] pci 0000:02:08.0:   bridge window [mem 0x2000000000-0x200fffffff 64bit pref]
[    3.250247] pci 0000:01:00.0: PCI bridge to [bus 02-07]
[    3.255460] pci 0000:01:00.0:   bridge window [io  0x0000-0x0fff]
[    3.261537] pci 0000:01:00.0:   bridge window [mem 0x60200000-0x605fffff]
[    3.268310] pci 0000:01:00.0:   bridge window [mem 0x2000000000-0x200fffffff 64bit pref]
[    3.276393] pci 0000:00:00.0: PCI bridge to [bus 01-07]
[    3.281597] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    3.287676] pci 0000:00:00.0:   bridge window [mem 0x60200000-0x605fffff]
[    3.294451] pci 0000:00:00.0:   bridge window [mem 0x2000000000-0x200fffffff 64bit pref]
[    3.303167] pcieport 0000:00:00.0: AER: enabled with IRQ 46
[    3.308236] pcieport 0000:01:00.0: enabling device (0000 -> 0003)
[    3.314824] pcieport 0000:02:02.0: enabling device (0000 -> 0002)
[    3.320587] pcieport 0000:02:03.0: enabling device (0000 -> 0002)
[    3.326658] pcieport 0000:02:04.0: enabling device (0000 -> 0002)
[    3.332730] pcieport 0000:02:08.0: enabling device (0000 -> 0003)
[    3.338867] pci 0000:04:00.0: enabling device (0000 -> 0002)
[    3.344310] pci 0000:07:00.1: D0 power state depends on 0000:07:00.0
[    3.350644] switchtec: loaded.
[    3.353819] L2CACHE: DataError @ 0x00000002.48C868F0
[    3.358543] L2CACHE: No. of Banks in the cache: 4
[    3.363156] L2CACHE: No. of ways per bank: 16
[    3.367496] L2CACHE: Sets per bank: 512
[    3.371317] L2CACHE: Bytes per cache block: 64
[    3.375747] L2CACHE: Index of the largest way enabled: 15
[    3.422318] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.429047] 10010000.serial: ttySIF0 at MMIO 0x10010000 (irq = 1, base_baud = 115200) is a SiFive UART v0
[    3.437910] printk: console [ttySIF0] enabled
[    3.437910] printk: console [ttySIF0] enabled
[    3.446558] printk: bootconsole [sifive0] disabled
[    3.446558] printk: bootconsole [sifive0] disabled
[    3.456391] 10011000.serial: ttySIF1 at MMIO 0x10011000 (irq = 2, base_baud = 115200) is a SiFive UART v0
[    3.481499] loop: module loaded
[    3.499161] ------------[ cut here ]------------
[    3.503016] WARNING: CPU: 0 PID: 1 at block/blk-mq.c:3075 blk_mq_release+0x48/0xba
[    3.510570] Modules linked in:
[    3.513613] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.13.19 #2
[    3.519603] Hardware name: SiFive HiFive Unmatched (DT)
[    3.524816] epc : blk_mq_release+0x48/0xba
[    3.528897]  ra : blk_release_queue+0xd0/0x156
[    3.533326] epc : ffffffff8062d5fe ra : ffffffff8061fff2 sp : ffffffe080087c30
[    3.540535]  gp : ffffffff8144d150 tp : ffffffe080088000 t0 : 0000000000000040
[    3.547744]  t1 : 0000000000000380 t2 : 00000000000000da s0 : ffffffe080087c60
[    3.554954]  s1 : ffffffe0823f8080 a0 : ffffffe0823f8000 a1 : ffffffe081c20d98
[    3.562163]  a2 : 0000000000000001 a3 : ffffffe0823aba30 a4 : ffffffe0823aba30
[    3.569372]  a5 : 0000000000000000 a6 : ffffffe0823ab000 a7 : 000000fffffff07f
[    3.576581]  s2 : ffffffe0823f8000 s3 : ffffffe0823f8000 s4 : 0000000000000000
[    3.583791]  s5 : ffffffff814542f0 s6 : 0000000000000001 s7 : ffffffff80d2d3e0
[    3.591000]  s8 : ffffffff8120d048 s9 : 0000000000000008 s10: ffffffff80c7377c
[    3.598209]  s11: 0000000000000000 t3 : ffffffffffffff00 t4 : 000000fffffff07f
[    3.605418]  t5 : 0000000000000180 t6 : 00000000000003ff
[    3.610717] status: 0000000200000120 badaddr: ffffffe0823aba30 cause: 0000000000000003
[    3.618622] [<ffffffff8062d5fe>] blk_mq_release+0x48/0xba
[    3.624006] [<ffffffff8061fff2>] blk_release_queue+0xd0/0x156
[    3.629738] [<ffffffff806b70c2>] kobject_put+0x96/0xee
[    3.634863] [<ffffffff8061d3ac>] blk_put_queue+0x24/0x2c
[    3.640161] [<ffffffff80632494>] disk_release+0x66/0x90
[    3.645372] [<ffffffff807d404e>] device_release+0x40/0x84
[    3.650758] [<ffffffff806b70c2>] kobject_put+0x96/0xee
[    3.655882] [<ffffffff807d41b4>] put_device+0x22/0x2c
[    3.660920] [<ffffffff806318a8>] put_disk+0x28/0x32
[    3.665784] [<ffffffff807f7898>] nbd_dev_add+0x21c/0x268
[    3.671082] [<ffffffff80c98068>] nbd_init+0x152/0x176
[    3.676120] [<ffffffff8000283e>] do_one_initcall+0x4c/0x1c2
[    3.681679] [<ffffffff80c74748>] kernel_init_freeable+0x272/0x2d6
[    3.687759] [<ffffffff80c6a304>] kernel_init+0x22/0x11c
[    3.692971] [<ffffffff80003bf2>] ret_from_exception+0x0/0xc
[    3.698538] ---[ end trace a6d99e3f91f2fae0 ]---
[    3.708063] nvme nvme0: pci function 0000:06:00.0
[    3.712072] nvme 0000:06:00.0: enabling device (0000 -> 0002)
[    3.713870] Rounding down aligned max_sectors from 4294967295 to 4294967288
[    3.725012] db_root: cannot open: /etc/target
[    3.729724] sifive_spi 10040000.spi: mapped; irq=4, cs=1
[    3.735118] spi-nor spi0.0: is25wp256 (32768 Kbytes)
[    3.735636] nvme nvme0: allocated 32 MiB host memory buffer.
[    3.741812] sifive_spi 10050000.spi: mapped; irq=6, cs=1
[    3.751773] libphy: Fixed MDIO Bus: probed
[    3.755594] nvme nvme0: 4/0/0 default/read/poll queues
[    3.755829] macb 10090000.ethernet: Registered clk switch 'sifive-gemgxl-mgmt'
[    3.768200] libphy: MACB_mii_bus: probed
[    3.772782] macb 10090000.ethernet eth0: Cadence GEM rev 0x10070109 at 0x10090000 irq 7 (70:b3:d5:92:fa:29)
[    3.781956] e1000e: Intel(R) PRO/1000 Network Driver
[    3.786738] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    3.792965] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.799160] ehci-pci: EHCI PCI platform driver
[    3.803624] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.809756] ohci-pci: OHCI PCI platform driver
[    3.814213] uhci_hcd: USB Universal Host Controller Interface driver
[    3.820810] xhci_hcd 0000:04:00.0: xHCI Host Controller
[    3.825886] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 1
[    3.973904] xhci_hcd 0000:04:00.0: hcc params 0x0200e080 hci version 0x100 quirks 0x0000000010800410
[    3.983244] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    3.990768] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.997964] usb usb1: Product: xHCI Host Controller
[    4.002829] usb usb1: Manufacturer: Linux 5.13.19 xhci-hcd
[    4.008299] usb usb1: SerialNumber: 0000:04:00.0
[    4.013313] hub 1-0:1.0: USB hub found
[    4.016663] hub 1-0:1.0: 2 ports detected
[    4.020955] xhci_hcd 0000:04:00.0: xHCI Host Controller
[    4.025978] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 2
[    4.033248] xhci_hcd 0000:04:00.0: Host supports USB 3.0 SuperSpeed
[    4.040329] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.047846] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    4.055913] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.063117] usb usb2: Product: xHCI Host Controller
[    4.067979] usb usb2: Manufacturer: Linux 5.13.19 xhci-hcd
[    4.073461] usb usb2: SerialNumber: 0000:04:00.0
[    4.078360] hub 2-0:1.0: USB hub found
[    4.081827] hub 2-0:1.0: 2 ports detected
[    4.086187] usbcore: registered new interface driver usb-storage
[    4.091920] usbcore: registered new interface driver usbserial_generic
[    4.098319] usbserial: USB Serial support registered for generic
[    4.104423] mousedev: PS/2 mouse device common for all mice
[    4.109905] usbcore: registered new interface driver usbtouchscreen
[    4.116242] i2c /dev entries driver
[    4.121239] da9063 0-0058: Device detected (chip-ID: 0x61, var-ID: 0x73)
[    4.141191] da9063-onkey da9063-onkey: DMA mask not set
[    4.149124] input: da9063-onkey as /devices/platform/soc/10030000.i2c/i2c-0/0-0058/da9063-onkey/input/input0
[    4.158530] da9063-rtc da9063-rtc: DMA mask not set
[    4.163880] random: fast init done
[    4.179185] da9063-rtc da9063-rtc: registered as rtc0
[    4.184673] da9063-rtc da9063-rtc: setting system clock to 2000-01-03T02:33:51 UTC (946866831)
[    4.192834] poweroff-gpio gpio-poweroff: gpio_poweroff_probe: pm_power_off function already registered
[    4.201850] poweroff-gpio: probe of gpio-poweroff failed with error -16
[    4.246469] da9063-watchdog da9063-watchdog: DMA mask not set
[    4.252669] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[    4.260356] softdog:              soft_reboot_cmd=<not set> soft_active_on_boot=0
[    4.267925] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[    4.304873] mmc_spi spi1.0: SD/MMC host mmc0, no DMA, no WP, no poweroff, cd polling
[    4.312482] ledtrig-cpu: registered to indicate activity on CPUs
[    4.318029] usbcore: registered new interface driver usbhid
[    4.323412] usbhid: USB HID core driver
[    4.327515] usbcore: registered new interface driver snd-usb-audio
[    4.333646] Initializing XFRM netlink socket
[    4.338235] NET: Registered protocol family 10
[    4.345512] Segment Routing with IPv6
[    4.348412] RPL Segment Routing with IPv6
[    4.353070] NET: Registered protocol family 17
[    4.357160] 9pnet: Installing 9P2000 support
[    4.361383] NET: Registered protocol family 36
[    4.365559] Key type dns_resolver registered
[    4.370083] usb 1-2: new high-speed USB device number 2 using xhci_hcd
[    4.373640] Loading compiled-in X.509 certificates
[    4.382237] Btrfs loaded, crc32c=crc32c-generic, zoned=yes
[    4.388534] ALSA device list:
[    4.388728] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.390740]   No soundcards found.
[    4.402124] mmc0: new SDXC card on SPI
[    4.405956] Waiting for root device /dev/mmcblk0p3...
[    4.407280] mmcblk0: mmc0:0000 SD64G 58.0 GiB 
[    4.435119] Alternate GPT is invalid, using primary GPT.
[    4.439723]  mmcblk0: p1 p2 p3
[    4.461781] EXT4-fs (mmcblk0p3): bad geometry: block count 15202299 exceeds size of device (1372662 blocks)
[    4.475102] EXT4-fs (mmcblk0p3): bad geometry: block count 15202299 exceeds size of device (1372662 blocks)
[    4.484129] List of all partitions:
[    4.487600] 1f00           32768 mtdblock0 
[    4.487607]  (driver?)
[    4.494092] 103:00000  976762584 nvme0n1 
[    4.494098]  (driver?)
[    4.500421] b300        60817408 mmcblk0 
[    4.500427]  driver: mmcblk
[    4.507204]   b301            1024 mmcblk0p1 846df4b9-dc80-4496-bfc2-bec275549082
[    4.507210] 
[    4.516142]   b302            4096 mmcblk0p2 86a82ef3-6215-40e2-b226-3a5323ba9b40
[    4.516148] 
[    4.525088]   b303         5490648 mmcblk0p3 8a1f1eab-666c-754a-8452-b4b24b419625
[    4.525094] 
[    4.534045] No filesystem could mount root, tried: 
[    4.534050]  ext4
[    4.538904] 
[    4.542294] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)
[    4.550712] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W         5.13.19 #2
[    4.558092] Hardware name: SiFive HiFive Unmatched (DT)
[    4.563304] Call Trace:
[    4.565737] [<ffffffff80005c46>] dump_backtrace+0x30/0x38
[    4.571121] [<ffffffff80c629c4>] dump_stack+0x7c/0x96
[    4.576158] [<ffffffff80c5acde>] panic+0x10e/0x2d8
[    4.580935] [<ffffffff80c74cce>] mount_block_root+0x23a/0x254
[    4.586668] [<ffffffff80c74e14>] mount_root+0x12c/0x156
[    4.591879] [<ffffffff80c74f94>] prepare_namespace+0x156/0x198
[    4.597699] [<ffffffff80c74790>] kernel_init_freeable+0x2ba/0x2d6
[    4.603779] [<ffffffff80c6a304>] kernel_init+0x22/0x11c
[    4.608990] [<ffffffff80003bf2>] ret_from_exception+0x0/0xc
[    4.614552] SMP: stopping secondary CPUs
[    4.618474] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3) ]---

后换成SanDisk 32G标配的sd卡,同样的操作过程,就能成功进入系统了。

xijing21 commented 2 years ago

补充下unmatched串口链接与设置:

  1. unmatched串口线: image 用标配的黑色的连接线,micro-usb口接SD卡槽旁边的micro-usb口;另一端接pc电脑的usb口即可。

  2. 打开一个串口连接:我用的是xshell,注意串口用的是COM5(在设备管理器——》端口中查询到COM4和COM5,但是只有COM5有信息回传),注意设置波特率为: image

  3. 开机按钮:(标配的电源通电后无信号灯,按下unmatched的开机按钮后,即可通电开机) image