This is how I've created the USB rootfs:
I don't get output on serial only on screen so I won't be able to capture it all unfortunately. I'll type out the bit that is visible when the kernel panic happens in the next post.
Koen
root@koen-ThinkPad-X220:/# mkfs.ext3 /dev/sdc1 -L rootfs mke2fs 1.44.1 (24-Mar-2018) /dev/sdc1 contains a ext3 filesystem labelled 'rootfs' last mounted on /media/koen/rootfs on Sun Jul 29 09:15:41 2018 Proceed anyway? (y/N) y Creating filesystem with 1953536 4k blocks and 488640 inodes Filesystem UUID: 527dc62b-426d-4a74-9440-7e11252367d4 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done
root@koen-ThinkPad-X220:/mnt# mount /dev/sdc1 /mnt/temp/ root@koen-ThinkPad-X220:/mnt# cd /mnt/temp/ root@koen-ThinkPad-X220:/mnt/temp# tar -xjf ~koen/Documents/DellWyse/Debian/Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 root@koen-ThinkPad-X220:/mnt/temp# cd boot root@koen-ThinkPad-X220:/mnt/temp/boot# ll total 40644 drwxr-xr-x 3 root root 4096 Aug 22 2017 ./ drwxrwxrwx 21 root root 4096 Jan 20 2017 ../ -rw-r--r-- 1 root root 155806 Jul 30 2017 config-4.12.4-mvebu-tld-1 drwxr-xr-x 2 root root 4096 Jul 30 2017 dts/ -rw-r--r-- 1 root root 7070172 Aug 22 2017 initrd.img-4.12.4-mvebu-tld-1 -rw-r--r-- 1 root root 8525990 Jul 30 2017 linux-headers-4.12.4-mvebu-tld-1_1.0_armhf.deb -rw------- 1 root root 2615209 Jul 30 2017 System.map-4.12.4-mvebu-tld-1 -rw-r--r-- 1 root root 4021360 Aug 22 2017 uImage -rw-r--r-- 1 root root 7070236 Aug 22 2017 uInitrd -rw------- 1 root root 4021296 Jul 30 2017 vmlinuz-4.12.4-mvebu-tld-1 -rwxr-xr-x 1 root root 4021296 Jul 30 2017 zImage* -rwxr-xr-x 1 root root 4021296 Jul 30 2017 zImage-4.12.4-mvebu-tld-1* root@koen-ThinkPad-X220:/mnt/temp/boot# cp -a zImage-4.12.4-mvebu-tld-1 zImage root@koen-ThinkPad-X220:/mnt/temp/boot# cp -a zImage-4.12.4-mvebu-tld-1 zImage.fdt root@koen-ThinkPad-X220:/mnt/temp/boot# cat dts/dove-dove-db.dtb >> zImage.fdt root@koen-ThinkPad-X220:/mnt/temp/boot# mv uImage uImage.orig root@koen-ThinkPad-X220:/mnt/temp/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.4-mvebu-tld-1 -d zImage.fdt uImage Image Name: Linux-4.12.4-mvebu-tld-1 Created: Sun Jul 29 11:47:53 2018 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4035253 Bytes = 3940.68 kB = 3.85 MB Load Address: 00008000 Entry Point: 00008000 root@koen-ThinkPad-X220:/mnt/temp/boot# sync root@koen-ThinkPad-X220:/mnt/temp/boot# cd / root@koen-ThinkPad-X220:/# umount /mnt/temp/
I don't get output on serial only on screen so I won't be able to capture it all unfortunately. I'll type out the bit that is visible when the kernel panic happens in the next post.
Koen