您尚未登录。

楼主 #1 2021-01-28 22:05:42

来日方长
会员
注册时间: 2019-10-25
已发帖子: 24
积分: 20

全志H3 SD卡启动问题

如题,在H3上linux启动后一直卡在 Waiting for root device /dev/mmcblk0p2... 下面是日志:

U-Boot SPL 2017.11-g73e3bbb (Jan 28 2021 - 20:48:09)
DRAM: 512 MiB(408MHz)
CPU Freq: 408MHz
memory test: 1
Pattern 55aa  Writing...Reading...OK
Trying to boot from MMC1
Boot device: sd


U-Boot 2017.11-g73e3bbb (Jan 28 2021 - 20:48:09 +0800) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: FriendlyElec NanoPi H3
DRAM:  512 MiB
CPU Freq: 1008MHz
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
BOARD: nanopi-m1-plus
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading boot.scr
1947 bytes read in 31 ms (60.5 KiB/s)
## Executing script at 43100000
reading zImage
5845760 bytes read in 304 ms (18.3 MiB/s)
reading sun8i-h3-nanopi-neo-core.dtb
34556 bytes read in 29 ms (1.1 MiB/s)
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Loading Device Tree to 49ff4000, end 49fff6fb ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.111 (spaceman@spaceman) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #1 SMP Thu Jan 28 21:05:20 CST 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: FriendlyElec NanoPi-NEO-Core
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000005c000000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] percpu: Embedded 17 pages/cpu @dbafc000 s37068 r8192 d24372 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rootfstype=ext4 earlyprintk rw
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 436060K/524288K available (10240K kernel code, 391K rwdata, 2080K rodata, 2048K init, 302K bss, 22692K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0c00000   (12256 kB)
[    0.000000]       .init : 0xc1000000 - 0xc1200000   (2048 kB)
[    0.000000]       .data : 0xc1200000 - 0xc1261dc0   ( 392 kB)
[    0.000000]        .bss : 0xc126a7a0 - 0xc12b60f8   ( 303 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000217] Console: colour dummy device 80x30
[    0.000253] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=120000)
[    0.000266] pid_max: default: 32768 minimum: 301
[    0.000420] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000432] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001161] CPU: Testing write buffer coherency: ok
[    0.001607] CPU0: update cpu_capacity 1024
[    0.001620] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001991] Setting up static identity map for 0x40200000 - 0x40200060
[    0.002121] Hierarchical SRCU implementation.
[    0.002674] smp: Bringing up secondary CPUs ...
[    0.003940] smp: Brought up 1 node, 1 CPU
[    0.003955] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003962] CPU: All CPU(s) started in SVC mode.
[    0.004596] devtmpfs: initialized
[    0.011246] random: get_random_u32 called from bucket_table_alloc+0xfc/0x228 with crng_init=0
[    0.011700] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.011986] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns
[    0.012010] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.014602] xor: measuring software checksum speed
[    0.060130]    arm4regs  :  1263.200 MB/sec
[    0.110178]    8regs     :   877.600 MB/sec
[    0.160228]    32regs    :   808.800 MB/sec
[    0.210274]    neon      :  1284.000 MB/sec
[    0.210282] xor: using function: neon (1284.000 MB/sec)
[    0.210303] pinctrl core: initialized pinctrl subsystem
[    0.211334] NET: Registered protocol family 16
[    0.212648] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.213389] cpuidle: using governor ladder
[    0.213402] cpuidle: using governor menu
[    0.213633] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.213642] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.232598] SCSI subsystem initialized
[    0.233057] usbcore: registered new interface driver usbfs
[    0.233102] usbcore: registered new interface driver hub
[    0.233160] usbcore: registered new device driver usb
[    0.233328] media: Linux media interface: v0.10
[    0.233371] Linux video capture interface: v2.00
[    0.233469] pps_core: LinuxPPS API ver. 1 registered
[    0.233476] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.233494] PTP clock support registered
[    0.233838] Advanced Linux Sound Architecture Driver Initialized.
[    0.235301] clocksource: Switched to clocksource arch_sys_counter
[    0.235591] VFS: Disk quotas dquot_6.6.0
[    0.235665] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.235818] FS-Cache: Loaded
[    0.242759] NET: Registered protocol family 2
[    0.243397] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.243442] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.243505] TCP: Hash tables configured (established 4096 bind 4096)
[    0.243613] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.243655] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.243853] NET: Registered protocol family 1
[    0.244319] RPC: Registered named UNIX socket transport module.
[    0.244331] RPC: Registered udp transport module.
[    0.244336] RPC: Registered tcp transport module.
[    0.244342] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.244782] kvm [1]: HYP mode not available
[    0.247495] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.252064] zbud: loaded
[    0.253692] FS-Cache: Netfs 'nfs' registered for caching
[    0.254228] NFS: Registering the id_resolver key type
[    0.254271] Key type id_resolver registered
[    0.254278] Key type id_legacy registered
[    0.254301] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.254318] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.255229] fuse init (API version 7.26)
[    0.261410] async_tx: api initialized (async)
[    0.261520] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.261797] io scheduler noop registered (default)
[    0.261809] io scheduler deadline registered
[    0.262003] io scheduler cfq registered
[    0.262013] io scheduler mq-deadline registered
[    0.262155] io scheduler bfq registered
[    0.262797] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO, pinctrl may not init
[    0.266651] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.268175] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.274036] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.276038] console [ttyS0] disabled
[    0.296248] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45, base_baud = 1500000) is a U6_16550A
[    0.986502] console [ttyS0] enabled
[    1.012695] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 46, base_baud = 1500000) is a U6_16550A
[    1.044296] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 47, base_baud = 1500000) is a U6_16550A
[    1.075888] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 48, base_baud = 1500000) is a U6_16550A
[    1.087091] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.093753] [drm] No driver support for vblank timestamp query.
[    1.109121] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0c51bb8)
[    1.116206] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    1.124052] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0c508bc)
[    1.255383] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[    1.265315] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[    1.273031] sun4i-drm display-engine: bound 1ee0000.hdmi (ops 0xc0c51f38)
[    1.279883] [drm] Cannot find any crtc or sizes - going 1920x1080
[    1.327112] Console: switching to colour frame buffer device 240x67
[    1.357639] sun4i-drm display-engine: fb0:  frame buffer device
[    1.363960] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.380944] loop: module loaded
[    1.400429] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[    1.406797] osst :I: Tape driver with OnStream support version 0.99.4
[    1.406797] osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $
[    1.420112] SCSI Media Changer driver v0.25
[    1.426408] libphy: Fixed MDIO Bus: probed
[    1.430546] tun: Universal TUN/TAP device driver, 1.6
[    1.435777] CAN device driver interface
[    1.440107] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    1.445966] dwmac-sun8i 1c30000.ethernet: No regulator found
[    1.451705] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    1.457858] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.463531] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.470755] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.476416] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.483639] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.488607] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.495965] libphy: stmmac: probed
[    1.500985] PPP generic driver version 2.4.2
[    1.505539] PPP BSD Compression module registered
[    1.510239] PPP Deflate Compression module registered
[    1.515352] PPP MPPE Compression module registered
[    1.520140] NET: Registered protocol family 24
[    1.524742] usbcore: registered new interface driver qmi_wwan
[    1.530547] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.537087] ehci-platform: EHCI generic platform driver
[    1.542563] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.548180] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.556379] ehci-platform 1c1a000.usb: irq 29, io mem 0x01c1a000
[    1.575333] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.581622] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.588421] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.595646] usb usb1: Product: EHCI Host Controller
[    1.600529] usb usb1: Manufacturer: Linux 4.14.111 ehci_hcd
[    1.606103] usb usb1: SerialNumber: 1c1a000.usb
[    1.611161] hub 1-0:1.0: USB hub found
[    1.614942] hub 1-0:1.0: 1 port detected
[    1.619586] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.625836] ohci-platform: OHCI generic platform driver
[    1.631280] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.637932] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.645889] ohci-platform 1c1a400.usb: irq 30, io mem 0x01c1a400
[    1.714493] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.721298] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.728525] usb usb2: Product: Generic Platform OHCI controller
[    1.734448] usb usb2: Manufacturer: Linux 4.14.111 ohci_hcd
[    1.740024] usb usb2: SerialNumber: 1c1a400.usb
[    1.747363] hub 2-0:1.0: USB hub found
[    1.751199] hub 2-0:1.0: 1 port detected
[    1.755867] usbcore: registered new interface driver cdc_acm
[    1.761562] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.769633] usbcore: registered new interface driver usblp
[    1.775159] usbcore: registered new interface driver cdc_wdm
[    1.780856] usbcore: registered new interface driver uas
[    1.786254] usbcore: registered new interface driver usb-storage
[    1.792341] usbcore: registered new interface driver usbserial
[    1.798209] usbcore: registered new interface driver usbserial_generic
[    1.804765] usbserial: USB Serial support registered for generic
[    1.810804] usbcore: registered new interface driver option
[    1.816402] usbserial: USB Serial support registered for GSM modem (1-port)
[    1.823496] usbcore: registered new interface driver qcserial
[    1.829277] usbserial: USB Serial support registered for Qualcomm USB modem
[    1.837055] mousedev: PS/2 mouse device common for all mice
[    1.843206] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.850031] sun6i-rtc 1f00000.rtc: RTC enabled
[    1.854577] i2c /dev entries driver
[    1.859955] lirc_dev: IR Remote Control driver registered, major 244
[    1.866351] IR NEC protocol handler initialized
[    1.870888] IR RC5(x/sz) protocol handler initialized
[    1.875940] IR RC6 protocol handler initialized
[    1.880473] IR JVC protocol handler initialized
[    1.884996] IR Sony protocol handler initialized
[    1.889615] IR SANYO protocol handler initialized
[    1.894322] IR Sharp protocol handler initialized
[    1.899020] IR MCE Keyboard/mouse protocol handler initialized
[    1.904852] IR LIRC bridge handler initialized
[    1.909297] IR XMP protocol handler initialized
[    1.914691] thermal thermal_zone0: failed to read out thermal zone (-16)
[    1.921967] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.930351] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[    1.980356] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    2.022738] mmc1: host does not support reading read-only switch, assuming write-enable
[    2.030778] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB
[    2.038971] ledtrig-cpu: registered to indicate activity on CPUs
[    2.045033] mmc1: Problem switching card into high-speed mode!
[    2.052159] hidraw: raw HID events driver (C) Jiri Kosina
[    2.059672] mmc1: new SDHC card at address 0001
[    2.064359] usbcore: registered new interface driver usbhid
[    2.069950] usbhid: USB HID core driver
[    2.074235] mmcblk1: mmc1:0001 SD 7.45 GiB
[    2.080692]  mmcblk1: p1 p2
[    2.098340] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    2.108448] Initializing XFRM netlink socket
[    2.113417] NET: Registered protocol family 10
[    2.120190] Segment Routing with IPv6
[    2.124069] NET: Registered protocol family 17
[    2.128615] NET: Registered protocol family 15
[    2.133112] can: controller area network core (rev 20170425 abi 9)
[    2.139517] NET: Registered protocol family 29
[    2.144032] can: raw protocol (rev 20170425)
[    2.148351] can: broadcast manager protocol (rev 20170425 t)
[    2.154087] can: netlink gateway (rev 20170425) max_hops=1
[    2.160131] Key type dns_resolver registered
[    2.164644] Registering SWP/SWPB emulation handler
[    2.170953] registered taskstats version 1
[    2.176347] Key type encrypted registered
[    2.182488] mmc2: new DDR MMC card at address 0001
[    2.193258] vcc1v2: supplied by vcc5v0
[    2.197199] mmcblk2: mmc2:0001 016GB0 14.7 GiB
[    2.202079] vcc-dram: supplied by vcc5v0
[    2.206314] mmcblk2boot0: mmc2:0001 016GB0 partition 1 4.00 MiB
[    2.212575] vdd-cpux-en: supplied by vcc5v0
[    2.218749] ehci-platform 1c1b000.usb: EHCI Host Controller
[    2.224453] mmcblk2boot1: mmc2:0001 016GB0 partition 2 4.00 MiB
[    2.231057] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    2.238989]  mmcblk2: p1 p2 p3
[    2.243861] ehci-platform 1c1b000.usb: irq 31, io mem 0x01c1b000
[    2.260304] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    2.266603] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    2.273401] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.280625] usb usb3: Product: EHCI Host Controller
[    2.285506] usb usb3: Manufacturer: Linux 4.14.111 ehci_hcd
[    2.291087] usb usb3: SerialNumber: 1c1b000.usb
[    2.296157] hub 3-0:1.0: USB hub found
[    2.299945] hub 3-0:1.0: 1 port detected
[    2.304649] ehci-platform 1c1c000.usb: EHCI Host Controller
[    2.310323] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4
[    2.318435] ehci-platform 1c1c000.usb: irq 33, io mem 0x01c1c000
[    2.335301] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    2.341542] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.348337] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.355560] usb usb4: Product: EHCI Host Controller
[    2.360449] usb usb4: Manufacturer: Linux 4.14.111 ehci_hcd
[    2.366028] usb usb4: SerialNumber: 1c1c000.usb
[    2.371054] hub 4-0:1.0: USB hub found
[    2.374839] hub 4-0:1.0: 1 port detected
[    2.379447] ehci-platform 1c1d000.usb: EHCI Host Controller
[    2.385105] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5
[    2.393343] ehci-platform 1c1d000.usb: irq 35, io mem 0x01c1d000
[    2.410302] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    2.416535] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    2.423331] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.430556] usb usb5: Product: EHCI Host Controller
[    2.435444] usb usb5: Manufacturer: Linux 4.14.111 ehci_hcd
[    2.441019] usb usb5: SerialNumber: 1c1d000.usb
[    2.446059] hub 5-0:1.0: USB hub found
[    2.449835] hub 5-0:1.0: 1 port detected
[    2.454431] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    2.461122] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[    2.469149] ohci-platform 1c1b400.usb: irq 32, io mem 0x01c1b400
[    2.534430] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
[    2.541234] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.548457] usb usb6: Product: Generic Platform OHCI controller
[    2.554379] usb usb6: Manufacturer: Linux 4.14.111 ohci_hcd
[    2.559956] usb usb6: SerialNumber: 1c1b400.usb
[    2.564952] hub 6-0:1.0: USB hub found
[    2.568779] hub 6-0:1.0: 1 port detected
[    2.573359] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    2.580041] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[    2.588229] ohci-platform 1c1c400.usb: irq 34, io mem 0x01c1c400
[    2.645316] usb 3-1: new high-speed USB device number 2 using ehci-platform
[    2.656537] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
[    2.663340] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.670572] usb usb7: Product: Generic Platform OHCI controller
[    2.676502] usb usb7: Manufacturer: Linux 4.14.111 ohci_hcd
[    2.682080] usb usb7: SerialNumber: 1c1c400.usb
[    2.687097] hub 7-0:1.0: USB hub found
[    2.690919] hub 7-0:1.0: 1 port detected
[    2.695514] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    2.702187] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    2.710203] ohci-platform 1c1d400.usb: irq 36, io mem 0x01c1d400
[    2.779427] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001
[    2.786227] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.793452] usb usb8: Product: Generic Platform OHCI controller
[    2.799376] usb usb8: Manufacturer: Linux 4.14.111 ohci_hcd
[    2.804951] usb usb8: SerialNumber: 1c1d400.usb
[    2.810028] hub 8-0:1.0: USB hub found
[    2.813848] hub 8-0:1.0: 1 port detected
[    2.818485] usb_phy_generic usb_phy_generic.3.auto: usb_phy_generic.3.auto supply vcc not found, using dummy regulator
[    2.829642] musb-hdrc musb-hdrc.4.auto: MUSB HDRC host driver
[    2.835473] musb-hdrc musb-hdrc.4.auto: new USB bus registered, assigned bus number 9
[    2.843539] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002
[    2.850359] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.857587] usb usb9: Product: MUSB HDRC host driver
[    2.862564] usb usb9: Manufacturer: Linux 4.14.111 musb-hcd
[    2.868145] usb usb9: SerialNumber: musb-hdrc.4.auto
[    2.873667] hub 9-0:1.0: USB hub found
[    2.877520] hub 9-0:1.0: 1 port detected
[    2.881718] usb 3-1: New USB device found, idVendor=0bda, idProduct=b720
[    2.888437] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.895580] usb 3-1: Product: 802.11n WLAN Adapter
[    2.900381] usb 3-1: Manufacturer: Realtek
[    2.904476] usb 3-1: SerialNumber: 00e04c000001
[    2.914033] asoc-simple-card soc:sound: i2s-hifi <-> 1c22800.i2s mapping ok
[    2.923472] input: r_gpio_keys as /devices/platform/r_gpio_keys/input/input0
[    2.931426] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01 00:00:15 UTC (15)
[    2.939849] vcc3v0: disabling
[    2.942851] vcc5v0: disabling
[    2.945824] usb0-vbus: disabling
[    2.949056] ALSA device list:
[    2.952045]   #0: Dummy 1
[    2.954662]   #1: Loopback 1
[    2.957550]   #2: H3 Audio Codec
[    2.960782]   #3: allwinner,hdmi
[    2.964475] Waiting for root device /dev/mmcblk0p2...
[   82.055661] random: fast init done
[  307.089983] random: crng init done

