June 2017
Intermediate to advanced
478 pages
13h 14m
English
QEMU has the option called -initrd to load initramfs into memory. You should already have from Chapter 4, Configuring and Building the Kernel, a zImage compiled with the arm-unknown-linux-gnueabi toolchain and the device tree binary for the Versatile PB. From this chapter, you should have created initramfs , which includes BusyBox compiled with the same toolchain. Now, you can launch QEMU using the script in MELP/chapter_05/run-qemu-initramfs.sh or using this command:
$ QEMU_AUDIO_DRV=none \qemu-system-arm -m 256M -nographic -M versatilepb -kernel zImage \-append "console=ttyAMA0 rdinit=/bin/sh" -dtb versatile-pb.dtb \-initrd initramfs.cpio.gz
You should get a root shell with the prompt / #.
Read now
Unlock full access