Xilinx / meta-xilinx-tools

Yocto Project layer enables AMD Xilinx tools related metadata for MicroBlaze, Zynq, ZynqMP and Versal devices.
MIT License
53 stars 51 forks source link

ZCU104 Linux kernel starting hangs on "Waiting for root device dev/mmcblk0p2..." #38

Closed Livius90 closed 2 years ago

Livius90 commented 2 years ago

Linux kernel starting is hanged on at "Waiting for root device dev/mmcblk0p2..." step for infinity time on ZCU104 board, in SD card booting mode.

I am using Yocto 2020.2 release for Linux building and i have no any custom modification in ZCU104 machine recipe, i am using default device-tree and xsa files from xilinx meta layers. I would like to test ZCU104 Linux build on SD card image booting (boot + rootfs partition), and i am following the "UBOOT_EXTLINUX" boot method from this "how to" page.

This is my booting log:

Xilinx Zynq MP First Stage Boot Loader
Release 2020.2   Nov 17 2021  -  18:19:02
PMU Firmware 2020.2     Nov 17 2021   18:18:31
PMU_ROM Version: xpbr-v8.1.0-0
NOTICE:  ATF running on XCZU7EV/silicon v4/RTL5.1 at 0xfffea000
NOTICE:  BL31: v2.2(release):xlnx_rebase_v2.2_2020.3
NOTICE:  BL31: Built : 18:16:34, Nov 17 2021

U-Boot 2020.01 (Nov 18 2021 - 18:38:15 +0000)

Model: ZynqMP ZCU104 RevC
Board: Xilinx ZynqMP
DRAM:  2 GiB
PMUFW:  v1.1
EL Level:       EL2
Chip ID:        zu7ev
NAND:  0 MiB
MMC:   mmc@ff170000: 0
In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Bootmode: LVL_SHFT_SD_MODE1
Reset reason:   EXTERNAL
Net:
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr 12, interface rgmii-id