参考了如下链接:关于SD卡启动遇到的问题,但是这里在uboot中查看是有这个分区的。分区也是2个,FAT16和EXT4,ubuntu上Gparted手动分区,uboot输出如下:

=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device

=> mmc part

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     8192            67584           33ec79ce-01     0b Boot
  2     75776           15538176        33ec79ce-02     83

根文件系统是自己根据busybox 1.30.1做的,按照在 ubuntu@x86 用 chroot 到 ARM 平台的 rootfs 这篇帖子尝试过,能够正常进入根目录,其中也换过一些其他的文件系统,都是这个问题。

但是,我在EMMC中烧录了官方的镜像,uboot中的启动参数将root=/dev/mmcblk0p2切换到emmc中:root=/dev/mmcblk1p2是能够正常启动的,日志:

=> setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rootfstype=ext4 earlyprintk rw
=>
=> load mmc 0:1 0x46000000 zImage
reading zImage
5845760 bytes read in 303 ms (18.4 MiB/s)
=> load mmc 0:1 0x46000000 zImage<INTERRUPT>
=> ls mmc 0:1
  5845760   zImage
    35679   sun8i-h2-plus-nanopi-duo.dtb
    37203   sun8i-h3-nanopi-duo2.dtb
    36107   sun8i-h3-nanopi-m1.dtb
    37691   sun8i-h3-nanopi-m1-plus.dtb
    37222   sun8i-h3-nanopi-neo-air.dtb
    34556   sun8i-h3-nanopi-neo-core.dtb
    34439   sun8i-h3-nanopi-neo.dtb
    36380   sun8i-h3-nanopi-neo-s.dtb
    36147   sun8i-h3-nanopi-r1.dtb
    36142   sun8i-h3-nanopi-r1s.dtb
     1947   boot.scr
     1875   boot.cmd
  5895024   zImage1
    32271   sun8i-h3-atom_n.dtb
    34283   sun8i-h3-unit.dtb
            System Volume Information/

