cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gi4you
Contributor
Contributor
1,509 Views
Registered: ‎09-24-2009

ZCU111 SD card booting error

Jump to solution

Hello,

When I boot SD card for the zcu111 boad I'v got booting error.

I added bootargs in system-user.dtsi file it same as the zcu102 board bootargs.

chosen {
bootargs = "console=ttyPS0,115200 earlycon clk_ignore_unused root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
stdout-path = "serial0:115200n8";
};

 

 

[ 5.370911] 1f00 1024 mtdblock0
[ 5.370913] (driver?)
[ 5.377423] 1f01 256 mtdblock1
[ 5.377425] (driver?)
[ 5.383942] 1f02 22528 mtdblock2
[ 5.383943] (driver?)
[ 5.390464] b300 30535680 mmcblk0
[ 5.390466] driver: mmcblk
[ 5.397240] b301 2096128 mmcblk0p1 00021377-01
[ 5.397241]
[ 5.404019] b302 28438528 mmcblk0p2 00021377-02
[ 5.404020]
[ 5.410802] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[ 5.419227] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.19.0-xilinx-v2019.1 #1
[ 5.426437] Hardware name: xlnx,zynqmp (DT)
[ 5.430604] Call trace:
[ 5.433042] dump_backtrace+0x0/0x148
[ 5.436691] show_stack+0x14/0x20
[ 5.439998] dump_stack+0x90/0xb4
[ 5.443305] panic+0x120/0x268
[ 5.446352] mount_block_root+0x1b0/0x260
[ 5.450352] mount_root+0x11c/0x148
[ 5.453825] prepare_namespace+0x158/0x1a0
[ 5.457904] kernel_init_freeable+0x1b8/0x1d4
[ 5.462245] kernel_init+0x10/0xfc
[ 5.465638] ret_from_fork+0x10/0x18
[ 5.469199] SMP: stopping secondary CPUs
[ 5.473112] Kernel Offset: disabled
[ 5.476583] CPU features: 0x0,20802004
[ 5.480314] Memory Limit: none
[ 5.483357] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]---

 

Thanks,

0 Kudos
1 Solution

Accepted Solutions
gi4you
Contributor
Contributor
1,398 Views
Registered: ‎09-24-2009

Hi,

Now I fixed the SD card booting for the external Debian10 rootfs.

I followed this guide from Xilinx and rebuild petalinux kernel image for the SD card.

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/130973731/PetaLinux+Build+Tutorial+for+2019.1

 

 

And I changed system-user.dtsi device tree file for SD card booting.

 

 

/include/ "system-conf.dtsi"

/ {

chosen {
bootargs = "earlycon clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait cma=1700M cpuidle.off=1";
stdout-path = "serial0:115200n8";
};

};

 

 

[ 6.275528] [drm] Cannot find any crtc or sizes
[ 7.177116] EXT4-fs (mmcblk0p2): recovery complete
[ 7.183598] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 7.191721] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 7.208694] devtmpfs: mounted
[ 7.211894] Freeing unused kernel memory: 832K
[ 7.216377] Run /sbin/init as init process
[ 8.824482] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[ 8.846104] systemd[1]: Detected architecture arm64.

Welcome to Debian GNU/Linux 10 (buster)!

