QEMU-booting a Nard image

Ronny Nilsson rln-nard at arbetsmyra.dyndns.org
Sat Feb 2 17:33:55 CET 2019


Hi Richard
I'm guessing here since I haven't used Nard in qemu myself, but check that 
you've got device tree working in qemu. RPi kernels won't work without it.

I guess you already know this, but the sdcard image can be loop mounted with
	mount -t vfat sdcard.img /mnt/ -o loop,offset=8192

/Ronny


---------------------------------------------
> Does anyone know the invocation to launch
> nard in qemu?
>
> This is what I think the incantation should be:
>
> qemu-system-arm \
>  -M raspi2\
>  -kernel zImage\
>  -initrd initramfs.cpio.gz\
>  -drive file=../sdcard.img,index=0,media=disk,format=raw\
>  -nographic \
>  -append "console=ttyAMA0"
>
> but I don't get any output. With the following versatilepb kernel,
> I get as far as extracting the initramfs, which then of course
> fails with a "kernel too old" while loading init.
>
> qemu-system-arm \
>  -M versatilepb\
>  -cpu arm1176\
>  -m 256\
>  -kernel kernel-qemu-4.4.34-jessie\
>  -initrd initramfs.cpio.gz\
>  -nographic\
>  -append "console=ttyAMA0"
>
> Thanks,
> Richard


More information about the Nard mailing list