summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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:
681. source poky/oe-init-build-env rpi-build 681. source poky/oe-init-build-env rpi-build
692. Add needed layer to bblayers.conf: 692. Add needed layer to bblayers.conf:
70 - meta-raspberrypi 70 - meta-raspberrypi
713 Set MACHINE to raspberrypi in local.conf 713 Set MACHINE to "raspberrypi"/"raspberrypi2" in local.conf
724. bitbake rpi-hwup-image 724. bitbake rpi-hwup-image
735. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used) 735. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
746. Boot your RPI. 746. 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 ?= ""
33 33
34# Kernel image name 34# Kernel image name
35SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img" 35SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img"
36SDIMG_KERNELIMAGE_raspberrypi2 ?= "kernel7.img"
36 37
37# Boot partition volume id 38# Boot partition volume id
38BOOTDD_VOLUME_ID ?= "${MACHINE}" 39BOOTDD_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 @@
1#@TYPE: Machine
2#@NAME: RaspberryPi 2 Development Board
3#@DESCRIPTION: Machine configuration for the RaspberryPi 2
4
5# userland is not compiling on RPI 2
6# https://github.com/raspberrypi/userland/issues/214
7PREFERRED_PROVIDER_virtual/egl ?= "vc-graphics-hardfp"
8PREFERRED_PROVIDER_virtual/libgles2 ?= "vc-graphics-hardfp"
9
10DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
11
12require conf/machine/include/tune-cortexa7.inc
13include 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}"
15 15
16# NOTE: For now we pull in the default config from the RPi kernel GIT tree. 16# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
17KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" 17KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
18KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
18 19
19# CMDLINE for raspberrypi 20# CMDLINE for raspberrypi
20CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" 21CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"