[ 8.876782] systemd[1]: Set hostname to <debian10-zcu102>.
[ 9.320460] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 9.337529] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 9.556028] random: systemd: uninitialized urandom read (16 bytes read)
[ 9.565103] random: systemd: uninitialized urandom read (16 bytes read)
[ 9.571753] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 9.591606] random: systemd: uninitialized urandom read (16 bytes read)
[ 9.598337] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ 9.624025] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 9.643681] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 9.667795] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ OK ] Listening on Journal Socket.
Starting Remount Root and Kernel File Systems...
Starting Load Kernel Modules...
Mounting Kernel Debug File System...
Mounting Huge Pages File System...
[ OK ] Listening on udev Kernel Socket.
Starting udev Coldplug all Devices...
[ OK ] Reached target Paths.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on Journal Audit Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Swap.
Starting Journal Service...
[ OK ] Reached target Slices.
Mounting POSIX Message Queue File System...
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Load Kernel Modules.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted Huge Pages File System.
[ OK ] Started Journal Service.
[ OK ] Mounted POSIX Message Queue File System.
Mounting Kernel Configuration File System...
Starting Apply Kernel Variables...
Starting Create System Users...
Starting Load/Save Random Seed...
Starting Flush Journal to Persistent Storage...
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create System Users.
Starting Create Static Device Nodes in /dev...
[ 10.248151] systemd-journald[1924]: Received request to flush runtime journal from PID 1
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting udev Kernel Device Manager...
Starting Create Volatile Files and Directories...
[ OK ] Started udev Coldplug all Devices.
Starting Helper to synchronize boot up for ifupdown...
[ OK ] Started Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Found device /dev/ttyPS0.
[ OK ] Reached target Sound Card.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily man-db regeneration.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started Daily rotation of log files.
[ OK ] Reached target Basic System.
Starting getty on tty2-tty…nd logind are not available...
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Reached target Timers.
[ OK ] Started Regular background program processing daemon.
Starting System Logging Service...
[ OK ] Started getty on tty2-tty6… and logind are not available.
[ OK ] Started Helper to synchronize boot up for ifupdown.
[ OK ] Started System Logging Service.
Starting Raise network interfaces...
[ OK ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
[ 13.281845] pps pps0: new PPS source ptp0
[ 13.285877] macb ff0e0000.ethernet: gem-ptp-timer ptp clock registered.
[ 13.292640] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Started Raise network interfaces.
[ OK ] Reached target Network.
Starting OpenBSD Secure Shell server...
Starting Permit User Sessions...
[ OK ] Started Permit User Sessions.
[ OK ] Started Getty on tty4.
[ OK ] Started Getty on tty5.
[ OK ] Started Serial Getty on ttyPS0.
[ OK ] Started Getty on tty1.
[ OK ] Started Getty on tty6.
[ OK ] Started Getty on tty3.
[ OK ] Started Getty on tty2.
[ OK ] Reached target Login Prompts.
[ 14.283920] macb ff0e0000.ethernet eth0: link up (1000/Full)
[ 14.289603] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Debian GNU/Linux 10 debian10-zcu102 ttyPS0

debian10-zcu111 login: root

 

Thanks,

View solution in original post

0 Kudos
4 Replies
shabbirk
Moderator
Moderator
1,460 Views
Registered: ‎12-04-2016

Hi @gi4you 

Hope you have created 2 SD card partitions and rootfs being in the 2nd partition

0 Kudos
gi4you
Contributor
Contributor
1,445 Views
Registered: ‎09-24-2009

Hi,

Yes, the FAT32 for boot and Ext4 for roots partitions.

The same way I tested Xilinx zcu102 but zcu111 caused error.

Thanks,

0 Kudos
gi4you
Contributor
Contributor
1,428 Views
Registered: ‎09-24-2009

Hi,

Here is my partition info:

I booted petalinux only and can see the mmcblk0p2 partition.


bin etc lib mnt rootfs.tar.gz sys var
boot home lost+found proc run tmp
dev init media rootfs.cpio sbin usr
root@zcu111-plinux:/run/media/mmcblk0p2#

root@zcu111-plinux:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 1888328 4 1888324 0% /dev
tmpfs 2022988 108 2022880 0% /run
tmpfs 2022988 80 2022908 0% /var/volatile
/dev/mmcblk0p1 1045488 301544 743944 29% /run/media/mmcblk0p1
/dev/mmcblk0p2 27633676 175796 25974720 1% /run/media/mmcblk0p2

 

root@zcu111-plinux:/run/media/mmcblk0p2# ls
bin etc lib mnt rootfs.tar.gz sys var
boot home lost+found proc run tmp
dev init media rootfs.cpio sbin usr
root@zcu111-plinux:/run/media/mmcblk0p2#

 

0 Kudos
gi4you
Contributor
Contributor
1,399 Views
Registered: ‎09-24-2009

Hi,

Now I fixed the SD card booting for the external Debian10 rootfs.

I followed this guide from Xilinx and rebuild petalinux kernel image for the SD card.

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/130973731/PetaLinux+Build+Tutorial+for+2019.1

 

 

And I changed system-user.dtsi device tree file for SD card booting.

 

 

/include/ "system-conf.dtsi"

/ {

chosen {
bootargs = "earlycon clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait cma=1700M cpuidle.off=1";
stdout-path = "serial0:115200n8";
};

};

 

 

[ 6.275528] [drm] Cannot find any crtc or sizes
[ 7.177116] EXT4-fs (mmcblk0p2): recovery complete
[ 7.183598] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 7.191721] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 7.208694] devtmpfs: mounted
[ 7.211894] Freeing unused kernel memory: 832K
[ 7.216377] Run /sbin/init as init process
[ 8.824482] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[ 8.846104] systemd[1]: Detected architecture arm64.

