Tuesday, August 30, 2016

buildroot qemu ARM

build embedded system for qemu and ARM with buildroot (buildroot-2016.05)

use qemu_arm_versatile_defconfig config file as base config
$make qemu_arm_versatile_defconfig

changed nothing

-M versatilepb 
-kernel output/images/zImage 
-dtb output/images/versatile-pb.dtb 
-drive file=output/images/rootfs.ext2,if=scsi,format=raw 
-append "root=/dev/sda console=ttyAMA0,115200" 
-net nic,model=rtl8139 -net user

can be replace with:

-M Set the emulated machine type
-dtb device tree image
-drive block device option
-append kernel command line /-drive/
-nographic disable graphical output and redirect serial I/Os to console

execution command taken from: