blob: 459c83f5c28c8899315b66f60af1751d6bb1defb [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001#@TYPE: Machine
2#@NAME: Beaglebone-yocto machine
3#@DESCRIPTION: Reference machine configuration for http://beagleboard.org/bone and http://beagleboard.org/black boards
4
5PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
Brad Bishop316dfdd2018-06-25 12:45:53 -04006
Patrick Williams169d7bc2024-01-05 11:33:25 -06007MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
Brad Bishop316dfdd2018-06-25 12:45:53 -04008
Andrew Geissler95ac1b82021-03-31 14:34:31 -05009EXTRA_IMAGEDEPENDS += "virtual/bootloader"
Brad Bishop316dfdd2018-06-25 12:45:53 -040010
11DEFAULTTUNE ?= "cortexa8hf-neon"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050012include conf/machine/include/arm/armv7a/tune-cortexa8.inc
Brad Bishop316dfdd2018-06-25 12:45:53 -040013
14IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
Patrick Williams213cb262021-08-07 19:21:33 -050015EXTRA_IMAGECMD:jffs2 = "-lnp "
Brad Bishop316dfdd2018-06-25 12:45:53 -040016WKS_FILE ?= "beaglebone-yocto.wks"
Andrew Geissler595f6302022-01-24 19:11:47 +000017MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
Andrew Geissler95ac1b82021-03-31 14:34:31 -050018do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy"
Brad Bishop316dfdd2018-06-25 12:45:53 -040019
Brad Bishop96ff1982019-08-19 13:50:42 -040020SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0"
Brad Bishop316dfdd2018-06-25 12:45:53 -040021
22PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060023PREFERRED_VERSION_linux-yocto ?= "6.6%"
Brad Bishop316dfdd2018-06-25 12:45:53 -040024
25KERNEL_IMAGETYPE = "zImage"
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060026DTB_FILES = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb"
27KERNEL_DEVICETREE = '${@' '.join('ti/omap/%s' % d for d in '${DTB_FILES}'.split())}'
Brad Bishop316dfdd2018-06-25 12:45:53 -040028
Andrew Geissler595f6302022-01-24 19:11:47 +000029PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
30
Brad Bishop316dfdd2018-06-25 12:45:53 -040031SPL_BINARY = "MLO"
32UBOOT_SUFFIX = "img"
Brad Bishopc342db32019-05-15 21:57:59 -040033UBOOT_MACHINE = "am335x_evm_defconfig"
Brad Bishop316dfdd2018-06-25 12:45:53 -040034
35MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
36
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060037IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} ${KERNEL_IMAGETYPE} ${DTB_FILES}"
Brad Bishop96ff1982019-08-19 13:50:42 -040038
39# support runqemu
40EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"
41IMAGE_CLASSES += "qemuboot"
42QB_DEFAULT_FSTYPE = "wic"
43QB_FSINFO = "wic:no-kernel-in-fs"
44QB_KERNEL_ROOT = "/dev/vda2"
45QB_SYSTEM_NAME = "qemu-system-arm"
Brad Bishop96ff1982019-08-19 13:50:42 -040046QB_MACHINE = "-machine virt"
47QB_CPU = "-cpu cortex-a15"
48QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 systemd.mask=systemd-networkd"
49QB_OPT_APPEND = "-device virtio-rng-device"
50QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
51QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
52QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
53QB_SERIAL_OPT = ""
54QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"