diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | classes/sdcard_image-rpi.bbclass | 1 | ||||
-rw-r--r-- | conf/machine/raspberrypi2.conf | 13 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 1 |
4 files changed, 16 insertions, 1 deletions
@@ -68,7 +68,7 @@ How to use it: | |||
68 | 1. source poky/oe-init-build-env rpi-build | 68 | 1. source poky/oe-init-build-env rpi-build |
69 | 2. Add needed layer to bblayers.conf: | 69 | 2. Add needed layer to bblayers.conf: |
70 | - meta-raspberrypi | 70 | - meta-raspberrypi |
71 | 3 Set MACHINE to raspberrypi in local.conf | 71 | 3 Set MACHINE to "raspberrypi"/"raspberrypi2" in local.conf |
72 | 4. bitbake rpi-hwup-image | 72 | 4. bitbake rpi-hwup-image |
73 | 5. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used) | 73 | 5. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used) |
74 | 6. Boot your RPI. | 74 | 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 ?= "" | |||
33 | 33 | ||
34 | # Kernel image name | 34 | # Kernel image name |
35 | SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img" | 35 | SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img" |
36 | SDIMG_KERNELIMAGE_raspberrypi2 ?= "kernel7.img" | ||
36 | 37 | ||
37 | # Boot partition volume id | 38 | # Boot partition volume id |
38 | BOOTDD_VOLUME_ID ?= "${MACHINE}" | 39 | 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 @@ | |||
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 | ||
7 | PREFERRED_PROVIDER_virtual/egl ?= "vc-graphics-hardfp" | ||
8 | PREFERRED_PROVIDER_virtual/libgles2 ?= "vc-graphics-hardfp" | ||
9 | |||
10 | DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4" | ||
11 | |||
12 | require conf/machine/include/tune-cortexa7.inc | ||
13 | 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}" | |||
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. |
17 | KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" | 17 | KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" |
18 | KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" | ||
18 | 19 | ||
19 | # CMDLINE for raspberrypi | 20 | # CMDLINE for raspberrypi |
20 | CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | 21 | CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" |