Warning: ethernet@ff0e0000 using MAC address from ROM
eth0: ethernet@ff0e0000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
222 bytes read in 22 ms (9.8 KiB/s)
1:      PetaLinux
Retrieving file: /boot/extlinux/../Image
12419080 bytes read in 836 ms (14.2 MiB/s)
append: root=/dev/mmcblk0p2 rootwait rw earlycon clk_ignore_unused console=ttyPS0,115200
Retrieving file: /boot/extlinux/../zcu104-zynqmp-system.dtb
44071 bytes read in 28 ms (1.5 MiB/s)
## Flattened Device Tree blob at 40000000
   Booting using the fdt blob at 0x40000000
   Loading Device Tree to 000000000fff2000, end 000000000ffffc26 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Linux version 5.4.0 (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Thu Nov 18 15:46:48 UTC 2021
Machine model: ZynqMP ZCU104 RevC
earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
printk: bootconsole [cdns0] enabled
cma: Reserved 16 MiB at 0x000000007ec00000
psci: probing for conduit method from DT.
psci: PSCIv1.1 detected in firmware.
psci: Using standard PSCI v0.2 function IDs
psci: MIGRATE_INFO_TYPE not supported.
psci: SMC Calling Convention v1.1
percpu: Embedded 20 pages/cpu s43480 r8192 d30248 u81920
Detected VIPT I-cache on CPU0
Speculative Store Bypass Disable mitigation not required
Built 1 zonelists, mobility grouping on.  Total pages: 515844
Kernel command line: root=/dev/mmcblk0p2 rootwait rw earlycon clk_ignore_unused console=ttyPS0,115200
printk: log_buf_len individual max cpu contribution: 4096 bytes
printk: log_buf_len total cpu_extra contributions: 12288 bytes
printk: log_buf_len min size: 16384 bytes
printk: log_buf_len: 32768 bytes
printk: early log buf free: 14716(89%)
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
Memory: 2026908K/2096128K available (7678K kernel code, 352K rwdata, 1928K rodata, 2048K init, 166K bss, 52836K reserved, 16384K cma-reserved)
rcu: Preemptible hierarchical RCU implementation.
        Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
GIC: Adjusting CPU interface base to 0x00000000f902f000
GIC: Using split EOI/Deactivate mode
random: get_random_bytes called from start_kernel+0x2a4/0x404 with crng_init=0
arch_timer: cp15 timer(s) running at 100.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns
sched_clock: 56 bits at 100MHz, resolution 10ns, wraps every 4398046511100ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=100000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
ASID allocator initialised with 32768 entries
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
Detected VIPT I-cache on CPU1
CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
Detected VIPT I-cache on CPU2
CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
Detected VIPT I-cache on CPU3
CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
smp: Brought up 1 node, 4 CPUs
SMP: Total of 4 processors activated.
CPU features: detected: 32-bit EL0 Support
CPU features: detected: CRC32 instructions
CPU: All CPU(s) started at EL2
alternatives: patching kernel code
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic allocations
hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
iommu: Default domain type: Translated
vgaarb: loaded
SCSI subsystem initialized
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
FPGA manager framework
clocksource: Switched to clocksource arch_sys_counter
thermal_sys: Registered thermal governor 'step_wise'
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
TCP: Hash tables configured (established 16384 bind 16384)
UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 64
hw perfevents: no interrupt-affinity property for /pmu, guessing.
hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
Initialise system trusted keyrings
workingset: timestamp_bits=46 max_order=19 bucket_order=0
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
ntfs: driver 2.1.32 [Flags: R/O].
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
Key type asymmetric registered
Asymmetric key parser 'x509' registered
io scheduler mq-deadline registered
io scheduler kyber registered
cacheinfo: Unable to detect cache hierarchy for CPU 0
brd: module loaded
loop: module loaded
dma-buf: Running sanitycheck
dma-buf: Running dma_fence
sizeof(dma_fence)=64
dma-buf: Running dma_fence/sanitycheck
dma-buf: Running dma_fence/test_signaling
dma-buf: Running dma_fence/test_add_callback
dma-buf: Running dma_fence/test_late_add_callback
dma-buf: Running dma_fence/test_rm_callback
dma-buf: Running dma_fence/test_late_rm_callback
dma-buf: Running dma_fence/test_status
dma-buf: Running dma_fence/test_error
dma-buf: Running dma_fence/test_wait
dma-buf: Running dma_fence/test_wait_timeout
dma-buf: Running dma_fence/test_stub
dma-buf: Running dma_fence/race_signal_callback
thread_signal_callback[0] completed 41278 passes, 1078 misses
thread_signal_callback[1] completed 41306 passes, 1115 misses
thread_signal_callback[0] completed 51880 passes, 51880 misses
thread_signal_callback[1] completed 51886 passes, 51885 misses
libphy: Fixed MDIO Bus: probed
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
i2c /dev entries driver
EDAC DEVICE0: Giving out device to module edac controller cache_err: DEV edac (POLLED)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
ledtrig-cpu: registered to indicate activity on CPUs
NET: Registered protocol family 17
Loading compiled-in X.509 certificates
xilinx-dpdma fd4c0000.dma: ignoring dependency for device, assuming no driver
zynqmp-qspi ff0f0000.spi: ignoring dependency for device, assuming no driver
hctosys: unable to open rtc device (rtc0)
of_cfs_init
of_cfs_init: OK
clk: Not disabling unused clocks
Warning: unable to open an initial console.
Waiting for root device /dev/mmcblk0p2...

I tested it on Yocto 2021.1 release, also. In 2021.1, i got the same problem but i have more error printing.

Waiting for root device /dev/mmcblk0p2...
mmc0: error -110 whilst initialising SD card

Here is a link for this issue on Xilinx community forum: Link Please help and fix it in your meta layers.

Livius90 commented 2 years ago

Here is a full log on Yocto 2021.1 release:

Xilinx Zynq MP First Stage Boot Loader
Release 2021.2   Oct 13 2021  -  07:15:53
PMU Firmware 2021.2     Oct 13 2021   07:15:53
PMU_ROM Version: xpbr-v8.1.0-0
NOTICE:  BL31: v2.4(release):xlnx_rebase_v2.4_2021.2
NOTICE:  BL31: Built : 07:41:24, Oct 13 2021

U-Boot 2021.01 (Oct 12 2021 - 09:28:42 +0000)

CPU:   ZynqMP
Silicon: v3
Board: Xilinx ZynqMP
DRAM:  2 GiB
usb dr_mode not found
PMUFW:  v1.1
EL Level:       EL2
Chip ID:        zu7ev
NAND:  0 MiB
MMC:   mmc@ff170000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Bootmode: LVL_SHFT_SD_MODE1
Reset reason:   EXTERNAL
Net:
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr -1, interface rgmii-id
No ethernet found.

Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
222 bytes read in 17 ms (12.7 KiB/s)
1:      PetaLinux
Retrieving file: /boot/extlinux/../Image
21584384 bytes read in 1435 ms (14.3 MiB/s)
append: root=/dev/mmcblk0p2 rootwait rw earlycon clk_ignore_unused console=ttyPS0,115200
Retrieving file: /boot/extlinux/../zcu104-zynqmp-system.dtb
37271 bytes read in 22 ms (1.6 MiB/s)
## Flattened Device Tree blob at 40000000
   Booting using the fdt blob at 0x40000000

ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr -1, interface rgmii-id
   Loading Device Tree to 000000007dd05000, end 000000007dd11196 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.0-xilinx-v2021.2 (oe-user@oe-host) (aarch64-xilinx-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP Tue Oct 12 09:30:57 UTC 2021
[    0.000000] Machine model: xlnx,zynqmp
[    0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
[    0.000000] printk: bootconsole [cdns0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 256 MiB at 0x000000006dc00000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000000000-0x000000007fefffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fefffff]
[    0.000000] Zeroed struct page in unavailable ranges: 256 pages
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fefffff]
[    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.2
[    0.000000] percpu: Embedded 22 pages/cpu s50968 r8192 d30952 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 515844
[    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait rw earlycon clk_ignore_unused console=ttyPS0,115200
[    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: 1771804K/2096128K available (13952K kernel code, 982K rwdata, 3928K rodata, 2112K init, 586K bss, 62180K reserved, 262144K cma-reserved)
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x31c/0x524 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 100.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns
[    0.000003] sched_clock: 56 bits at 100MHz, resolution 10ns, wraps every 4398046511100ns
[    0.008356] Console: colour dummy device 80x25
[    0.012478] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=400000)
[    0.022841] pid_max: default: 32768 minimum: 301
[    0.027563] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.034785] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.043614] rcu: Hierarchical SRCU implementation.
[    0.047554] EFI services will not be available.
[    0.051962] smp: Bringing up secondary CPUs ...
[    0.056696] Detected VIPT I-cache on CPU1
[    0.056737] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.057125] Detected VIPT I-cache on CPU2
[    0.057149] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.057514] Detected VIPT I-cache on CPU3
[    0.057537] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.057584] smp: Brought up 1 node, 4 CPUs
[    0.091780] SMP: Total of 4 processors activated.
[    0.096452] CPU features: detected: 32-bit EL0 Support
[    0.101555] CPU features: detected: CRC32 instructions
[    0.106693] CPU: All CPU(s) started at EL2
[    0.110736] alternatives: patching kernel code
[    0.116211] devtmpfs: initialized
[    0.122544] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.128125] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.140877] pinctrl core: initialized pinctrl subsystem
[    0.141383] DMI not present or invalid.
[    0.144450] NET: Registered protocol family 16
[    0.150120] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.155799] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.163611] audit: initializing netlink subsys (disabled)
[    0.169014] audit: type=2000 audit(0.108:1): state=initialized audit_enabled=0 res=1
[    0.176648] cpuidle: using governor menu
[    0.180596] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.187323] ASID allocator initialised with 65536 entries
[    0.192735] Serial: AMBA PL011 UART driver
[    0.217045] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.218102] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.224770] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.231427] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    1.282970] cryptd: max_cpu_qlen set to 1000
[    1.307762] DRBG: Continuing without Jitter RNG
[    1.386878] raid6: neonx8   gen()  2135 MB/s
[    1.454938] raid6: neonx8   xor()  1597 MB/s
[    1.523006] raid6: neonx4   gen()  2186 MB/s
[    1.591056] raid6: neonx4   xor()  1562 MB/s
[    1.659136] raid6: neonx2   gen()  2076 MB/s
[    1.727186] raid6: neonx2   xor()  1434 MB/s
[    1.795253] raid6: neonx1   gen()  1774 MB/s
[    1.863313] raid6: neonx1   xor()  1219 MB/s
[    1.931375] raid6: int64x8  gen()  1437 MB/s
[    1.999441] raid6: int64x8  xor()   771 MB/s
[    2.067507] raid6: int64x4  gen()  1601 MB/s
[    2.135568] raid6: int64x4  xor()   817 MB/s
[    2.203649] raid6: int64x2  gen()  1398 MB/s
[    2.271709] raid6: int64x2  xor()   749 MB/s
[    2.339784] raid6: int64x1  gen()  1033 MB/s
[    2.407846] raid6: int64x1  xor()   517 MB/s
[    2.407884] raid6: using algorithm neonx4 gen() 2186 MB/s
[    2.411839] raid6: .... xor() 1562 MB/s, rmw enabled
[    2.416770] raid6: using neon recovery algorithm
[    2.421810] iommu: Default domain type: Translated
[    2.426419] SCSI subsystem initialized
[    2.430062] usbcore: registered new interface driver usbfs
[    2.435398] usbcore: registered new interface driver hub
[    2.440669] usbcore: registered new device driver usb
[    2.445718] mc: Linux media interface: v0.10
[    2.449919] videodev: Linux video capture interface: v2.00
[    2.455389] EDAC MC: Ver: 3.0.0
[    2.458843] zynqmp-ipi-mbox mailbox@ff990400: Registered ZynqMP IPI mbox with TX/RX channels.
[    2.467132] FPGA manager framework
[    2.470431] Advanced Linux Sound Architecture Driver Initialized.
[    2.476669] Bluetooth: Core ver 2.22
[    2.479927] NET: Registered protocol family 31
[    2.484329] Bluetooth: HCI device and connection manager initialized
[    2.490645] Bluetooth: HCI socket layer initialized
[    2.495487] Bluetooth: L2CAP socket layer initialized
[    2.500511] Bluetooth: SCO socket layer initialized
[    2.505609] clocksource: Switched to clocksource arch_sys_counter
[    2.511552] VFS: Disk quotas dquot_6.6.0
[    2.515340] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    2.526623] NET: Registered protocol family 2
[    2.527001] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    2.534958] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    2.542904] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    2.550262] TCP: Hash tables configured (established 16384 bind 16384)
[    2.556625] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    2.563256] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    2.570431] NET: Registered protocol family 1
[    2.574918] RPC: Registered named UNIX socket transport module.
[    2.580526] RPC: Registered udp transport module.
[    2.585189] RPC: Registered tcp transport module.
[    2.589860] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.596847] PCI: CLS 0 bytes, default 64
[    2.625500] Initialise system trusted keyrings
[    2.625641] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    2.631420] NFS: Registering the id_resolver key type
[    2.635743] Key type id_resolver registered
[    2.639886] Key type id_legacy registered
[    2.643882] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.650549] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.693674] NET: Registered protocol family 38
[    2.693717] xor: measuring software checksum speed
[    2.701408]    8regs           :  2363 MB/sec
[    2.705079]    32regs          :  2799 MB/sec
[    2.710029]    arm64_neon      :  2380 MB/sec
[    2.710208] xor: using function: 32regs (2799 MB/sec)
[    2.715234] Key type asymmetric registered
[    2.719297] Asymmetric key parser 'x509' registered
[    2.724161] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    2.731495] io scheduler mq-deadline registered
[    2.735991] io scheduler kyber registered
[    2.741880] ps_pcie_dma init()
[    2.769557] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.771343] Serial: AMBA driver
[    2.775644] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.784011] brd: module loaded
[    2.788421] loop: module loaded
[    2.789235] mtdoops: mtd device (mtddev=name/number) must be supplied
[    2.793771] libphy: Fixed MDIO Bus: probed
[    2.797696] tun: Universal TUN/TAP device driver, 1.6
[    2.801498] CAN device driver interface
[    2.805960] usbcore: registered new interface driver asix
[    2.810632] usbcore: registered new interface driver ax88179_178a
[    2.816666] usbcore: registered new interface driver cdc_ether
[    2.822459] usbcore: registered new interface driver net1080
[    2.828083] usbcore: registered new interface driver cdc_subset
[    2.833964] usbcore: registered new interface driver zaurus
[    2.839510] usbcore: registered new interface driver cdc_ncm
[    2.845982] usbcore: registered new interface driver uas
[    2.850411] usbcore: registered new interface driver usb-storage
[    2.856964] rtc_zynqmp ffa60000.rtc: registered as rtc0
[    2.861557] rtc_zynqmp ffa60000.rtc: setting system clock to 2018-01-16T06:12:21 UTC (1516083141)
[    2.870404] i2c /dev entries driver
[    2.875325] usbcore: registered new interface driver uvcvideo
[    2.879530] USB Video Class driver (1.1.1)
[    2.884071] Bluetooth: HCI UART driver ver 2.3
[    2.888010] Bluetooth: HCI UART protocol H4 registered
[    2.893111] Bluetooth: HCI UART protocol BCSP registered
[    2.898403] Bluetooth: HCI UART protocol LL registered
[    2.903490] Bluetooth: HCI UART protocol ATH3K registered
[    2.908865] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    2.915112] Bluetooth: HCI UART protocol Intel registered
[    2.920458] Bluetooth: HCI UART protocol QCA registered
[    2.925660] usbcore: registered new interface driver bcm203x
[    2.931280] usbcore: registered new interface driver bpa10x
[    2.936822] usbcore: registered new interface driver bfusb
[    2.942265] usbcore: registered new interface driver btusb
[    2.947727] usbcore: registered new interface driver ath3k
[    2.953221] EDAC MC: ECC not enabled
[    2.956825] EDAC DEVICE0: Giving out device to module zynqmp-ocm-edac controller zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT)
[    2.969160] sdhci: Secure Digital Host Controller Interface driver
[    2.974944] sdhci: Copyright(c) Pierre Ossman
[    2.979264] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.985193] ledtrig-cpu: registered to indicate activity on CPUs
[    2.990866] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    2.997299] zynqmp_firmware_probe Platform Management API v1.1
[    3.003054] zynqmp_firmware_probe Trustzone version v1.0
[    3.058806] securefw securefw: securefw probed
[    3.059093] alg: No test for xilinx-zynqmp-aes (zynqmp-aes)
[    3.063262] zynqmp_aes firmware:zynqmp-firmware:zynqmp-aes: AES Successfully Registered
[    3.071372] alg: No test for xilinx-keccak-384 (zynqmp-keccak-384)
[    3.077518] alg: No test for xilinx-zynqmp-rsa (zynqmp-rsa)
[    3.083032] usbcore: registered new interface driver usbhid
[    3.088415] usbhid: USB HID core driver
[    3.094925] ARM CCI_400_r1 PMU driver probed
[    3.095379] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
[    3.103284] usbcore: registered new interface driver snd-usb-audio
[    3.109809] pktgen: Packet Generator for packet performance testing. Version: 2.75
[    3.117158] Initializing XFRM netlink socket
[    3.120832] NET: Registered protocol family 10
[    3.125581] Segment Routing with IPv6
[    3.128981] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.135041] NET: Registered protocol family 17
[    3.139112] NET: Registered protocol family 15
[    3.143521] can: controller area network core
[    3.147863] NET: Registered protocol family 29
[    3.152248] can: raw protocol
[    3.155189] can: broadcast manager protocol
[    3.159342] can: netlink gateway - max_hops=1
[    3.163742] Bluetooth: RFCOMM TTY layer initialized
[    3.168517] Bluetooth: RFCOMM socket layer initialized
[    3.173625] Bluetooth: RFCOMM ver 1.11
[    3.177330] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.182607] Bluetooth: BNEP filters: protocol multicast
[    3.187800] Bluetooth: BNEP socket layer initialized
[    3.192727] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.198617] Bluetooth: HIDP socket layer initialized
[    3.203655] 9pnet: Installing 9P2000 support
[    3.207797] Key type dns_resolver registered
[    3.212207] registered taskstats version 1
[    3.216089] Loading compiled-in X.509 certificates
[    3.221795] Btrfs loaded, crc32c=crc32c-generic
[    3.233891] ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 49, base_baud = 6249999) is a xuartps
[    3.242910] printk: console [ttyPS0] enabled
[    3.242910] printk: console [ttyPS0] enabled
[    3.247205] printk: bootconsole [cdns0] disabled
[    3.247205] printk: bootconsole [cdns0] disabled
[    3.256620] ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 50, base_baud = 6249999) is a xuartps
[    3.270029] of-fpga-region fpga-full: FPGA Region probed
[    3.276079] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[    3.283259] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[    3.290438] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[    3.297625] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[    3.304803] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[    3.311981] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[    3.319170] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[    3.326352] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[    3.333606] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[    3.340780] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[    3.347950] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[    3.355117] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[    3.362294] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[    3.369467] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[    3.376641] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[    3.383819] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[    3.391226] xilinx-zynqmp-dpdma fd4c0000.dma-controller: Xilinx DPDMA engine is probed
[    3.399357] xilinx-psgtr fd400000.phy: Invalid reference clock number 3
[    3.405968] zynqmp-display fd4a0000.display: failed to get PHY lane 0
[    3.412432] zynqmp-display: probe of fd4a0000.display failed with error -22
[    3.419755] ahci-ceva fd0c0000.ahci: supply ahci not found, using dummy regulator
[    3.427306] ahci-ceva fd0c0000.ahci: supply phy not found, using dummy regulator
[    3.434732] ahci-ceva fd0c0000.ahci: supply target not found, using dummy regulator
[    3.452576] ahci-ceva fd0c0000.ahci: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.461532] ahci-ceva fd0c0000.ahci: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst
[    3.472336] scsi host0: ahci-ceva
[    3.475946] scsi host1: ahci-ceva
[    3.479384] ata1: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x100 irq 47
[    3.487300] ata2: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x180 irq 47
[    3.496655] macb ff0e0000.ethernet: Not enabling partial store and forward
[    3.503564] macb ff0e0000.ethernet: invalid hw address, using random
[    3.513438] libphy: MACB_mii_bus: probed
[    3.517410] macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000 irq 38 (5e:c4:ae:f8:11:f1)
[    3.527624] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[    3.534201] xilinx-axipmon fd0b0000.perf-monitor: Probed Xilinx APM
[    3.540743] xilinx-axipmon fd490000.perf-monitor: Probed Xilinx APM
[    3.547299] xilinx-axipmon ffa10000.perf-monitor: Probed Xilinx APM
[    3.570944] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 40
[    3.577464] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.582962] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    3.590705] xhci-hcd xhci-hcd.1.auto: hcc params 0x0238f625 hci version 0x100 quirks 0x0000000002010010
[    3.600118] xhci-hcd xhci-hcd.1.auto: irq 56, io mem 0xfe200000
[    3.606249] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer with timeout 60s
[    3.613757] cdns-wdt ff150000.watchdog: Xilinx Watchdog Timer with timeout 10s
[    3.624174] of_cfs_init
[    3.626646] of_cfs_init: OK
[    3.629547] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.637558] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.645819] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.653036] usb usb1: Product: xHCI Host Controller
[    3.653616] mmc0: SDHCI controller on ff170000.mmc [ff170000.mmc] using ADMA 64-bit
[    3.657902] usb usb1: Manufacturer: Linux 5.10.0-xilinx-v2021.2 xhci-hcd
[    3.657907] usb usb1: SerialNumber: xhci-hcd.1.auto
[    3.677546] hub 1-0:1.0: USB hub found
[    3.681374] hub 1-0:1.0: 1 port detected
[    3.685493] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.690996] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[    3.698659] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    3.705285] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.713490] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    3.721749] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.728965] usb usb2: Product: xHCI Host Controller
[    3.733834] usb usb2: Manufacturer: Linux 5.10.0-xilinx-v2021.2 xhci-hcd
[    3.740530] usb usb2: SerialNumber: xhci-hcd.1.auto
[    3.745674] hub 2-0:1.0: USB hub found
[    3.749480] hub 2-0:1.0: 1 port detected
[    3.776344] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.782880] clk: Not disabling unused clocks
[    3.787399] ALSA device list:
[    3.790360]   No soundcards found.
[    3.794022] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.802631] cfg80211: failed to load regulatory.db
[    3.807709] ata2: SATA link down (SStatus 0 SControl 330)
[    3.813134] ata1: SATA link down (SStatus 0 SControl 330)
[    3.818851] Waiting for root device /dev/mmcblk0p2...
[    3.828623] mmc0: error -110 whilst initialising SD card
Livius90 commented 2 years ago

