diff options
author | Adrian Freihofer <adrian.freihofer@siemens.com> | 2019-07-18 23:35:40 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-19 16:21:16 +0100 |
commit | 2d8e21eaac3e9d8a1f71fc45877e553c8546aea0 (patch) | |
tree | b491764f54be9a3c6018033c79c282ced8031e9f /meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | |
parent | ae5615000bdd8eb572a597cb850385dd46836b43 (diff) | |
download | poky-2d8e21eaac3e9d8a1f71fc45877e553c8546aea0.tar.gz |
yocto-bsp: runqemu runs beaglebone-yocto
Append the necessary QB_ flags to the MACHINE configuration of
beaglebone-yocto. Using Qemu with "-machine virt" simplifies things
greatly because for this machine the dtb is compiled into qemu. Since
the beaglebone-yocto kernel config also supports this cpu architecture,
it just works. However, u-boot is not involved and the virt machine is
not 100% equal to a am335x SoC.
A MACHINE configuration suitable for Qemu as well as for the real
hardware allows to provide just one eSDK where both runqemu and devtool
build-image work. Otherwise a qemuarm and a beaglebord-yocto MACHINE
eSDK would be required to support development in Qemu as well as on real
hardware.
(From meta-yocto rev: 48bf40749cc63e8e951c76abbe65b1b9620b2481)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-yocto-bsp/conf/machine/beaglebone-yocto.conf')
-rw-r--r-- | meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf index 35814cd8f1..7c7b3059a9 100644 --- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | |||
@@ -20,7 +20,7 @@ WKS_FILE ?= "beaglebone-yocto.wks" | |||
20 | IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage" | 20 | IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage" |
21 | do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot u-boot:do_deploy" | 21 | do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot u-boot:do_deploy" |
22 | 22 | ||
23 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0" | 23 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0" |
24 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | 24 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" |
25 | 25 | ||
26 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" | 26 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" |
@@ -39,3 +39,21 @@ UBOOT_LOADADDRESS = "0x80008000" | |||
39 | MACHINE_FEATURES = "usbgadget usbhost vfat alsa" | 39 | MACHINE_FEATURES = "usbgadget usbhost vfat alsa" |
40 | 40 | ||
41 | IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} MLO zImage am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb" | 41 | IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} MLO zImage am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb" |
42 | |||
43 | # support runqemu | ||
44 | EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native" | ||
45 | IMAGE_CLASSES += "qemuboot" | ||
46 | QB_DEFAULT_FSTYPE = "wic" | ||
47 | QB_FSINFO = "wic:no-kernel-in-fs" | ||
48 | QB_KERNEL_ROOT = "/dev/vda2" | ||
49 | QB_SYSTEM_NAME = "qemu-system-arm" | ||
50 | QB_MEM = "-m 512" | ||
51 | QB_MACHINE = "-machine virt" | ||
52 | QB_CPU = "-cpu cortex-a15" | ||
53 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 systemd.mask=systemd-networkd" | ||
54 | QB_OPT_APPEND = "-device virtio-rng-device" | ||
55 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" | ||
56 | QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" | ||
57 | QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" | ||
58 | QB_SERIAL_OPT = "" | ||
59 | QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon" | ||