Welcome to Debian GNU/Linux 10 (buster)!

[ 8.876782] systemd[1]: Set hostname to <debian10-zcu102>.
[ 9.320460] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 9.337529] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 9.556028] random: systemd: uninitialized urandom read (16 bytes read)
[ 9.565103] random: systemd: uninitialized urandom read (16 bytes read)
[ 9.571753] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 9.591606] random: systemd: uninitialized urandom read (16 bytes read)
[ 9.598337] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ 9.624025] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 9.643681] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 9.667795] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ OK ] Listening on Journal Socket.
Starting Remount Root and Kernel File Systems...
Starting Load Kernel Modules...
Mounting Kernel Debug File System...
Mounting Huge Pages File System...
[ OK ] Listening on udev Kernel Socket.
Starting udev Coldplug all Devices...
[ OK ] Reached target Paths.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on Journal Audit Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Swap.
Starting Journal Service...
[ OK ] Reached target Slices.
Mounting POSIX Message Queue File System...
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Load Kernel Modules.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted Huge Pages File System.
[ OK ] Started Journal Service.
[ OK ] Mounted POSIX Message Queue File System.
Mounting Kernel Configuration File System...
Starting Apply Kernel Variables...
Starting Create System Users...
Starting Load/Save Random Seed...
Starting Flush Journal to Persistent Storage...
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create System Users.
Starting Create Static Device Nodes in /dev...
[ 10.248151] systemd-journald[1924]: Received request to flush runtime journal from PID 1
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting udev Kernel Device Manager...
Starting Create Volatile Files and Directories...
[ OK ] Started udev Coldplug all Devices.
Starting Helper to synchronize boot up for ifupdown...
[ OK ] Started Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Found device /dev/ttyPS0.
[ OK ] Reached target Sound Card.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily man-db regeneration.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started Daily rotation of log files.
[ OK ] Reached target Basic System.
Starting getty on tty2-tty…nd logind are not available...
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Reached target Timers.
[ OK ] Started Regular background program processing daemon.
Starting System Logging Service...
[ OK ] Started getty on tty2-tty6… and logind are not available.
[ OK ] Started Helper to synchronize boot up for ifupdown.
[ OK ] Started System Logging Service.
Starting Raise network interfaces...
[ OK ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
[ 13.281845] pps pps0: new PPS source ptp0
[ 13.285877] macb ff0e0000.ethernet: gem-ptp-timer ptp clock registered.
[ 13.292640] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Started Raise network interfaces.
[ OK ] Reached target Network.
Starting OpenBSD Secure Shell server...
Starting Permit User Sessions...
[ OK ] Started Permit User Sessions.
[ OK ] Started Getty on tty4.
[ OK ] Started Getty on tty5.
[ OK ] Started Serial Getty on ttyPS0.
[ OK ] Started Getty on tty1.
[ OK ] Started Getty on tty6.
[ OK ] Started Getty on tty3.
[ OK ] Started Getty on tty2.
[ OK ] Reached target Login Prompts.
[ 14.283920] macb ff0e0000.ethernet eth0: link up (1000/Full)
[ 14.289603] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Debian GNU/Linux 10 debian10-zcu102 ttyPS0

debian10-zcu111 login: root

 

Thanks,

View solution in original post

0 Kudos