varigit / meta-variscite-fslc

Variscite BSP layer for FSL community BSP
19 stars 47 forks source link

dunfell var-som-mx8m-mini sd card boot stuck at waiting for root device #28

Closed mhuangwm closed 3 years ago

mhuangwm commented 3 years ago

Hi, I'm following a guide according to https://variwiki.com/index.php?title=Yocto_Build_Release&release=RELEASE_DUNFELL_V1.4_DART-MX8M-MINI

I created the sd card image:

zcat tmp/deploy/images/imx8mm-var-dart/fsl-image-gui-imx8mm-var-dart.wic.gz | sudo dd of=/dev/sdX bs=1M conv=fsync

and when attempting to boot via SD card, the kernel is stuck at Waiting for root device /dev/mmcblk1p1..

I know that root is at /dev/mmcblk1p1 from the ls mmc command:

u-boot=> ls mmc 1:1
<DIR>       1024 .
<DIR>       1024 ..
<DIR>      12288 lost+found
<DIR>       3072 bin
<DIR>       1024 boot
<DIR>       1024 dev
<DIR>       1024 etc
<DIR>       1024 home
<DIR>       3072 lib
<DIR>       1024 media
<DIR>       1024 mnt
<DIR>       1024 proc
<DIR>       1024 run
<DIR>       3072 sbin
<DIR>       1024 sys
<DIR>       1024 tmp
<DIR>       1024 usr
<DIR>       1024 var

u-boot=> ls mmc 1:1 /boot
<DIR>       1024 .
<DIR>       1024 ..
<SYM>         29 Image.gz
         6026582 Image.gz-5.4.85+g786d1c620c92
           46661 imx8mm-var-dart-dt8mcustomboard-legacy-m4.dtb
           45888 imx8mm-var-dart-dt8mcustomboard-legacy.dtb
           46455 imx8mm-var-dart-dt8mcustomboard-m4.dtb
           45682 imx8mm-var-dart-dt8mcustomboard.dtb
           46521 imx8mm-var-som-symphony-legacy-m4.dtb
           45748 imx8mm-var-som-symphony-legacy.dtb
           46564 imx8mm-var-som-symphony-m4.dtb
           45795 imx8mm-var-som-symphony.dtb

however, when i try to switch to that partition, I errored out:

u-boot=> mmc dev 1 1
Run CMD11 1.8V switch
switch to partitions #1, ERROR

I tried this with multiple SD cards just in case. Am I doing something wrong?

Here are the kernel logs:

U-Boot SPL 2020.04-imx_v2020.04_5.4.24_2.1.0_var02+ga868ae6fd1 (Mar 14 2021 - 10:21:37 +0000)
Normal Boot
Trying to boot from MMC1

U-Boot 2020.04-imx_v2020.04_5.4.24_2.1.0_var02+ga868ae6fd1 (Mar 14 2021 - 10:21:37 +0000)

CPU:   i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 34C
Reset cause: POR
Model: Variscite VAR-SOM-MX8M-MINI
DRAM:  2 GiB
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Run CMD11 1.8V switch
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial

 BuildInfo:
  - ATF 7575633
  - U-Boot 2020.04-imx_v2020.04_5.4.24_2.1.0_var02+ga868ae6fd1

