Hi Ravishankar,
On Sun, 9 May 2021 at 01:37, Ravishankar S <
ravishan...@gmail.com> wrote:
>
> Further progress I have made on this.
>
> I am now able to extract the kernel from the vmlinuz.bin FIT file ..
>
> rreddy78@jetson-nano:/media/rreddy78/TOSHIBA/JetsonNano$ dumpimage -T flat_dt -p 0 -o Image.bin vmlinuz.bin
> Extracted:
> Image 0 (kernel@1)
> Description: unavailable
> Created: Fri Apr 23 07:54:38 2021
> Type: Kernel Image (no loading done)
> Compression: lz4 compressed
> Data Size: 8923387 Bytes = 8714.25 KiB = 8.51 MiB
>
> Now when I try to boot with this kernel as follows:
>
> qemu-system-aarch64 -M virt -m 2048 -smp 2 -cpu host -enable-kvm -kernel vmlinuz-4.19.188-11540-arm64 \
> -append 'console=ttyAMA0 init=/sbin/init boot=local rootwait ro noresume noswap loglevel=7 noinitrd root=/dev/vda3 cros_legacy cros_debug' \
> -device usb-ehci -device usb-kbd -device usb-mouse -usb -serial stdio -device virtio-gpu-pci,virgl=on,xres=1600,yres=900 -display sdl,gl=on \
> -device virtio-blk-device,drive=hd -drive if=none,file=/media/rreddy78/TOSHIBA/JetsonNano/chromiumos_test_image.bin,format=raw,id=hd \
> -netdev user,id=mynet -device virtio-net-device,netdev=mynet
>
> Booting is fine but startup appplications could not be loaded.
>
> [ 3.336536] LoadPin: load pinning can be disabled.
> [ 3.338181] LoadPin: kernel-module pinned obj="/lib/modules/4.19.188-11540-gfe9315762f7a/kernel/drivers/block/zram/zram.ko" pid=464 cmdline="modprobe zram"
> [ 3.344208] zram: Added device: zram0
> [ 3.388374] init: vpd-log main process (324) terminated with status 1
> [ 3.405534] zram0: detected capacity change from 0 to 2041921536
> [ 3.419916] Adding 1994060k swap on /dev/zram0. Priority:-2 extents:1 across:1994060k SS
> [ 3.465982] init: cgroups main process (320) terminated with status 1
> [ 3.743650] init: tcsd main process (640) terminated with status 137
> [ 3.745828] init: tcsd main process ended, respawning
> [ 4.354987] init: machine-info pre-start process (539) terminated with status 1
> [ 5.304259] audit: type=1326 audit(1577923202.897:2): auid=4294967295 uid=247 gid=247 ses=4294967295 subj=kernel pid=1598 comm="attestationd" exe="/usr/sbin/attestationd" sig=0 arch=c00000b7 syscall=198 compat=0 ip=0x7a2298574c code=0x7ffc0000
> [ 6.720455] init: ui main process (1189) terminated with status 2
> [ 7.170846] init: machine-info pre-start process (1798) terminated with status 1
> [ 8.800725] init: ui main process (2047) terminated with status 2
> [ 9.241381] init: machine-info pre-start process (2274) terminated with status 1
> [ 10.861583] init: ui main process (2521) terminated with status 2
> [ 11.254688] init: machine-info pre-start process (2748) terminated with status
>
> It looks like there is some problem running the applications. Maybe with some small adjustments we should be able to get it to run..
>
> Now I am not sure if this is caused because as I understand the user space of ChromiumOS is all 32 bit ? I am running qemu+kvm in 64 bit mode,
I'll leave that to others to figure out as you are beyond any
knowledge I might have. I'm also not sure of the state of graphics.
Regards,
Simon
>
> Thanks and Regards,