Showing posts with label qemu. Show all posts
Showing posts with label qemu. Show all posts

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
$make

run
$qemu-system-arm 
-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" 
-nographic 
-net nic,model=rtl8139 -net user

can be replace with:
-hda=output/images/rootfs.ext2


-M Set the emulated machine type
-kernel 
-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:
buildroot-2016.05/board/qemu/arm-versatile/readme.txt