aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2015-02-08 00:32:47 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2015-02-08 14:46:42 +0200
commit54c5451a04a2b6601ca729038780d4e4eb69437e (patch)
treeb405014d16088caf10f606481942980abde4e2a7
parentdedd45f4f819b0b7b2d13ce7ce71e3fa92832bd4 (diff)
downloadmeta-raspberrypi-54c5451a04a2b6601ca729038780d4e4eb69437e.tar.gz
meta-raspberrypi-54c5451a04a2b6601ca729038780d4e4eb69437e.tar.bz2
meta-raspberrypi-54c5451a04a2b6601ca729038780d4e4eb69437e.zip
Add support for Raspberry PI 2
Add machine configuration file. Change the kernel image name on SD card. Use the defconfig for this machine (bcm2709_defconfig). Change-Id: I6549d5f49b1ed32ef4d44aca6f7af4234618c1a8 Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--README2
-rw-r--r--classes/sdcard_image-rpi.bbclass1
-rw-r--r--conf/machine/raspberrypi2.conf13
-rw-r--r--recipes-kernel/linux/linux-raspberrypi.inc1
4 files changed, 16 insertions, 1 deletions
diff --git a/README b/README
index bb2f4be..2a3a79e 100644
--- a/README
+++ b/README
@@ -68,7 +68,7 @@ How to use it:
1. source poky/oe-init-build-env rpi-build
2. Add needed layer to bblayers.conf:
- meta-raspberrypi
-3 Set MACHINE to raspberrypi in local.conf
+3 Set MACHINE to "raspberrypi"/"raspberrypi2" in local.conf
4. bitbake rpi-hwup-image
5. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
6. Boot your RPI.
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index 86cf773..1ff664d 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -33,6 +33,7 @@ KERNEL_INITRAMFS ?= ""
# Kernel image name
SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img"
+SDIMG_KERNELIMAGE_raspberrypi2 ?= "kernel7.img"
# Boot partition volume id
BOOTDD_VOLUME_ID ?= "${MACHINE}"
diff --git a/conf/machine/raspberrypi2.conf b/conf/machine/raspberrypi2.conf
new file mode 100644
index 0000000..778f5a6
--- /dev/null
+++ b/conf/machine/raspberrypi2.conf
@@ -0,0 +1,13 @@
+#@TYPE: Machine
+#@NAME: RaspberryPi 2 Development Board
+#@DESCRIPTION: Machine configuration for the RaspberryPi 2
+
+# userland is not compiling on RPI 2
+# https://github.com/raspberrypi/userland/issues/214
+PREFERRED_PROVIDER_virtual/egl ?= "vc-graphics-hardfp"
+PREFERRED_PROVIDER_virtual/libgles2 ?= "vc-graphics-hardfp"
+
+DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
+
+require conf/machine/include/tune-cortexa7.inc
+include conf/machine/include/rpi-base.inc
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
index b8afecc..fde68dd 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -15,6 +15,7 @@ PV_append = "+git${SRCREV}"
# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
+KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
# CMDLINE for raspberrypi
CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"