linux-armv7-xe303c12-only icon indicating copy to clipboard operation
linux-armv7-xe303c12-only copied to clipboard

img on git

Open ghost opened this issue 3 years ago • 4 comments

Arch console -works Void X -works Arch test disk 3 "X" -works

Arch and Kali versions "X" are unbootable from usb Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

qemu script error on (Mac) qemu-system-arm: could not load kernel 'zImage' Bildschirmfoto 2021-09-25 um 16 14 13

ghost avatar Sep 23 '21 19:09 ghost

Thank you for feedback!

You are right, looks like some images cannot find root partition while boot from pendrive. I maked them from sdcard. The difference between last disk images and previous are kernel and custom-mesa packages. I've kept the previous images in case the new one doesn't work. So I think I'll delete the buggy disk images and make a new one for kali.

As for qemu, that means no kernel image file. You may extract kernel image file like:

fdisk kali_xe303c12_test.img 

Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk kali_xe303c12_test.img: 1.84 GiB, 1973420032 bytes, 3854336 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7B9134D9-0F06-6D4E-8DF0-318D59DC159D

Device                  Start     End Sectors  Size Type
kali_xe303c12_test.img1  8192   40959   32768   16M ChromeOS kernel
kali_xe303c12_test.img2 40960 3854302 3813343  1.8G ChromeOS root fs

Command (m for help): q

sudo mount -t btrfs -o,loop,offset=$((512*40960)) kali_xe303c12_test.img dsk
cp dsk/boot/zImage zImage
sudo umount dsk

and run from qemu

qemu-system-arm -machine virt -m 1024 -kernel zImage -append "root=/dev/vda2" -serial stdio -drive if=none,file=kali_xe303c12_test.img,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -netdev user,id=net0 -device virtio-net-device,netdev=net0 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.13.8 (root@kali) (arm-linux-gnueabihf-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT Mon Aug 9 15:13:57 EDT 2021
...
Kali GNU/Linux Rolling kali ttyAMA0

kali login: root
Password: toor
Linux kali 5.13.8 #1 SMP PREEMPT Mon Aug 9 15:13:57 EDT 2021 armv7l
...
root@kali:~#

but I do not know if Mac support btrfs filesystem

quarkscript avatar Sep 25 '21 08:09 quarkscript

I have re-signed and re-flashed the kernel on the kali image and it boots from a pendrive on my chromebook.

quarkscript avatar Sep 26 '21 08:09 quarkscript

I have re-signed and re-flashed the kernel on the kali image and it boots from a pendrive on my chromebook.

Link will be updated ?

ghost avatar Oct 30 '21 10:10 ghost

Link updated Screenshot_2021-10-31_07-36-23

by the way edim could be used to create empty disk image with any custom size https://youtu.be/ALJR2doOipc

quarkscript avatar Oct 31 '21 08:10 quarkscript