Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5114

Compute Module • Re: Kernel Panic on exec switch_root

$
0
0
I don't have `file` in the initramfs.

Which /sbin/init is it? /media/mmcblk0p2/sbin/init?

On the computer that I'm creating the filesystem I get

Code:

$ sudo losetup -P -f rootfs.ext4$ sudo mount /dev/loop6 /media/loop6$ cd /media/loop6$ file sbin/initsbin/init: symbolic link to ../lib/systemd/systemd$ file lib/systemd/systemdlib/systemd/systemd: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 5.10.0, stripped
This rootfs.ext4 is created using buildroot with the cm4 config.

Code:

git checkout 2023.11.2make raspberrypicm4io_64_defconfig
If it's the initramfs sbin/init

Code:

$ cpio -div < rootfs.cpio$ file sbin/init sbin/init: symbolic link to ../lib/systemd/systemd$ file lib/systemd/systemdlib/systemd/systemd: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 5.15.0, stripped
This rootfs.cpio is created using the Raspberry Pi buildroot fork using the raspberrypi-signed-boot branch.

https://github.com/raspberrypi/buildroo ... igned-boot

Here is the contents of /media/mmcblk0p2/sbin/

ls -lh /media/mmcblk0p2/sbin/

Code:

total 2.9Mlrwxrwxrwx 1 root root   17 Mar  5 18:55 addgroup -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 adduser -> ../../bin/busybox-rwxr-xr-x 1 root root  68K Mar  5 19:04 agettylrwxrwxrwx 1 root root   14 Mar  5 18:55 arp -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 arping -> ../../bin/busybox-rwxr-xr-x 1 root root  16K Mar  5 18:51 blkdeactivatelrwxrwxrwx 1 root root   14 Mar  5 18:55 blkid -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 chroot -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 crond -> ../../bin/busybox-rwxr-xr-x 1 root root 196K Mar  5 19:04 cryptsetuplrwxrwxrwx 1 root root   17 Mar  5 18:55 delgroup -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 deluser -> ../../bin/busyboxlrwxrwxrwx 1 root root   11 Mar  5 18:52 depmod -> ../bin/kmodlrwxrwxrwx 1 root root   14 Mar  5 18:55 devmem -> ../bin/busybox-rwxr-xr-x 1 root root  38K Mar  5 19:04 dmeventd-rwxr-xr-x 1 root root 139K Mar  5 19:04 dmsetuplrwxrwxrwx 1 root root    7 Mar  5 18:51 dmstats -> dmsetuplrwxrwxrwx 1 root root   17 Mar  5 18:55 dnsd -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 ether-wake -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 fbset -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 fdformat -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 fdisk -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 freeramdisk -> ../bin/busybox-rwxr-xr-x 1 root root  25K Mar  5 18:51 fsadm-rwxr-xr-x 1 root root  54K Mar  5 19:04 fscklrwxrwxrwx 1 root root   17 Mar  5 18:55 fsfreeze -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 fstrim -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 getty -> ../bin/busyboxlrwxrwxrwx 1 root root   16 Mar  5 18:53 halt -> ../bin/systemctllrwxrwxrwx 1 root root   14 Mar  5 18:55 hdparm -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 hwclock -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 i2cdetect -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 i2cdump -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 i2cget -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 i2cset -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 i2ctransfer -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 ifconfig -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 ifdown -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 ifup -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 inetd -> ../../bin/busyboxlrwxrwxrwx 1 root root   22 Mar  5 18:53 init -> ../lib/systemd/systemdlrwxrwxrwx 1 root root   11 Mar  5 18:52 insmod -> ../bin/kmod-rwxr-xr-x 1 root root  71K Mar  5 19:04 integritysetuplrwxrwxrwx 1 root root   14 Mar  5 18:55 ip -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 ipaddr -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 iplink -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 ipneigh -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 iproute -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 iprule -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 iptunnel -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 killall5 -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 klogd -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 loadfont -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 loadkmap -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 losetup -> ../bin/busyboxlrwxrwxrwx 1 root root   11 Mar  5 18:52 lsmod -> ../bin/kmodlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvchange -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvconvert -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvcreate -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvdisplay -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvextend -> lvm-rwxr-xr-x 1 root root 2.2M Mar  5 19:04 lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvmconfig -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvmdevices -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvmdiskscan -> lvm-rwxr-xr-x 1 root root  11K Mar  5 18:51 lvmdump-rwxr-xr-x 1 root root  14K Mar  5 18:51 lvm_import_vdolrwxrwxrwx 1 root root    3 Mar  5 18:51 lvmsadc -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvmsar -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvreduce -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvremove -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvrename -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvresize -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvs -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 lvscan -> lvmlrwxrwxrwx 1 root root   14 Mar  5 18:55 makedevs -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 mdev -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 mim -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 mkdosfs -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 mke2fs -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 mkswap -> ../bin/busyboxlrwxrwxrwx 1 root root   11 Mar  5 18:52 modinfo -> ../bin/kmodlrwxrwxrwx 1 root root   11 Mar  5 18:52 modprobe -> ../bin/kmodlrwxrwxrwx 1 root root   22 Mar  5 18:53 mount.ddi -> ../bin/systemd-dissectlrwxrwxrwx 1 root root   14 Mar  5 18:55 nameif -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 nologin -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 partprobe -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 pivot_root -> ../bin/busyboxlrwxrwxrwx 1 root root   16 Mar  5 18:53 poweroff -> ../bin/systemctllrwxrwxrwx 1 root root    3 Mar  5 18:51 pvchange -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 pvck -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 pvcreate -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 pvdisplay -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 pvmove -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 pvremove -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 pvresize -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 pvs -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 pvscan -> lvmlrwxrwxrwx 1 root root   17 Mar  5 18:55 rdate -> ../../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 readprofile -> ../../bin/busyboxlrwxrwxrwx 1 root root   16 Mar  5 18:53 reboot -> ../bin/systemctllrwxrwxrwx 1 root root   17 Mar  5 18:53 resolvconf -> ../bin/resolvectllrwxrwxrwx 1 root root   11 Mar  5 18:52 rmmod -> ../bin/kmodlrwxrwxrwx 1 root root   14 Mar  5 18:55 route -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 run-init -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 runlevel -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 seedrng -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 setconsole -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 setlogcons -> ../../bin/busyboxlrwxrwxrwx 1 root root   16 Mar  5 18:53 shutdown -> ../bin/systemctllrwxrwxrwx 1 root root   14 Mar  5 18:55 start-stop-daemon -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 sulogin -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 swapoff -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 swapon -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 switch_root -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 sysctl -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 syslogd -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 tc -> ../bin/busyboxlrwxrwxrwx 1 root root   17 Mar  5 18:55 ubirename -> ../../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 udhcpc -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 uevent -> ../bin/busyboxlrwxrwxrwx 1 root root   14 Mar  5 18:55 vconfig -> ../bin/busybox-rwxr-xr-x 1 root root  52K Mar  5 19:04 veritysetuplrwxrwxrwx 1 root root    3 Mar  5 18:51 vgcfgbackup -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgcfgrestore -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgchange -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgck -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgconvert -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgcreate -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgdisplay -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgexport -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgextend -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgimport -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgimportclone -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgimportdevices -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgmerge -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgmknodes -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgreduce -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgremove -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgrename -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgs -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgscan -> lvmlrwxrwxrwx 1 root root    3 Mar  5 18:51 vgsplit -> lvmlrwxrwxrwx 1 root root   14 Mar  5 18:55 watchdog -> ../bin/busybox

Statistics: Posted by BerryPiUser — Wed Mar 06, 2024 2:46 pm



Viewing all articles
Browse latest Browse all 5114

Trending Articles