cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
peakpeak
Adventurer
Adventurer
1,691 Views
Registered: ‎03-31-2020

ZCU104 BSP Petalinux log in incorrect with root

Jump to solution

Hi,

I am encountering a problem:

I performed the sd card partitioning following the guide in https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841655/Prepare+Boot+Medium

1. If I copy the rootfs.cpio and pax with sudo command, the Kernel panic occurs,

[    5.038675] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.049069] random: fast init done
[    5.050269] cfg80211: failed to load regulatory.db
[    6.284715] EXT4-fs (mmcblk0p2): recovery complete
[    6.297080] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    6.308252] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    6.317376] devtmpfs: mounted
[    6.323586] Freeing unused kernel memory: 832K
[    6.331011] Run /sbin/init as init process
[    6.343470] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[   11.500160] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[   11.515947] Starting init: /sbin/init exists but couldn't execute it (error -8)
[   11.540474] Run /etc/init as init process
[   11.547631] Run /bin/init as init process
[   11.554689] Run /bin/sh as init process
[   11.565311] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[   16.620160] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[   16.636164] Starting init: /bin/sh exists but couldn't execute it (error -8)
[   16.660605] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   16.677999] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.0-xilinx-v2019.1 #1
[   16.688431] Hardware name: ZynqMP ZCU104 RevC (DT)
[   16.696427] Call trace:
[   16.702046]  dump_backtrace+0x0/0x148
[   16.708876]  show_stack+0x14/0x20
[   16.715331]  dump_stack+0x90/0xb4
[   16.721768]  panic+0x120/0x268
[   16.727951]  kernel_init+0xe8/0xfc
[   16.734461]  ret_from_fork+0x10/0x18
[   16.741133] SMP: stopping secondary CPUs
[   16.748147] Kernel Offset: disabled
[   16.754679] CPU features: 0x0,20802004
[   16.761453] Memory Limit: none
[   16.767512] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---

 

2. If I copy and paste the rootfs.cpio without sudo, the boot completes, but I cannot log in with root in petalinux, built on ZCU104 with  2019.1 BSP. Even with the default username root, the return was "Login incorrect".

The boot log is as follows:

[    5.047930] random: fast init done
[    5.050579] cfg80211: failed to load regulatory.db
[    5.125464] EXT4-fs (mmcblk0p2): recovery complete
[    5.134185] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.145305] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    5.154372] devtmpfs: mounted
[    5.160556] Freeing unused kernel memory: 832K
[    5.167944] Run /sbin/init as init process
INIT: version 2.88 booting
Starting udev
/sbin/udevd: error while loading shared libraries: /usr/lib/libkmod.so.2: file too short
[    5.547232] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    5.778952] random: dd: uninitialized urandom read (512 bytes read)
INIT: Entering runlevel: 5
Configuring network interfaces... ip: error while loading shared libraries: /usr/lib/libelf.so.1: file too short
ip: error while loading shared libraries: /usr/lib/libelf.so.1: file too short
ip: error while loading shared libraries: /usr/lib/libelf.so.1: file too short
ip: error while loading shared libraries: /usr/lib/libelf.so.1: file too short
ip: error while loading shared libraries: /usr/lib/libelf.so.1: file too short
Starting system message bus: dbus.
Starting Xserver
su: Authentication failure
(Ignored)
su: Module is unknown
Starting Dropbear SSH server: [    5.969928] random: dropbear: uninitialized urandom read (32 bytes read)
dropbear.
Starting internet superserver: inetd.
Starting syslogd/klogd: done
Starting tcf-agent: OK

PetaLinux 2019.1 xilinx-zcu104-2019_1 /dev/ttyPS0

xilinx-zcu104-2019_1 login: root

Login incorrect
xilinx-zcu104-2019_1 login: 

 

Here is what I have done with the linux image build:

I built petalinux image using xilinx-zcu104-v2019.1-final.bsp downloaded from Xilinx. The hardware is also from that package (petalinux/xilinx-zcu104-v2019.1-final/xilinx-zcu104-2019.1/hardware/xilinx-zcu104-2019.1/xilinx-zcu104-2019.1.sdk/design_1_wrapper.hdf)

petalinux-create -t project -s xilinx-zcu104-v2019.1-final.bsp -n mynew_zcu104_config

petalinux-config --get-hw-description=Documents/petalinux/xilinx-zcu104-v2019.1-final/xilinx-zcu104-2019.1/hardware/xilinx-zcu104-2019.1/xilinx-zcu104-2019.1.sdk/

The only thing in the config that I changed was:

1. General setup ---> [ ] Initial RAM filesystem and RAM disk (initramfs/initrd) support (Unchecked)
2. Modify the system-user.dtsi:
/include/ "system-conf.dtsi"
/ {
chosen {
		bootargs = "earlycon clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait cma=1700M cpuidle.off=1";		
		stdout-path = "serial0:115200n8";
	};
};
3. Modify in the configurations:
petalinux-config → Image Packaging Configuration → Root filesystem type (SD card) → /dev/mmcblk0p2

These are my sd card partitions

partition1.pngpartition2.png

 

 

Thank you in advance.

 

 

 

0 Kudos
1 Solution

Accepted Solutions
peakpeak
Adventurer
Adventurer
1,635 Views
Registered: ‎03-31-2020

I managed to solve this. I added in the dtsi, and performed pax with sudo

&sdhc1{
no-1-8-v;
};

View solution in original post

1 Reply
peakpeak
Adventurer
Adventurer
1,636 Views
Registered: ‎03-31-2020

I managed to solve this. I added in the dtsi, and performed pax with sudo

&sdhc1{
no-1-8-v;
};

View solution in original post