blob: 618af40306cb8f4d89a3946741998c5c4fd6cdb5 [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"
6XSERVER ?= "xserver-xorg \
7 xf86-video-modesetting \
8 "
9
10MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree"
11
Andrew Geissler95ac1b82021-03-31 14:34:31 -050012EXTRA_IMAGEDEPENDS += "virtual/bootloader"
Brad Bishop316dfdd2018-06-25 12:45:53 -040013
14DEFAULTTUNE ?= "cortexa8hf-neon"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050015include conf/machine/include/arm/armv7a/tune-cortexa8.inc
Brad Bishop316dfdd2018-06-25 12:45:53 -040016
17IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
Patrick Williams213cb262021-08-07 19:21:33 -050018EXTRA_IMAGECMD:jffs2 = "-lnp "
Brad Bishop316dfdd2018-06-25 12:45:53 -040019WKS_FILE ?= "beaglebone-yocto.wks"
Patrick Williams213cb262021-08-07 19:21:33 -050020IMAGE_INSTALL:append = " kernel-devicetree kernel-image-zimage"
Andrew Geissler95ac1b82021-03-31 14:34:31 -050021do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy"
Brad Bishop316dfdd2018-06-25 12:45:53 -040022
Brad Bishop96ff1982019-08-19 13:50:42 -040023SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0"
Brad Bishop19323692019-04-05 15:28:33 -040024SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040025
26PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050027PREFERRED_VERSION_linux-yocto ?= "5.13%"
Brad Bishop316dfdd2018-06-25 12:45:53 -040028
29KERNEL_IMAGETYPE = "zImage"
30KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb"
31KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
32
33SPL_BINARY = "MLO"
34UBOOT_SUFFIX = "img"
Brad Bishopc342db32019-05-15 21:57:59 -040035UBOOT_MACHINE = "am335x_evm_defconfig"
Brad Bishop316dfdd2018-06-25 12:45:53 -040036UBOOT_ENTRYPOINT = "0x80008000"
37UBOOT_LOADADDRESS = "0x80008000"
38
39MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
40
Andrew Geisslerd1e89492021-02-12 15:35:20 -060041IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} ${KERNEL_IMAGETYPE} ${KERNEL_DEVICETREE}"
Brad Bishop96ff1982019-08-19 13:50:42 -040042
43# support runqemu
44EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"
45IMAGE_CLASSES += "qemuboot"
46QB_DEFAULT_FSTYPE = "wic"
47QB_FSINFO = "wic:no-kernel-in-fs"
48QB_KERNEL_ROOT = "/dev/vda2"
49QB_SYSTEM_NAME = "qemu-system-arm"
Brad Bishop96ff1982019-08-19 13:50:42 -040050QB_MACHINE = "-machine virt"
51QB_CPU = "-cpu cortex-a15"
52QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 systemd.mask=systemd-networkd"
53QB_OPT_APPEND = "-device virtio-rng-device"
54QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
55QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
56QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
57QB_SERIAL_OPT = ""
58QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"