mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 12:59:03 +02:00
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>
This commit is contained in:
parent
dedd45f4f8
commit
54c5451a04
2
README
2
README
|
@ -68,7 +68,7 @@ How to use it:
|
||||||
1. source poky/oe-init-build-env rpi-build
|
1. source poky/oe-init-build-env rpi-build
|
||||||
2. Add needed layer to bblayers.conf:
|
2. Add needed layer to bblayers.conf:
|
||||||
- meta-raspberrypi
|
- meta-raspberrypi
|
||||||
3 Set MACHINE to raspberrypi in local.conf
|
3 Set MACHINE to "raspberrypi"/"raspberrypi2" in local.conf
|
||||||
4. bitbake rpi-hwup-image
|
4. bitbake rpi-hwup-image
|
||||||
5. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
|
5. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
|
||||||
6. Boot your RPI.
|
6. Boot your RPI.
|
||||||
|
|
|
@ -33,6 +33,7 @@ KERNEL_INITRAMFS ?= ""
|
||||||
|
|
||||||
# Kernel image name
|
# Kernel image name
|
||||||
SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img"
|
SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img"
|
||||||
|
SDIMG_KERNELIMAGE_raspberrypi2 ?= "kernel7.img"
|
||||||
|
|
||||||
# Boot partition volume id
|
# Boot partition volume id
|
||||||
BOOTDD_VOLUME_ID ?= "${MACHINE}"
|
BOOTDD_VOLUME_ID ?= "${MACHINE}"
|
||||||
|
|
13
conf/machine/raspberrypi2.conf
Normal file
13
conf/machine/raspberrypi2.conf
Normal file
|
@ -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
|
|
@ -15,6 +15,7 @@ PV_append = "+git${SRCREV}"
|
||||||
|
|
||||||
# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
|
# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
|
||||||
KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
|
KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
|
||||||
|
KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
|
||||||
|
|
||||||
# CMDLINE for raspberrypi
|
# CMDLINE for raspberrypi
|
||||||
CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
|
CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user