Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: Beaglebone-yocto machine |
| 3 | #@DESCRIPTION: Reference machine configuration for http://beagleboard.org/bone and http://beagleboard.org/black boards |
| 4 | |
| 5 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" |
| 6 | XSERVER ?= "xserver-xorg \ |
| 7 | xf86-video-modesetting \ |
| 8 | " |
| 9 | |
| 10 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree" |
| 11 | |
| 12 | EXTRA_IMAGEDEPENDS += "u-boot" |
| 13 | |
| 14 | DEFAULTTUNE ?= "cortexa8hf-neon" |
| 15 | include conf/machine/include/tune-cortexa8.inc |
| 16 | |
| 17 | IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap" |
| 18 | EXTRA_IMAGECMD_jffs2 = "-lnp " |
| 19 | WKS_FILE ?= "beaglebone-yocto.wks" |
| 20 | IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 21 | do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot u-boot:do_deploy" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 23 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 24 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 25 | |
| 26 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 27 | PREFERRED_VERSION_linux-yocto ?= "5.10%" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 28 | |
| 29 | KERNEL_IMAGETYPE = "zImage" |
| 30 | KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb" |
| 31 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" |
| 32 | |
| 33 | SPL_BINARY = "MLO" |
| 34 | UBOOT_SUFFIX = "img" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 35 | UBOOT_MACHINE = "am335x_evm_defconfig" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 36 | UBOOT_ENTRYPOINT = "0x80008000" |
| 37 | UBOOT_LOADADDRESS = "0x80008000" |
| 38 | |
| 39 | MACHINE_FEATURES = "usbgadget usbhost vfat alsa" |
| 40 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 41 | IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} ${KERNEL_IMAGETYPE} ${KERNEL_DEVICETREE}" |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 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" |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 50 | QB_MACHINE = "-machine virt" |
| 51 | QB_CPU = "-cpu cortex-a15" |
| 52 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 systemd.mask=systemd-networkd" |
| 53 | QB_OPT_APPEND = "-device virtio-rng-device" |
| 54 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" |
| 55 | QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" |
| 56 | QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" |
| 57 | QB_SERIAL_OPT = "" |
| 58 | QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon" |