Skip to contentSkip to conversation

beaglebone: add OE machine definition for use with linux-yocto kernels

PATCH In review Denys Dmytriyenko 3 participants 4 messages Mar 26, 2014 – Mar 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 beaglebone: add OE machine definition for use with linux-yocto kernels

From: Denys Dmytriyenko <[email protected]>

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

---
 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
meta-yocto-bsp/conf/machine/beaglebone.conf new file +37 -0
new file mode 100644
index 0000000..0765b33
@@ -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"
meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend new file +3 -0
new file mode 100644
index 0000000..6cb7e55
@@ -0,0 +1,3 @@
+KBRANCH_beaglebone = "standard/beaglebone"
+
+COMPATIBLE_MACHINE_beaglebone = "beaglebone"
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 4 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

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

I've tested this locally as we prep 3.14, so I can ack and add my tested-by:

Cheers,

Bruce

Quoted 63 lines
---
  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

meta-yocto-bsp/conf/machine/beaglebone.conf new file +37 -0
new file mode 100644
index 0000000..0765b33
@@ -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"
meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend new file +3 -0
new file mode 100644
index 0000000..6cb7e55
@@ -0,0 +1,3 @@
+KBRANCH_beaglebone = "standard/beaglebone"
+
+COMPATIBLE_MACHINE_beaglebone = "beaglebone"
#2 lore raw
Quoted 8 lines · Bruce Ashfield
Quoted 4 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

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

I've tested this locally as we prep 3.14, so I can ack and add my tested-by:

Ping?

Quoted 68 lines

Cheers,

Bruce

Quoted 63 lines
---
 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
meta-yocto-bsp/conf/machine/beaglebone.conf new file +37 -0
new file mode 100644
index 0000000..0765b33
@@ -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"
meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend new file +3 -0
new file mode 100644
index 0000000..6cb7e55
@@ -0,0 +1,3 @@
+KBRANCH_beaglebone = "standard/beaglebone"
+
+COMPATIBLE_MACHINE_beaglebone = "beaglebone"
#3 lore raw
Quoted 11 lines · Denys Dmytriyenko
Quoted 8 lines · Bruce Ashfield
Quoted 4 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

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

I've tested this locally as we prep 3.14, so I can ack and add my tested-by:

Ping?

Just queuing this up. Could you send a patch to add something suitable to README.hardware please for the board?

Cheers,

Richard