16 file(s), 1 dir(s)

=> load mmc 0:1 0x48000000 sun8i-h3-nanopi-neo-core.dtb
reading sun8i-h3-nanopi-neo-core.dtb
34556 bytes read in 28 ms (1.2 MiB/s)
=>
=> bootz 0x46000000 - 0x48000000
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Loading Device Tree to 49ff4000, end 49fff6fb ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.111 (spaceman@spaceman) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #1 SMP Thu Jan 28 21:05:20 CST 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: FriendlyElec NanoPi-NEO-Core
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000005bc00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 17 pages/cpu @dff5a000 s37068 r8192 d24372 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk1p2 rootfstype=ext4 earlyprintk rw
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 436044K/524288K available (10240K kernel code, 391K rwdata, 2080K rodata, 2048K init, 302K bss, 22708K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0c00000   (12256 kB)
[    0.000000]       .init : 0xc1000000 - 0xc1200000   (2048 kB)
[    0.000000]       .data : 0xc1200000 - 0xc1261dc0   ( 392 kB)
[    0.000000]        .bss : 0xc126a7a0 - 0xc12b60f8   ( 303 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000216] Console: colour dummy device 80x30
[    0.000251] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=120000)
[    0.000266] pid_max: default: 32768 minimum: 301
[    0.000426] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000440] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001171] CPU: Testing write buffer coherency: ok
[    0.001625] CPU0: update cpu_capacity 1024
[    0.001637] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002011] Setting up static identity map for 0x40200000 - 0x40200060
[    0.002135] Hierarchical SRCU implementation.
[    0.002698] smp: Bringing up secondary CPUs ...
[    0.013454] CPU1: update cpu_capacity 1024
[    0.013461] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.024286] CPU2: update cpu_capacity 1024
[    0.024291] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.035032] CPU3: update cpu_capacity 1024
[    0.035038] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.035120] smp: Brought up 1 node, 4 CPUs
[    0.035149] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.035155] CPU: All CPU(s) started in HYP mode.
[    0.035160] CPU: Virtualization extensions available.
[    0.035983] devtmpfs: initialized
[    0.042542] random: get_random_u32 called from bucket_table_alloc+0xfc/0x228 with crng_init=0
[    0.043084] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.043388] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns
[    0.043413] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.046003] xor: measuring software checksum speed
[    0.094876]    arm4regs  :  1263.200 MB/sec
[    0.144918]    8regs     :   877.600 MB/sec
[    0.194965]    32regs    :   808.800 MB/sec
[    0.245006]    neon      :  1281.600 MB/sec
[    0.245014] xor: using function: neon (1281.600 MB/sec)
[    0.245035] pinctrl core: initialized pinctrl subsystem
[    0.246022] NET: Registered protocol family 16
[    0.247572] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.248381] cpuidle: using governor ladder
[    0.248420] cpuidle: using governor menu
[    0.248764] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.248775] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.267532] SCSI subsystem initialized
[    0.267944] usbcore: registered new interface driver usbfs
[    0.267989] usbcore: registered new interface driver hub
[    0.268072] usbcore: registered new device driver usb
[    0.268258] media: Linux media interface: v0.10
[    0.268292] Linux video capture interface: v2.00
[    0.268415] pps_core: LinuxPPS API ver. 1 registered
[    0.268422] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.268440] PTP clock support registered
[    0.268732] Advanced Linux Sound Architecture Driver Initialized.
[    0.270215] clocksource: Switched to clocksource arch_sys_counter
[    0.270389] VFS: Disk quotas dquot_6.6.0
[    0.270470] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.270629] FS-Cache: Loaded
[    0.277686] NET: Registered protocol family 2
[    0.278343] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.278391] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.278454] TCP: Hash tables configured (established 4096 bind 4096)
[    0.278562] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.278605] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.278801] NET: Registered protocol family 1
[    0.279272] RPC: Registered named UNIX socket transport module.
[    0.279283] RPC: Registered udp transport module.
[    0.279289] RPC: Registered tcp transport module.
[    0.279294] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.279754] kvm [1]: 8-bit VMID
[    0.280497] kvm [1]: vgic interrupt IRQ16
[    0.280594] kvm [1]: Hyp mode initialized successfully
[    0.283293] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.287910] zbud: loaded
[    0.289481] FS-Cache: Netfs 'nfs' registered for caching
[    0.290029] NFS: Registering the id_resolver key type
[    0.290066] Key type id_resolver registered
[    0.290073] Key type id_legacy registered
[    0.290089] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.290106] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.291157] fuse init (API version 7.26)
[    0.296512] async_tx: api initialized (async)
[    0.296646] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.296807] io scheduler noop registered (default)
[    0.296818] io scheduler deadline registered
[    0.297004] io scheduler cfq registered
[    0.297013] io scheduler mq-deadline registered
[    0.297149] io scheduler bfq registered
[    0.297839] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO, pinctrl may not init
[    0.301631] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.303168] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.308588] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.310487] console [ttyS0] disabled
[    0.330699] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45, base_baud = 1500000) is a U6_16550A
[    1.078239] console [ttyS0] enabled
[    1.104486] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 46, base_baud = 1500000) is a U6_16550A
[    1.136069] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 47, base_baud = 1500000) is a U6_16550A
[    1.167641] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 48, base_baud = 1500000) is a U6_16550A
[    1.178855] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.185488] [drm] No driver support for vblank timestamp query.
[    1.200826] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0c51bb8)
[    1.207921] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    1.215771] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0c508bc)
[    1.345308] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[    1.355195] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[    1.362957] sun4i-drm display-engine: bound 1ee0000.hdmi (ops 0xc0c51f38)
[    1.369798] [drm] Cannot find any crtc or sizes - going 1920x1080
[    1.417192] Console: switching to colour frame buffer device 240x67
[    1.448120] sun4i-drm display-engine: fb0:  frame buffer device
[    1.454504] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.471432] loop: module loaded
[    1.491024] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[    1.497403] osst :I: Tape driver with OnStream support version 0.99.4
[    1.497403] osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $
[    1.510713] SCSI Media Changer driver v0.25
[    1.517006] libphy: Fixed MDIO Bus: probed
[    1.521152] tun: Universal TUN/TAP device driver, 1.6
[    1.526395] CAN device driver interface
[    1.530751] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    1.536562] dwmac-sun8i 1c30000.ethernet: No regulator found
[    1.542269] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    1.548381] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.554051] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.561274] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.566938] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.574160] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.579129] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.586503] libphy: stmmac: probed
[    1.591582] PPP generic driver version 2.4.2
[    1.596104] PPP BSD Compression module registered
[    1.600820] PPP Deflate Compression module registered
[    1.605900] PPP MPPE Compression module registered
[    1.610697] NET: Registered protocol family 24
[    1.615257] usbcore: registered new interface driver qmi_wwan
[    1.621031] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.627559] ehci-platform: EHCI generic platform driver
[    1.633029] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.638651] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.646839] ehci-platform 1c1a000.usb: irq 29, io mem 0x01c1a000
[    1.665232] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.671536] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.678335] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.685562] usb usb1: Product: EHCI Host Controller
[    1.690444] usb usb1: Manufacturer: Linux 4.14.111 ehci_hcd
[    1.696020] usb usb1: SerialNumber: 1c1a000.usb
[    1.701089] hub 1-0:1.0: USB hub found
[    1.704867] hub 1-0:1.0: 1 port detected
[    1.709497] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.715718] ohci-platform: OHCI generic platform driver
[    1.721153] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.727796] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.735763] ohci-platform 1c1a400.usb: irq 30, io mem 0x01c1a400
[    1.804374] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.811181] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.818410] usb usb2: Product: Generic Platform OHCI controller
[    1.824333] usb usb2: Manufacturer: Linux 4.14.111 ohci_hcd
[    1.829909] usb usb2: SerialNumber: 1c1a400.usb
[    1.837238] hub 2-0:1.0: USB hub found
[    1.841038] hub 2-0:1.0: 1 port detected
[    1.845681] usbcore: registered new interface driver cdc_acm
[    1.851356] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.859403] usbcore: registered new interface driver usblp
[    1.864922] usbcore: registered new interface driver cdc_wdm
[    1.870619] usbcore: registered new interface driver uas
[    1.876026] usbcore: registered new interface driver usb-storage
[    1.882117] usbcore: registered new interface driver usbserial
[    1.887986] usbcore: registered new interface driver usbserial_generic
[    1.894543] usbserial: USB Serial support registered for generic
[    1.900582] usbcore: registered new interface driver option
[    1.906182] usbserial: USB Serial support registered for GSM modem (1-port)
[    1.913280] usbcore: registered new interface driver qcserial
[    1.919061] usbserial: USB Serial support registered for Qualcomm USB modem
[    1.926849] mousedev: PS/2 mouse device common for all mice
[    1.932940] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.939739] sun6i-rtc 1f00000.rtc: RTC enabled
[    1.944264] i2c /dev entries driver
[    1.949622] lirc_dev: IR Remote Control driver registered, major 244
[    1.956011] IR NEC protocol handler initialized
[    1.960549] IR RC5(x/sz) protocol handler initialized
[    1.965603] IR RC6 protocol handler initialized
[    1.970127] IR JVC protocol handler initialized
[    1.974659] IR Sony protocol handler initialized
[    1.979278] IR SANYO protocol handler initialized
[    1.983975] IR Sharp protocol handler initialized
[    1.988681] IR MCE Keyboard/mouse protocol handler initialized
[    1.994513] IR LIRC bridge handler initialized
[    1.998960] IR XMP protocol handler initialized
[    2.004346] thermal thermal_zone0: failed to read out thermal zone (-16)
[    2.011575] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.019876] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[    2.070277] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    2.112669] mmc1: host does not support reading read-only switch, assuming write-enable
[    2.115566] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB
[    2.122611] mmc1: Problem switching card into high-speed mode!
[    2.133647] mmc1: new SDHC card at address 0001
[    2.134619] ledtrig-cpu: registered to indicate activity on CPUs
[    2.138635] mmcblk1: mmc1:0001 SD 7.45 GiB
[    2.144435] hidraw: raw HID events driver (C) Jiri Kosina
[    2.150671]  mmcblk1: p1 p2
[    2.153992] usbcore: registered new interface driver usbhid
[    2.162202] usbhid: USB HID core driver
[    2.178255] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    2.188351] Initializing XFRM netlink socket
[    2.193201] NET: Registered protocol family 10
[    2.199956] Segment Routing with IPv6
[    2.203743] NET: Registered protocol family 17
[    2.208247] NET: Registered protocol family 15
[    2.212725] can: controller area network core (rev 20170425 abi 9)
[    2.219056] NET: Registered protocol family 29
[    2.223536] can: raw protocol (rev 20170425)
[    2.227841] can: broadcast manager protocol (rev 20170425 t)
[    2.233515] can: netlink gateway (rev 20170425) max_hops=1
[    2.239530] Key type dns_resolver registered
[    2.244047] Registering SWP/SWPB emulation handler
[    2.250815] registered taskstats version 1
[    2.254963] mmc2: new DDR MMC card at address 0001
[    2.255640] Key type encrypted registered
[    2.260301] mmcblk2: mmc2:0001 016GB0 14.7 GiB
[    2.268771] mmcblk2boot0: mmc2:0001 016GB0 partition 1 4.00 MiB
[    2.269822] vcc1v2: supplied by vcc5v0
[    2.275007] mmcblk2boot1: mmc2:0001 016GB0 partition 2 4.00 MiB
[    2.278881] vcc-dram: supplied by vcc5v0
[    2.288517]  mmcblk2: p1 p2 p3
[    2.288784] vdd-cpux-en: supplied by vcc5v0
[    2.297651] ehci-platform 1c1b000.usb: EHCI Host Controller
[    2.303290] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    2.311495] ehci-platform 1c1b000.usb: irq 31, io mem 0x01c1b000
[    2.330234] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    2.336541] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    2.343337] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.350564] usb usb3: Product: EHCI Host Controller
[    2.355446] usb usb3: Manufacturer: Linux 4.14.111 ehci_hcd
[    2.361023] usb usb3: SerialNumber: 1c1b000.usb
[    2.366170] hub 3-0:1.0: USB hub found
[    2.369958] hub 3-0:1.0: 1 port detected
[    2.374608] ehci-platform 1c1c000.usb: EHCI Host Controller
[    2.380254] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4
[    2.388347] ehci-platform 1c1c000.usb: irq 33, io mem 0x01c1c000
[    2.405230] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    2.411470] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.418265] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.425491] usb usb4: Product: EHCI Host Controller
[    2.430374] usb usb4: Manufacturer: Linux 4.14.111 ehci_hcd
[    2.435949] usb usb4: SerialNumber: 1c1c000.usb
[    2.440975] hub 4-0:1.0: USB hub found
[    2.444751] hub 4-0:1.0: 1 port detected
[    2.449301] ehci-platform 1c1d000.usb: EHCI Host Controller
[    2.454910] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5
[    2.462989] ehci-platform 1c1d000.usb: irq 35, io mem 0x01c1d000
[    2.480222] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    2.486454] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    2.493249] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.500474] usb usb5: Product: EHCI Host Controller
[    2.505357] usb usb5: Manufacturer: Linux 4.14.111 ehci_hcd
[    2.510933] usb usb5: SerialNumber: 1c1d000.usb
[    2.515977] hub 5-0:1.0: USB hub found
[    2.519754] hub 5-0:1.0: 1 port detected
[    2.524322] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    2.530980] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[    2.538960] ohci-platform 1c1b400.usb: irq 32, io mem 0x01c1b400
[    2.604364] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
[    2.611165] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.618391] usb usb6: Product: Generic Platform OHCI controller
[    2.624312] usb usb6: Manufacturer: Linux 4.14.111 ohci_hcd
[    2.629888] usb usb6: SerialNumber: 1c1b400.usb
[    2.634977] hub 6-0:1.0: USB hub found
[    2.638775] hub 6-0:1.0: 1 port detected
[    2.643377] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    2.650024] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[    2.658136] ohci-platform 1c1c400.usb: irq 34, io mem 0x01c1c400
[    2.715243] usb 3-1: new high-speed USB device number 2 using ehci-platform
[    2.726416] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
[    2.733217] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.740451] usb usb7: Product: Generic Platform OHCI controller
[    2.746381] usb usb7: Manufacturer: Linux 4.14.111 ohci_hcd
[    2.751960] usb usb7: SerialNumber: 1c1c400.usb
[    2.756980] hub 7-0:1.0: USB hub found
[    2.760780] hub 7-0:1.0: 1 port detected
[    2.765361] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    2.772014] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    2.780020] ohci-platform 1c1d400.usb: irq 36, io mem 0x01c1d400
[    2.849357] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001
[    2.856160] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.863387] usb usb8: Product: Generic Platform OHCI controller
[    2.869311] usb usb8: Manufacturer: Linux 4.14.111 ohci_hcd
[    2.874888] usb usb8: SerialNumber: 1c1d400.usb
[    2.879981] hub 8-0:1.0: USB hub found
[    2.883776] hub 8-0:1.0: 1 port detected
[    2.888418] usb_phy_generic usb_phy_generic.3.auto: usb_phy_generic.3.auto supply vcc not found, using dummy regulator
[    2.899503] musb-hdrc musb-hdrc.4.auto: MUSB HDRC host driver
[    2.905319] musb-hdrc musb-hdrc.4.auto: new USB bus registered, assigned bus number 9
[    2.913399] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002
[    2.920226] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.927464] usb usb9: Product: MUSB HDRC host driver
[    2.932442] usb usb9: Manufacturer: Linux 4.14.111 musb-hcd
[    2.938023] usb usb9: SerialNumber: musb-hdrc.4.auto
[    2.943626] hub 9-0:1.0: USB hub found
[    2.947459] hub 9-0:1.0: 1 port detected
[    2.951566] usb 3-1: New USB device found, idVendor=0bda, idProduct=b720
[    2.958278] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.965418] usb 3-1: Product: 802.11n WLAN Adapter
[    2.970221] usb 3-1: Manufacturer: Realtek
[    2.974318] usb 3-1: SerialNumber: 00e04c000001
[    2.982808] asoc-simple-card soc:sound: i2s-hifi <-> 1c22800.i2s mapping ok
[    2.993129] input: r_gpio_keys as /devices/platform/r_gpio_keys/input/input0
[    3.000916] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01 00:40:11 UTC (2411)
[    3.009465] vcc3v0: disabling
[    3.012454] vcc5v0: disabling
[    3.015438] usb0-vbus: disabling
[    3.018667] ALSA device list:
[    3.021646]   #0: Dummy 1
[    3.024263]   #1: Loopback 1
[    3.027149]   #2: H3 Audio Codec
[    3.030394]   #3: allwinner,hdmi
[    3.058317] random: fast init done
[    3.063101] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.071266] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.096082] devtmpfs: mounted
[    3.101746] Freeing unused kernel memory: 2048K
mount: mounting tmpfs on /tmp failed: No such file or directory