I found the solution for this issue. @mhatle can review and merge my fix in device-tree-xlnx repo for it? https://github.com/Xilinx/device-tree-xlnx/pull/17

kothuriman commented 2 years ago

Please use the following bootargs command in u-boot menu

setenv bootargs 'console=ttyPS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait earlycon clk_ignore_unused uio_pdrv_genirq.of_id=generic-uio cpuidle.off=1 maxcpus=4'

Livius90 commented 2 years ago

Please use the following bootargs command in u-boot menu

setenv bootargs 'console=ttyPS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait earlycon clk_ignore_unused uio_pdrv_genirq.of_id=generic-uio cpuidle.off=1 maxcpus=4'

It can not resolve the problem. The final solution can be found in this Xilinx forum topic: ZCU104 Linux kernel starting hangs on "Waiting for root device dev/mmcblk0p2..."

Problem is that the sdhci1 device-tree node is not configured well probably for all Xilinx Zynq board. I got this issue in my Zynq 7000 and Zynq Ultrascale+ boards, too.

Livius90 commented 2 years ago

Solution: Fix sdhci1 node in device-tree, i added my following modification in system-user.dtsi

&sdhci1 {
    no-1-8-v;
    bus-width = <4>;
    disable-wp;
    cd-gpios = <&gpio 45 1>;    // cd-gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
    cd-debounce-delay-ms = <500>;
    max-frequency = <100000000>;
    cap-sd-highspeed;
    sd-uhs-sdr12;
    sd-uhs-sdr25;
    sd-uhs-sdr50;
    sd-uhs-ddr50;
    keep-power-in-suspend;
    status = "okay";
};