Part number: VSM-MX8MM-001B
Assembly: AS2002149707
Production date: 2020 Mar 11
Serial Number: f8:dc:7a:3c:44:58
Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Run CMD11 1.8V switch
Net:   eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 
Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
Run CMD11 1.8V switch
6026582 bytes read in 84 ms (68.4 MiB/s)
Uncompressed size: 12939272 = 0xC57008
Booting from mmc ...
fdt_file=imx8mm-var-som-symphony-legacy.dtb
45748 bytes read in 18 ms (2.4 MiB/s)
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Using Device Tree in place at 0000000043000000, end 000000004300e2b3

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.85+g786d1c620c92 (oe-user@oe-host) (gcc version 9.3.0 (GCC)) #1 SMP PREEMPT Mon Mar 29 15:21:11 UTC 2021
[    0.000000] Machine model: Variscite VAR-SOM-MX8M-MINI on Symphony-Board 1.4 and below
[    0.000000] cma: Reserved 640 MiB at 0x0000000056000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xbfbc5800-0xbfbc6fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 21 pages/cpu s48728 r8192 d29096 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Speculative Store Bypass Disable mitigation not required
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: console=ttymxc3,115200 root=/dev/mmcblk1p1 rootwait rw cma=640M@1376M
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1388204K/2097152K available (8382K kernel code, 604K rwdata, 3120K rodata, 448K init, 369K bss, 53588K reserved, 655360K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  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] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 128 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] random: get_random_bytes called from start_kernel+0x2b4/0x434 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000003] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.000349] Console: colour dummy device 80x25
[    0.000427] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[    0.000437] pid_max: default: 32768 minimum: 301
[    0.000538] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000550] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001927] ASID allocator initialised with 32768 entries
[    0.001995] rcu: Hierarchical SRCU implementation.
[    0.002644] smp: Bringing up secondary CPUs ...
[    0.003009] Detected VIPT I-cache on CPU1
[    0.003039] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[    0.003084] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.003489] Detected VIPT I-cache on CPU2
[    0.003505] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[    0.003525] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.003888] Detected VIPT I-cache on CPU3
[    0.003902] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[    0.003921] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.004019] smp: Brought up 1 node, 4 CPUs
[    0.004024] SMP: Total of 4 processors activated.
[    0.004030] CPU features: detected: 32-bit EL0 Support
[    0.004036] CPU features: detected: CRC32 instructions
[    0.008925] CPU: All CPU(s) started at EL2
[    0.008945] alternatives: patching kernel code
[    0.010329] devtmpfs: initialized
[    0.016925] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.016948] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.034662] pinctrl core: initialized pinctrl subsystem
[    0.035607] NET: Registered protocol family 16
[    0.036957] DMA: preallocated 256 KiB pool for atomic allocations
[    0.037432] cpuidle: using governor menu
[    0.037593] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.037848] imx mu driver is registered.
[    0.037867] imx rpmsg driver is registered.
[    0.042335] imx8mm-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[    0.055009] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.055022] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.055027] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.055033] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.058727] iommu: Default domain type: Translated 
[    0.058906] vgaarb: loaded
[    0.060088] mc: Linux media interface: v0.10
[    0.060115] videodev: Linux video capture interface: v2.00
[    0.060184] pps_core: LinuxPPS API ver. 1 registered
[    0.060189] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.060202] PTP clock support registered
[    0.061687] clocksource: Switched to clocksource arch_sys_counter
[    0.067228] thermal_sys: Registered thermal governor 'step_wise'
[    0.067233] thermal_sys: Registered thermal governor 'power_allocator'
[    0.067621] NET: Registered protocol family 2
[    0.068133] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.068164] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.068276] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.068599] TCP: Hash tables configured (established 16384 bind 16384)
[    0.068702] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.068744] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.068893] NET: Registered protocol family 1
[    0.069304] RPC: Registered named UNIX socket transport module.
[    0.069309] RPC: Registered udp transport module.
[    0.069314] RPC: Registered tcp transport module.
[    0.069318] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.069330] PCI: CLS 0 bytes, default 64
[    0.070140] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.071286] Initialise system trusted keyrings
[    0.071446] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    0.076009] NFS: Registering the id_resolver key type
[    0.076039] Key type id_resolver registered
[    0.076044] Key type id_legacy registered
[    0.076056] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.076385] Key type asymmetric registered
[    0.076392] Asymmetric key parser 'x509' registered
[    0.076422] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.076540] io scheduler mq-deadline registered
[    0.076546] io scheduler kyber registered
[    0.078554] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.084868] mxs-dma 33000000.dma-controller: initialized
[    0.085435] Bus freq driver module loaded
[    0.088094] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.089829] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 31, base_baud = 1500000) is a IMX
[    0.090289] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 32, base_baud = 1500000) is a IMX
[    0.090713] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 33, base_baud = 5000000) is a IMX
[    0.091098] 30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 39, base_baud = 1500000) is a IMX
[    0.867068] printk: console [ttymxc3] enabled
[    0.876888] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.883528] [drm] No driver support for vblank timestamp query.
[    0.889542] imx-drm soc@0:bus@32c00000:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[    0.899483] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
[    0.907032] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
[    0.915306] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
[    0.925060] libphy: Fixed MDIO Bus: probed
[    0.930444] input: 30370000.snvs:snvs-powerkey as /devices/platform/soc@0/soc@0:bus@30000000/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
[    0.944420] i2c /dev entries driver
[    0.948137] mx6s-csi 32e20000.csi1_bridge: initialising
[    0.953949] mxc_mipi-csi 32e30000.mipi_csi: 32e30000.mipi_csi supply mipi-phy not found, using dummy regulator
[    0.964155] mxc_mipi-csi 32e30000.mipi_csi: mipi csi v4l2 device registered
[    0.971133] CSI: Registered sensor subdevice: mxc_mipi-csi.0
[    0.976816] mxc_mipi-csi 32e30000.mipi_csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 333000000
[    0.990058] imx2-wdt 30280000.watchdog: timeout 60 sec (nowayout=0)
[    0.997330] sdhci: Secure Digital Host Controller Interface driver
[    1.003523] sdhci: Copyright(c) Pierre Ossman
[    1.007884] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.014162] mmc0: CQHCI version 5.10
[    1.049598] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
[    1.057161] mmc1: CQHCI version 5.10
[    1.061289] mmc2: CQHCI version 5.10
[    1.095260] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[    1.104543] ledtrig-cpu: registered to indicate activity on CPUs
[    1.111866] caam 30900000.crypto: device ID = 0x0a16040100000000 (Era 9)
[    1.118627] caam 30900000.crypto: job rings = 3, qi = 0
[    1.143997] caam algorithms registered in /proc/crypto
[    1.150268] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
[    1.159808] caam_jr 30901000.jr: registering rng-caam
[    1.170546] caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state
[    1.178609] hidraw: raw HID events driver (C) Jiri Kosina
[    1.187336] NET: Registered protocol family 17
[    1.191858] 8021q: 802.1Q VLAN Support v1.8
[    1.196099] Key type dns_resolver registered
[    1.201076] Loading compiled-in X.509 certificates
[    1.215885] mmc2: Command Queue Engine enabled
[    1.220559] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[    1.223077] GPIO line 101 (cam_buf_en) hogged as output/low
[    1.228015] mmcblk2: mmc2:0001 AJTD4R 14.6 GiB 
[    1.235911] gpio-142 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    1.237421] mmcblk2boot0: mmc2:0001 AJTD4R partition 1 4.00 MiB
[    1.252245] mmcblk2boot1: mmc2:0001 AJTD4R partition 2 4.00 MiB
[    1.258708] mmcblk2rpmb: mmc2:0001 AJTD4R partition 3 4.00 MiB, chardev (243:0)
[    1.267700]  mmcblk2: p1
[    1.397758] random: fast init done
[    1.401600] LDO6: supplied by regulator-dummy
[    1.406097] i2c i2c-0: IMX I2C adapter registered
[    1.411354] gpio-144 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    1.421498] ov5640_mipi 1-003c: 1-003c supply DOVDD not found, using dummy regulator
[    1.429320] ov5640_mipi 1-003c: 1-003c supply DVDD not found, using dummy regulator
[    1.437019] ov5640_mipi 1-003c: 1-003c supply AVDD not found, using dummy regulator
[    1.514986] ov5640_mipi 1-003c: Read reg error: reg=300a
[    1.520317] ov5640_mipi 1-003c: Camera is not found
[    1.525632] pca953x 1-0020: using no AI
[    1.537293] GPIO line 508 (usb3_sel) hogged as output/low
[    1.545469] GPIO line 509 (enet_rst) hogged as output/low
[    1.553648] GPIO line 510 (som_vsel) hogged as output/low
[    1.562104] GPIO line 511 (enet_sel) hogged as output/low
[    1.572725] i2c i2c-1: IMX I2C adapter registered
[    1.577924] gpio-146 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    1.625165] input: generic ft5x06 (7b) as /devices/platform/soc@0/soc@0:bus@30800000/30a40000.i2c/i2c-2/2-0038/input/input1
[    1.644902] rtc-ds1307 2-0068: SET TIME!
[    1.662752] rtc-ds1307 2-0068: registered as rtc0
[    1.667500] i2c i2c-2: IMX I2C adapter registered
[    1.672704] gpio-148 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    1.682175] i2c i2c-3: IMX I2C adapter registered
[    1.687757] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.688211] imx6q-pcie 33800000.pcie: couldn't get pcie-phy
[    1.698339] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.701866] imx6q-pcie 33800000.pcie: 33800000.pcie supply epdev_on not found, using dummy regulator
[    1.708423] [drm] No driver support for vblank timestamp query.
[    1.717856] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[    1.723548] imx-drm soc@0:bus@32c00000:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[    1.730723] imx6q-pcie 33800000.pcie:    IO 0x1ff80000..0x1ff8ffff -> 0x00000000
[    1.740618] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
[    1.747329] imx6q-pcie 33800000.pcie:   MEM 0x18000000..0x1fefffff -> 0x18000000
[    1.755550] imx-drm soc@0:bus@32c00000:display-subsystem: bound 32e10000.mipi_dsi (ops imx_sec_dsim_ops)
[    1.761755] imx6q-pcie 33800000.pcie: EXT REF_CLK is used!.
[    1.771792] [drm] Initialized imx-drm 1.0.0 20120507 for soc@0:bus@32c00000:display-subsystem on minor 0
[    1.801696] sn65dsi83 0-002c: DSI clock [ 99000000 ] Hz
[    1.801702] sn65dsi83 0-002c: Resolution [ 800 x 480 ]
[    1.805211] sn65dsi83 0-002c: lvds_clk=33000000 lvds_clk_range=0x0
[    1.811833] sn65dsi83 0-002c: dsi_clk_range=0x13
[    1.811837] sn65dsi83 0-002c: dsi_clk_div=0x2
[    1.882074] imx6q-pcie 33800000.pcie: PCIe PLL locked after 20 us.
[    2.138072] Console: switching to colour frame buffer device 100x30
[    2.190382] imx-drm soc@0:bus@32c00000:display-subsystem: fb0: imx-drmdrmfb frame buffer device
[    2.212416] pps pps0: new PPS source ptp0
[    2.219042] libphy: fec_enet_mii_bus: probed
[    2.228101] fec 30be0000.ethernet eth0: registered PHC device 0
[    2.234332] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 3 mkt segment 0 supported-hw 0x8 0x1
[    2.246413] mmc1: CQHCI version 5.10
[    2.250050] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[    2.287922] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[    2.321365] input: gpio-keys as /devices/platform/gpio-keys/input/input2
[    2.339640] input: bd718xx-pwrkey as /devices/platform/soc@0/soc@0:bus@30800000/30a20000.i2c/i2c-0/0-004b/gpio-keys.0.auto/input/input3
[    2.358939] rtc-ds1307 2-0068: setting system clock to 2000-01-01T00:00:06 UTC (946684806)
[    2.880368] imx6q-pcie 33800000.pcie: Phy link never came up
[    2.886085] imx6q-pcie 33800000.pcie: failed to initialize host
[    2.892033] imx6q-pcie 33800000.pcie: unable to add pcie port.
[    2.898523] Waiting for root device /dev/mmcblk1p1..
nsdrude commented 3 years ago

@zlemonpie thank you for the detailed logs.

Can you please try applying the patch described here: https://variwiki.com/index.php?title=VAR-SOM-MX8M-MINI-Rev10&release=RELEASE_DUNFELL_V1.4_DART-MX8M-MINI#On_Symphony-Board_1.4_and_below

mhuangwm commented 3 years ago

@nsdrude that patch fixed it. thank you

nsdrude commented 3 years ago

@zlemonpie Great! I'll close this issue now.

In the future, Variscite prefers you use the customer portal for support: http://www.variscite.com/support/variscite-customer-portal