[yocto] [meta-yocto][PATCH] beaglebone: add OE machine definition for use with linux-yocto kernels

Denys Dmytriyenko denis at denix.org
Wed Mar 26 12:19:24 PDT 2014


From: Denys Dmytriyenko <denys at ti.com>

Kernel support is now in linux-yocto-dev and will be moved to a versioned
recipe once 3.14 is released.

Signed-off-by: Denys Dmytriyenko <denys at ti.com>
Cc: Bruce Ashfield <bruce.ashfield at windriver.com>
---
 meta-yocto-bsp/conf/machine/beaglebone.conf        | 37 ++++++++++++++++++++++
 .../recipes-kernel/linux/linux-yocto-dev.bbappend  |  3 ++
 2 files changed, 40 insertions(+)
 create mode 100644 meta-yocto-bsp/conf/machine/beaglebone.conf
 create mode 100644 meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend

diff --git a/meta-yocto-bsp/conf/machine/beaglebone.conf b/meta-yocto-bsp/conf/machine/beaglebone.conf
new file mode 100644
index 0000000..0765b33
--- /dev/null
+++ b/meta-yocto-bsp/conf/machine/beaglebone.conf
@@ -0,0 +1,37 @@
+#@TYPE: Machine
+#@NAME: Beaglebone machine
+#@DESCRIPTION: Machine configuration for http://beagleboard.org/bone and http://beagleboard.org/black boards
+
+PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
+XSERVER ?= "xserver-xorg \
+           xf86-input-evdev \
+           xf86-input-mouse \
+           xf86-video-omapfb \
+           xf86-input-keyboard"
+
+# Ship all kernel modules by default
+MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
+
+EXTRA_IMAGEDEPENDS += "u-boot"
+
+DEFAULTTUNE ?= "cortexa8hf-neon"
+include conf/machine/include/tune-cortexa8.inc
+
+IMAGE_FSTYPES += "tar.bz2 jffs2"
+EXTRA_IMAGECMD_jffs2 = "-lnp "
+
+SERIAL_CONSOLE = "115200 ttyO2"
+
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-dev"
+PREFERRED_VERSION_linux-yocto-dev ?= "3.14%"
+
+KERNEL_IMAGETYPE = "zImage"
+KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb"
+
+SPL_BINARY = "MLO"
+UBOOT_SUFFIX = "img"
+UBOOT_MACHINE = "am335_evm_config"
+UBOOT_ENTRYPOINT = "0x80008000"
+UBOOT_LOADADDRESS = "0x80008000"
+
+MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
diff --git a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend
new file mode 100644
index 0000000..6cb7e55
--- /dev/null
+++ b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend
@@ -0,0 +1,3 @@
+KBRANCH_beaglebone = "standard/beaglebone"
+
+COMPATIBLE_MACHINE_beaglebone = "beaglebone"
-- 
1.8.3.2




More information about the yocto mailing list