Please press Enter to activate this console.
-/bin/sh: tput: not found
-/bin/sh: tput: not found
-/bin/sh: tput: not found
-/bin/sh: tput: not found
@(none):[/]:
@(none):[/]:

板子采用Quantum,换过H3的其他板子(NanoPi Duo2),结果是一样的(直接将SD卡插入NanoPi Duo2中)一直卡在 Waiting for root device /dev/mmcblk0p2...中
设备树目前是用的sun8i-h3-nanopi-neo-core.dtb。
内核和uboot都是根据友善官方教程Building U-boot and Linux for H5/H3/H2+/zh重新编译的(未修改源码,直接编译),编译器用的Ubuntu2004中apt中的arm-linux-gnueabihf-gcc(尝试过友善提供的,结果一样)

现在一直卡在这里好久了 求大佬帮个忙看看哪里出问题了 感激不尽

最近编辑记录 来日方长 (2021-01-28 22:19:16)

离线

楼主 #3 2021-01-29 11:11:55

来日方长
会员
注册时间: 2019-10-25
已发帖子: 24
积分: 20

Re: 全志H3 SD卡启动问题

zoums 说:

根据你sdcard中启动的内核日志,sd卡看起来设备也是mmcblk1,mmc反而成了mmcblk2,估计是内核的驱动有意为之。

感谢 好像是这里的问题
我说咋当时候进去mmcblk1还觉得有点怪

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn