mirror of
https://github.com/agherzan/meta-raspberrypi.git
synced 2025-12-06 14:19:12 +00:00
Compare commits
50 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c92c83ef0c | ||
|
|
08d6fc96da | ||
|
|
3b5f62835a | ||
|
|
2a192261a9 | ||
|
|
83422c158d | ||
|
|
380bf2ff44 | ||
|
|
6baa6641ea | ||
|
|
eafd9b8e4f | ||
|
|
a1311ee550 | ||
|
|
e5467bf777 | ||
|
|
12d8ec9d64 | ||
|
|
99967e3763 | ||
|
|
28d4404f89 | ||
|
|
ecb269577b | ||
|
|
8b433e41f6 | ||
|
|
f95491903a | ||
|
|
039a1d7f2a | ||
|
|
375e5d64ba | ||
|
|
b61403a6a3 | ||
|
|
a151923fa5 | ||
|
|
a168fc389e | ||
|
|
bc2a2abce0 | ||
|
|
317cdf9934 | ||
|
|
0fa47d5f2a | ||
|
|
b82067de87 | ||
|
|
1df7181396 | ||
|
|
45638700dd | ||
|
|
736e4fabca | ||
|
|
e9a4bf9ef5 | ||
|
|
19e9381dbc | ||
|
|
ab9335f90c | ||
|
|
4c1362117a | ||
|
|
86fe4f9ccb | ||
|
|
5de45f285e | ||
|
|
cb8587a395 | ||
|
|
9cd3776bd2 | ||
|
|
cce6292e41 | ||
|
|
c34a6b0343 | ||
|
|
73980301cf | ||
|
|
69c56754bd | ||
|
|
56b0c59894 | ||
|
|
a7354774fe | ||
|
|
9923618351 | ||
|
|
d5aa048edb | ||
|
|
5b5c4d9334 | ||
|
|
f81f022439 | ||
|
|
263e6bdf57 | ||
|
|
121e2005cc | ||
|
|
cb7068a6dc | ||
|
|
38bc32478e |
23
README
23
README
@@ -65,7 +65,7 @@ branch: master
|
|||||||
revision: HEAD
|
revision: HEAD
|
||||||
|
|
||||||
URI: git://git.openembedded.org/meta-openembedded
|
URI: git://git.openembedded.org/meta-openembedded
|
||||||
layers: meta-oe, meta-multimedia
|
layers: meta-oe, meta-multimedia, meta-networking, meta-python
|
||||||
branch: master
|
branch: master
|
||||||
revision: HEAD
|
revision: HEAD
|
||||||
|
|
||||||
@@ -77,8 +77,11 @@ b. Add needed layer to bblayers.conf:
|
|||||||
c. Set MACHINE in local.conf to one of the supported boards:
|
c. Set MACHINE in local.conf to one of the supported boards:
|
||||||
- raspberrypi
|
- raspberrypi
|
||||||
- raspberrypi0
|
- raspberrypi0
|
||||||
|
- raspberrypi0-wifi
|
||||||
- raspberrypi2
|
- raspberrypi2
|
||||||
- raspberrypi3
|
- raspberrypi3
|
||||||
|
- raspberrypi-cm (dummy alias for raspberrypi)
|
||||||
|
- raspberrypi-cm3 (dummy alias for raspberrypi2)
|
||||||
d. bitbake rpi-hwup-image
|
d. bitbake rpi-hwup-image
|
||||||
e. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
|
e. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
|
||||||
f. Boot your RPI.
|
f. Boot your RPI.
|
||||||
@@ -241,11 +244,10 @@ List of currently supported models:
|
|||||||
|
|
||||||
3.O. Enable UART
|
3.O. Enable UART
|
||||||
===============
|
===============
|
||||||
|
RaspberryPi 0, 1, 2 and CM will have UART console enabled by default.
|
||||||
|
|
||||||
RaspberryPi 1, 2 and CM will have UART console enabled by default.
|
RaspberryPi 0 WiFi and 3 does not have the UART enabled by default because this
|
||||||
|
needs a fixed core frequency and enable_uart wil set it to the minimum. Certain
|
||||||
RaspberryPi 3 does not have the UART enabled by default because this needs a
|
|
||||||
fixed core frequency and enable_uart wil set it to the minimum. Certain
|
|
||||||
operations - 60fps h264 decode, high quality deinterlace - which aren't
|
operations - 60fps h264 decode, high quality deinterlace - which aren't
|
||||||
performed on the ARM may be affected, and we wouldn't want to do that to users
|
performed on the ARM may be affected, and we wouldn't want to do that to users
|
||||||
who don't want to use the serial port. Users who want serial console support on
|
who don't want to use the serial port. Users who want serial console support on
|
||||||
@@ -318,11 +320,12 @@ Feel free to ask any kind of questions but always prepend your email subject
|
|||||||
with "[meta-raspberrypi]". This is because we use the 'yocto' mailing list and
|
with "[meta-raspberrypi]". This is because we use the 'yocto' mailing list and
|
||||||
not a perticular 'meta-raspberrypi' mailing list.
|
not a perticular 'meta-raspberrypi' mailing list.
|
||||||
|
|
||||||
To contribute to this layer you should send the patches for review to the
|
7.B. Patches and pull requests
|
||||||
above specified mailing list.
|
==============================
|
||||||
The patches should be compliant with the openembedded patch guidelines:
|
|
||||||
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
|
|
||||||
|
|
||||||
|
To contribute to this project you should send pull requests to the github mirror
|
||||||
|
(<https://github.com/agherzan/meta-raspberrypi>). **Additionally** you can send
|
||||||
|
the patches for review to the above specified mailing list.
|
||||||
|
|
||||||
When creating patches, please use something like:
|
When creating patches, please use something like:
|
||||||
|
|
||||||
@@ -332,7 +335,7 @@ When sending patches to mailing list, please use something like:
|
|||||||
|
|
||||||
git send-email --to yocto@yoctoproject.org <generated patch>
|
git send-email --to yocto@yoctoproject.org <generated patch>
|
||||||
|
|
||||||
7.B. Github issues
|
7.C. Github issues
|
||||||
==================
|
==================
|
||||||
In order to manage and trace the meta-raspberrypi issues, we use github issues:
|
In order to manage and trace the meta-raspberrypi issues, we use github issues:
|
||||||
https://github.com/agherzan/meta-raspberrypi/issues
|
https://github.com/agherzan/meta-raspberrypi/issues
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ KERNEL_INITRAMFS ?= ""
|
|||||||
# Kernel image name
|
# Kernel image name
|
||||||
SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img"
|
SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img"
|
||||||
SDIMG_KERNELIMAGE_raspberrypi2 ?= "kernel7.img"
|
SDIMG_KERNELIMAGE_raspberrypi2 ?= "kernel7.img"
|
||||||
|
SDIMG_KERNELIMAGE_raspberrypi3-64 ?= "kernel8.img"
|
||||||
|
|
||||||
# Boot partition volume id
|
# Boot partition volume id
|
||||||
BOOTDD_VOLUME_ID ?= "${MACHINE}"
|
BOOTDD_VOLUME_ID ?= "${MACHINE}"
|
||||||
|
|||||||
@@ -13,12 +13,14 @@ XSERVER = " \
|
|||||||
${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbdev", d)} \
|
${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbdev", d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
# Really supported starting from linux-raspberrypi 3.18.y only
|
|
||||||
KERNEL_DEVICETREE ?= " \
|
KERNEL_DEVICETREE ?= " \
|
||||||
|
bcm2708-rpi-0-w.dtb \
|
||||||
bcm2708-rpi-b.dtb \
|
bcm2708-rpi-b.dtb \
|
||||||
bcm2708-rpi-b-plus.dtb \
|
bcm2708-rpi-b-plus.dtb \
|
||||||
bcm2709-rpi-2-b.dtb \
|
bcm2709-rpi-2-b.dtb \
|
||||||
bcm2710-rpi-3-b.dtb \
|
bcm2710-rpi-3-b.dtb \
|
||||||
|
bcm2708-rpi-cm.dtb \
|
||||||
|
bcm2710-rpi-cm3.dtb \
|
||||||
\
|
\
|
||||||
overlays/hifiberry-amp.dtbo \
|
overlays/hifiberry-amp.dtbo \
|
||||||
overlays/hifiberry-dac.dtbo \
|
overlays/hifiberry-dac.dtbo \
|
||||||
@@ -40,7 +42,7 @@ KERNEL_DEVICETREE ?= " \
|
|||||||
"
|
"
|
||||||
KERNEL_IMAGETYPE ?= "Image"
|
KERNEL_IMAGETYPE ?= "Image"
|
||||||
|
|
||||||
MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio"
|
MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio ${@bb.utils.contains('DISABLE_VC4GRAPHICS', '1', '', 'vc4graphics', d)}"
|
||||||
|
|
||||||
# Raspberry Pi has no hardware clock
|
# Raspberry Pi has no hardware clock
|
||||||
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
|
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
|
||||||
|
|||||||
6
conf/machine/raspberrypi-cm.conf
Normal file
6
conf/machine/raspberrypi-cm.conf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: RaspberryPi Compute Module (CM1)
|
||||||
|
#@DESCRIPTION: Machine configuration for the RaspberryPi Compute Module (CM1)
|
||||||
|
|
||||||
|
MACHINEOVERRIDES = "raspberrypi:${MACHINE}"
|
||||||
|
include conf/machine/raspberrypi.conf
|
||||||
6
conf/machine/raspberrypi-cm3.conf
Normal file
6
conf/machine/raspberrypi-cm3.conf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: RaspberryPi Compute Module 3 (CM3)
|
||||||
|
#@DESCRIPTION: Machine configuration for the RaspberryPi Compute Module 3 (CM3)
|
||||||
|
|
||||||
|
MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
|
||||||
|
include conf/machine/raspberrypi2.conf
|
||||||
@@ -7,8 +7,7 @@ DEFAULTTUNE ?= "arm1176jzfshf"
|
|||||||
require conf/machine/include/tune-arm1176jzf-s.inc
|
require conf/machine/include/tune-arm1176jzf-s.inc
|
||||||
include conf/machine/include/rpi-base.inc
|
include conf/machine/include/rpi-base.inc
|
||||||
|
|
||||||
SERIAL_CONSOLE = "115200 ttyAMA0"
|
SERIAL_CONSOLE ?= "115200 ttyAMA0"
|
||||||
|
|
||||||
UBOOT_MACHINE = "rpi_config"
|
UBOOT_MACHINE = "rpi_config"
|
||||||
VC4_CMA_SIZE_raspberrypi ?= "cma-64"
|
VC4_CMA_SIZE_raspberrypi ?= "cma-64"
|
||||||
|
|
||||||
|
|||||||
15
conf/machine/raspberrypi0-wifi.conf
Normal file
15
conf/machine/raspberrypi0-wifi.conf
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: RaspberryPi Zero WiFi Development Board
|
||||||
|
#@DESCRIPTION: Machine configuration for the RaspberryPi Zero WiFi board (https://www.raspberrypi.org/blog/raspberry-pi-zero-w-joins-family/)
|
||||||
|
|
||||||
|
DEFAULTTUNE ?= "arm1176jzfshf"
|
||||||
|
require conf/machine/include/tune-arm1176jzf-s.inc
|
||||||
|
include conf/machine/include/rpi-base.inc
|
||||||
|
|
||||||
|
MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"
|
||||||
|
|
||||||
|
SDIMG_KERNELIMAGE ?= "kernel.img"
|
||||||
|
KERNEL_DEFCONFIG ?= "bcmrpi_defconfig"
|
||||||
|
UBOOT_MACHINE ?= "rpi_config"
|
||||||
|
SERIAL_CONSOLE ?= "115200 ttyS0"
|
||||||
|
VC4_CMA_SIZE ?= "cma-128"
|
||||||
@@ -7,4 +7,3 @@ include conf/machine/raspberrypi.conf
|
|||||||
|
|
||||||
SERIAL_CONSOLE = "115200 ttyAMA0"
|
SERIAL_CONSOLE = "115200 ttyAMA0"
|
||||||
VC4_CMA_SIZE ?= "cma-128"
|
VC4_CMA_SIZE ?= "cma-128"
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
|
|||||||
require conf/machine/include/tune-cortexa7.inc
|
require conf/machine/include/tune-cortexa7.inc
|
||||||
include conf/machine/include/rpi-base.inc
|
include conf/machine/include/rpi-base.inc
|
||||||
|
|
||||||
SERIAL_CONSOLE = "115200 ttyAMA0"
|
SERIAL_CONSOLE ?= "115200 ttyAMA0"
|
||||||
|
|
||||||
UBOOT_MACHINE = "rpi_2_config"
|
UBOOT_MACHINE = "rpi_2_config"
|
||||||
VC4_CMA_SIZE ?= "cma-256"
|
VC4_CMA_SIZE ?= "cma-256"
|
||||||
|
|
||||||
|
|||||||
41
conf/machine/raspberrypi3-64.conf
Normal file
41
conf/machine/raspberrypi3-64.conf
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: RaspberryPi 3 Development Board
|
||||||
|
#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode
|
||||||
|
|
||||||
|
MACHINEOVERRIDES = "raspberrypi3:${MACHINE}"
|
||||||
|
|
||||||
|
MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"
|
||||||
|
|
||||||
|
# Set this early so it overrides rpi-default-versions.inc
|
||||||
|
PREFERRED_VERSION_linux-raspberrypi ?= "4.9.%"
|
||||||
|
|
||||||
|
require conf/machine/include/arm/arch-armv8.inc
|
||||||
|
include conf/machine/include/rpi-base.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = " \
|
||||||
|
broadcom/bcm2710-rpi-3-b.dtb \
|
||||||
|
broadcom/bcm2837-rpi-3-b.dtb \
|
||||||
|
\
|
||||||
|
overlays/hifiberry-amp.dtbo \
|
||||||
|
overlays/hifiberry-dac.dtbo \
|
||||||
|
overlays/hifiberry-dacplus.dtbo \
|
||||||
|
overlays/hifiberry-digi.dtbo \
|
||||||
|
overlays/i2c-rtc.dtbo \
|
||||||
|
overlays/iqaudio-dac.dtbo \
|
||||||
|
overlays/iqaudio-dacplus.dtbo \
|
||||||
|
overlays/lirc-rpi.dtbo \
|
||||||
|
overlays/pitft22.dtbo \
|
||||||
|
overlays/pitft28-resistive.dtbo \
|
||||||
|
overlays/pps-gpio.dtbo \
|
||||||
|
overlays/rpi-ft5406.dtbo \
|
||||||
|
overlays/w1-gpio.dtbo \
|
||||||
|
overlays/w1-gpio-pullup.dtbo \
|
||||||
|
overlays/pi3-disable-bt.dtbo \
|
||||||
|
overlays/pi3-miniuart-bt.dtbo \
|
||||||
|
overlays/vc4-kms-v3d.dtbo \
|
||||||
|
"
|
||||||
|
|
||||||
|
SERIAL_CONSOLE ?= "115200 ttyS0"
|
||||||
|
VC4_CMA_SIZE ?= "cma-256"
|
||||||
|
|
||||||
|
UBOOT_MACHINE = "rpi_3_config"
|
||||||
@@ -2,12 +2,14 @@
|
|||||||
#@NAME: RaspberryPi 3 Development Board
|
#@NAME: RaspberryPi 3 Development Board
|
||||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 3
|
#@DESCRIPTION: Machine configuration for the RaspberryPi 3
|
||||||
|
|
||||||
MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
|
DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
|
||||||
|
require conf/machine/include/tune-cortexa7.inc
|
||||||
|
include conf/machine/include/rpi-base.inc
|
||||||
|
|
||||||
MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"
|
MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"
|
||||||
|
|
||||||
include conf/machine/raspberrypi2.conf
|
SDIMG_KERNELIMAGE ?= "kernel7.img"
|
||||||
|
KERNEL_DEFCONFIG ?= "bcm2709_defconfig"
|
||||||
SERIAL_CONSOLE = "115200 ttyS0"
|
UBOOT_MACHINE ?= "rpi_2_config"
|
||||||
|
SERIAL_CONSOLE ?= "115200 ttyS0"
|
||||||
VC4_CMA_SIZE ?= "cma-256"
|
VC4_CMA_SIZE ?= "cma-256"
|
||||||
|
|
||||||
|
|||||||
@@ -112,6 +112,12 @@ do_deploy() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_deploy_append_raspberrypi3-64() {
|
||||||
|
# Device Tree support
|
||||||
|
echo "# Load correct Device Tree for Aarch64" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
echo "device_tree=bcm2710-rpi-3-b.dtb" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
}
|
||||||
|
|
||||||
addtask deploy before do_package after do_install
|
addtask deploy before do_package after do_install
|
||||||
do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
|
do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
RPIFW_DATE ?= "20161125"
|
RPIFW_DATE ?= "20170405"
|
||||||
RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/1.${RPIFW_DATE}.tar.gz"
|
RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/1.${RPIFW_DATE}.tar.gz"
|
||||||
RPIFW_S ?= "${WORKDIR}/firmware-1.${RPIFW_DATE}"
|
RPIFW_S ?= "${WORKDIR}/firmware-1.${RPIFW_DATE}"
|
||||||
|
|
||||||
SRC_URI = "${RPIFW_SRC_URI}"
|
SRC_URI = "${RPIFW_SRC_URI}"
|
||||||
SRC_URI[md5sum] = "a9281d2869e2d7673a83d41bacfa66c2"
|
SRC_URI[md5sum] = "ea82d14a7cd8cfae9b78e00d4e56bc71"
|
||||||
SRC_URI[sha256sum] = "744e050630621c70991c91e0ee8663dc2f579e743583ca762b13b00bc75859bc"
|
SRC_URI[sha256sum] = "2f4e5bddbac1372590db203002c35cbba3fb9d6172a93c314ee27bf05ae13bff"
|
||||||
|
|
||||||
PV = "${RPIFW_DATE}"
|
PV = "${RPIFW_DATE}"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
From 1eb01436bc57ad32519a4567a1c9ec82d52d60a1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Paul Barker <paul@paulbarker.me.uk>
|
||||||
|
Date: Tue, 29 Nov 2016 19:47:49 +0000
|
||||||
|
Subject: [PATCH] Include lowlevel_init.o for rpi2
|
||||||
|
|
||||||
|
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
|
||||||
|
Upstream-status: Inappropriate
|
||||||
|
(not needed upstream as rpi_2 board directory is removed in latest
|
||||||
|
version)
|
||||||
|
---
|
||||||
|
board/raspberrypi/rpi_2/Makefile | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/board/raspberrypi/rpi_2/Makefile b/board/raspberrypi/rpi_2/Makefile
|
||||||
|
index d82cd21..9f865c5 100644
|
||||||
|
--- a/board/raspberrypi/rpi_2/Makefile
|
||||||
|
+++ b/board/raspberrypi/rpi_2/Makefile
|
||||||
|
@@ -5,3 +5,4 @@
|
||||||
|
#
|
||||||
|
|
||||||
|
obj-y := ../rpi/rpi.o
|
||||||
|
+obj-y += ../rpi/lowlevel_init.o
|
||||||
|
--
|
||||||
|
2.1.4
|
||||||
|
|
||||||
@@ -3,4 +3,5 @@ RDEPENDS_${PN}_append_rpi = " rpi-u-boot-scr"
|
|||||||
SRC_URI_append_rpi = " \
|
SRC_URI_append_rpi = " \
|
||||||
file://0001-arm-add-save_boot_params-for-ARM1176.patch \
|
file://0001-arm-add-save_boot_params-for-ARM1176.patch \
|
||||||
file://0002-rpi-passthrough-of-the-firmware-provided-FDT-blob.patch \
|
file://0002-rpi-passthrough-of-the-firmware-provided-FDT-blob.patch \
|
||||||
|
file://0003-Include-lowlevel_init.o-for-rpi2.patch \
|
||||||
"
|
"
|
||||||
|
|||||||
12
recipes-core/udev/udev-rules-rpi.bb
Normal file
12
recipes-core/udev/udev-rules-rpi.bb
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
DESCRIPTION = "udev rules for Raspberry Pi Boards"
|
||||||
|
LICENSE = "MIT"
|
||||||
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||||
|
|
||||||
|
SRC_URI = " file://99-com.rules"
|
||||||
|
|
||||||
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
|
do_install () {
|
||||||
|
install -d ${D}${sysconfdir}/udev/rules.d
|
||||||
|
install -m 0644 ${WORKDIR}/99-com.rules ${D}${sysconfdir}/udev/rules.d/
|
||||||
|
}
|
||||||
21
recipes-core/udev/udev-rules-rpi/99-com.rules
Normal file
21
recipes-core/udev/udev-rules-rpi/99-com.rules
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
|
||||||
|
ALIASES=/proc/device-tree/aliases; \
|
||||||
|
if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
|
||||||
|
echo 0;\
|
||||||
|
elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \
|
||||||
|
echo 1; \
|
||||||
|
else \
|
||||||
|
exit 1; \
|
||||||
|
fi\
|
||||||
|
'", SYMLINK+="serial%c"
|
||||||
|
|
||||||
|
KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
|
||||||
|
ALIASES=/proc/device-tree/aliases; \
|
||||||
|
if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \
|
||||||
|
echo 0; \
|
||||||
|
elif cmp -s $ALIASES/uart1 $ALIASES/serial1; then \
|
||||||
|
echo 1; \
|
||||||
|
else \
|
||||||
|
exit 1; \
|
||||||
|
fi \
|
||||||
|
'", SYMLINK+="serial%c"
|
||||||
@@ -7,10 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=0448d6488ef8cc380632b1569ee6d196"
|
|||||||
|
|
||||||
PR = "r5"
|
PR = "r5"
|
||||||
|
|
||||||
PROVIDES = "virtual/libgles2 \
|
PROVIDES = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'virtual/libgles2 virtual/egl', d)}"
|
||||||
virtual/egl"
|
|
||||||
|
|
||||||
RPROVIDES_${PN} += "libgles2 libgl"
|
RPROVIDES_${PN} += "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'libgles2 egl', d)}"
|
||||||
|
|
||||||
COMPATIBLE_MACHINE = "raspberrypi"
|
COMPATIBLE_MACHINE = "raspberrypi"
|
||||||
|
|
||||||
@@ -58,6 +57,14 @@ do_install_append () {
|
|||||||
sed -i 's/include "vcos_futex_mutex.h"/include "pthreads\/vcos_futex_mutex.h"/g' ${f}
|
sed -i 's/include "vcos_futex_mutex.h"/include "pthreads\/vcos_futex_mutex.h"/g' ${f}
|
||||||
sed -i 's/include "vcos_platform_types.h"/include "pthreads\/vcos_platform_types.h"/g' ${f}
|
sed -i 's/include "vcos_platform_types.h"/include "pthreads\/vcos_platform_types.h"/g' ${f}
|
||||||
done
|
done
|
||||||
|
if [ "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}" = "1" ]; then
|
||||||
|
rm -rf ${D}${libdir}/libEGL*
|
||||||
|
rm -rf ${D}${libdir}/libGLES*
|
||||||
|
rm -rf ${D}${libdir}/libwayland-*
|
||||||
|
rm -rf ${D}${libdir}/pkgconfig/egl.pc ${D}${libdir}/pkgconfig/glesv2.pc \
|
||||||
|
${D}${libdir}/pkgconfig/wayland-egl.pc
|
||||||
|
rm -rf ${D}${includedir}/EGL ${D}${includedir}/GLES* ${D}${includedir}/KHR
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Shared libs from userland package build aren't versioned, so we need
|
# Shared libs from userland package build aren't versioned, so we need
|
||||||
@@ -77,3 +84,4 @@ FILES_${PN}-dbg += "${libdir}/plugins/.debug"
|
|||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
RDEPENDS_${PN} += "bash"
|
RDEPENDS_${PN} += "bash"
|
||||||
|
RDEPENDS_${PN} += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "libegl-mesa", "", d)}"
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
#
|
|
||||||
# Catch-all evdev loader for udev-based systems
|
|
||||||
# We don't simply match on any device since that also adds accelerometers
|
|
||||||
# and other devices that we don't really want to use. The list below
|
|
||||||
# matches everything but joysticks.
|
|
||||||
|
|
||||||
Section "InputClass"
|
|
||||||
Identifier "evdev pointer catchall"
|
|
||||||
MatchIsPointer "on"
|
|
||||||
MatchDevicePath "/dev/input/event*"
|
|
||||||
Driver "evdev"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputClass"
|
|
||||||
Identifier "evdev keyboard catchall"
|
|
||||||
MatchIsKeyboard "on"
|
|
||||||
MatchDevicePath "/dev/input/event*"
|
|
||||||
Driver "evdev"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputClass"
|
|
||||||
Identifier "evdev touchpad catchall"
|
|
||||||
MatchIsTouchpad "on"
|
|
||||||
MatchDevicePath "/dev/input/event*"
|
|
||||||
Driver "evdev"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputClass"
|
|
||||||
Identifier "evdev tablet catchall"
|
|
||||||
MatchIsTablet "on"
|
|
||||||
MatchDevicePath "/dev/input/event*"
|
|
||||||
Driver "evdev"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputClass"
|
|
||||||
Identifier "evdev touchscreen catchall"
|
|
||||||
MatchIsTouchscreen "on"
|
|
||||||
MatchDevicePath "/dev/input/event*"
|
|
||||||
Driver "evdev"
|
|
||||||
EndSection
|
|
||||||
@@ -1,16 +1,14 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf \
|
SRC_URI_append_rpi = " \
|
||||||
file://xorg.conf.d/98-pitft.conf \
|
file://xorg.conf.d/98-pitft.conf \
|
||||||
file://xorg.conf.d/99-calibration.conf \
|
file://xorg.conf.d/99-calibration.conf \
|
||||||
"
|
"
|
||||||
|
|
||||||
do_install_append_rpi () {
|
do_install_append_rpi () {
|
||||||
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
|
|
||||||
install -m 0644 ${WORKDIR}/xorg.conf.d/10-evdev.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
|
||||||
|
|
||||||
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
|
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
|
||||||
if [ "${PITFT}" = "1" ]; then
|
if [ "${PITFT}" = "1" ]; then
|
||||||
|
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||||
install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||||
install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -7,3 +7,5 @@ PACKAGECONFIG_rpi ?= " \
|
|||||||
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "xwayland", "", d)} \
|
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "xwayland", "", d)} \
|
||||||
${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)} \
|
${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
XSERVER_RRECOMMENDS_append = " xf86-input-libinput"
|
||||||
|
|||||||
66
recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt
Normal file
66
recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
# NVRAM file for BCM943430WLPTH
|
||||||
|
# 2.4 GHz, 20 MHz BW mode
|
||||||
|
|
||||||
|
# The following parameter values are just placeholders, need to be updated.
|
||||||
|
manfid=0x2d0
|
||||||
|
prodid=0x0727
|
||||||
|
vendid=0x14e4
|
||||||
|
devid=0x43e2
|
||||||
|
boardtype=0x0727
|
||||||
|
boardrev=0x1101
|
||||||
|
boardnum=22
|
||||||
|
macaddr=00:90:4c:c5:12:38
|
||||||
|
sromrev=11
|
||||||
|
boardflags=0x00404201
|
||||||
|
boardflags3=0x08000000
|
||||||
|
xtalfreq=37400
|
||||||
|
nocrc=1
|
||||||
|
ag0=255
|
||||||
|
aa2g=1
|
||||||
|
ccode=ALL
|
||||||
|
|
||||||
|
pa0itssit=0x20
|
||||||
|
extpagain2g=0
|
||||||
|
#PA parameters for 2.4GHz, measured at CHIP OUTPUT
|
||||||
|
pa2ga0=-168,7161,-820
|
||||||
|
AvVmid_c0=0x0,0xc8
|
||||||
|
cckpwroffset0=5
|
||||||
|
|
||||||
|
# PPR params
|
||||||
|
maxp2ga0=84
|
||||||
|
txpwrbckof=6
|
||||||
|
cckbw202gpo=0
|
||||||
|
legofdmbw202gpo=0x66111111
|
||||||
|
mcsbw202gpo=0x77711111
|
||||||
|
propbw202gpo=0xdd
|
||||||
|
|
||||||
|
# OFDM IIR :
|
||||||
|
ofdmdigfilttype=18
|
||||||
|
ofdmdigfilttypebe=18
|
||||||
|
# PAPD mode:
|
||||||
|
papdmode=1
|
||||||
|
papdvalidtest=1
|
||||||
|
pacalidx2g=42
|
||||||
|
papdepsoffset=-22
|
||||||
|
papdendidx=58
|
||||||
|
|
||||||
|
# LTECX flags
|
||||||
|
ltecxmux=0
|
||||||
|
ltecxpadnum=0x0102
|
||||||
|
ltecxfnsel=0x44
|
||||||
|
ltecxgcigpio=0x01
|
||||||
|
|
||||||
|
il0macaddr=00:90:4c:c5:12:38
|
||||||
|
wl0id=0x431b
|
||||||
|
|
||||||
|
deadman_to=0xffffffff
|
||||||
|
# muxenab: 0x1 for UART enable, 0x2 for GPIOs, 0x8 for JTAG
|
||||||
|
muxenab=0x1
|
||||||
|
# CLDO PWM voltage settings - 0x4 - 1.1 volt
|
||||||
|
#cldo_pwm=0x4
|
||||||
|
|
||||||
|
#VCO freq 326.4MHz
|
||||||
|
spurconfig=0x3
|
||||||
|
|
||||||
|
edonthd20l=-75
|
||||||
|
edoffthd20ul=-80
|
||||||
12
recipes-kernel/linux-firmware/linux-firmware_%.bbappend
Normal file
12
recipes-kernel/linux-firmware/linux-firmware_%.bbappend
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
|
|
||||||
|
SRC_URI += "file://brcmfmac43430-sdio.txt"
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
install -D -m 0644 ${WORKDIR}/brcmfmac43430-sdio.txt ${D}/lib/firmware/brcm/brcmfmac43430-sdio.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
FILES_${PN}-bcm43430 += " \
|
||||||
|
/lib/firmware/brcm/brcmfmac43430-sdio.txt \
|
||||||
|
"
|
||||||
|
|
||||||
@@ -1,110 +0,0 @@
|
|||||||
From a28bd410022b32a64e208f04b45add6326990332 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Petter=20Mab=C3=A4cker?= <petter@technux.se>
|
|
||||||
Date: Fri, 8 Jan 2016 09:02:44 +0100
|
|
||||||
Subject: [PATCH] dts: add overlay for pitft22
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
|
|
||||||
Add the pitft22 overlay from adafruit Adafruit-Pi-Kernel-o-Matic repo:
|
|
||||||
https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic
|
|
||||||
|
|
||||||
Signed-off-by: Petter Mabäcker <petter@technux.se>
|
|
||||||
---
|
|
||||||
arch/arm/boot/dts/overlays/Makefile | 1 +
|
|
||||||
arch/arm/boot/dts/overlays/pitft22-overlay.dts | 69 ++++++++++++++++++++++++++
|
|
||||||
2 files changed, 70 insertions(+)
|
|
||||||
create mode 100755 arch/arm/boot/dts/overlays/pitft22-overlay.dts
|
|
||||||
|
|
||||||
diff --git a/arch/arm/boot/dts/overlays/Makefile b/arch/arm/boot/dts/overlays/Makefile
|
|
||||||
index 1a60e9c..a2535a2 100644
|
|
||||||
--- a/arch/arm/boot/dts/overlays/Makefile
|
|
||||||
+++ b/arch/arm/boot/dts/overlays/Makefile
|
|
||||||
@@ -37,6 +37,7 @@ dtb-$(RPI_DT_OVERLAYS) += mmc-overlay.dtb
|
|
||||||
dtb-$(RPI_DT_OVERLAYS) += mz61581-overlay.dtb
|
|
||||||
dtb-$(RPI_DT_OVERLAYS) += piscreen-overlay.dtb
|
|
||||||
dtb-$(RPI_DT_OVERLAYS) += piscreen2r-overlay.dtb
|
|
||||||
+dtb-$(RPI_DT_OVERLAYS) += pitft22-overlay.dtb
|
|
||||||
dtb-$(RPI_DT_OVERLAYS) += pitft28-capacitive-overlay.dtb
|
|
||||||
dtb-$(RPI_DT_OVERLAYS) += pitft28-resistive-overlay.dtb
|
|
||||||
dtb-$(RPI_DT_OVERLAYS) += pps-gpio-overlay.dtb
|
|
||||||
diff --git a/arch/arm/boot/dts/overlays/pitft22-overlay.dts b/arch/arm/boot/dts/overlays/pitft22-overlay.dts
|
|
||||||
new file mode 100755
|
|
||||||
index 0000000..894ba22
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/arch/arm/boot/dts/overlays/pitft22-overlay.dts
|
|
||||||
@@ -0,0 +1,69 @@
|
|
||||||
+/*
|
|
||||||
+ * Device Tree overlay for pitft by Adafruit
|
|
||||||
+ *
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+/dts-v1/;
|
|
||||||
+/plugin/;
|
|
||||||
+
|
|
||||||
+/ {
|
|
||||||
+ compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
|
|
||||||
+
|
|
||||||
+ fragment@0 {
|
|
||||||
+ target = <&spi0>;
|
|
||||||
+ __overlay__ {
|
|
||||||
+ status = "okay";
|
|
||||||
+
|
|
||||||
+ spidev@0{
|
|
||||||
+ status = "disabled";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ spidev@1{
|
|
||||||
+ status = "disabled";
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ fragment@1 {
|
|
||||||
+ target = <&gpio>;
|
|
||||||
+ __overlay__ {
|
|
||||||
+ pitft_pins: pitft_pins {
|
|
||||||
+ brcm,pins = <25>;
|
|
||||||
+ brcm,function = <1>; /* out */
|
|
||||||
+ brcm,pull = <0>; /* none */
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ fragment@2 {
|
|
||||||
+ target = <&spi0>;
|
|
||||||
+ __overlay__ {
|
|
||||||
+ /* needed to avoid dtc warning */
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <0>;
|
|
||||||
+
|
|
||||||
+ pitft: pitft@0{
|
|
||||||
+ compatible = "ilitek,ili9340";
|
|
||||||
+ reg = <0>;
|
|
||||||
+ pinctrl-names = "default";
|
|
||||||
+ pinctrl-0 = <&pitft_pins>;
|
|
||||||
+
|
|
||||||
+ spi-max-frequency = <32000000>;
|
|
||||||
+ rotate = <90>;
|
|
||||||
+ fps = <25>;
|
|
||||||
+ bgr;
|
|
||||||
+ buswidth = <8>;
|
|
||||||
+ dc-gpios = <&gpio 25 0>;
|
|
||||||
+ debug = <0>;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ __overrides__ {
|
|
||||||
+ speed = <&pitft>,"spi-max-frequency:0";
|
|
||||||
+ rotate = <&pitft>,"rotate:0";
|
|
||||||
+ fps = <&pitft>,"fps:0";
|
|
||||||
+ debug = <&pitft>,"debug:0";
|
|
||||||
+ };
|
|
||||||
+};
|
|
||||||
--
|
|
||||||
1.9.1
|
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
The code using it also ifdef'ed with 0, anyyd gcc 6
|
|
||||||
complains
|
|
||||||
|
|
||||||
error: 'sm_cache_map_vector' defined but not used
|
|
||||||
|
|
||||||
The code using it also ifdef'ed out
|
|
||||||
|
|
||||||
Upstream-status: Denied [https://github.com/raspberrypi/linux/pull/1528]
|
|
||||||
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
drivers/char/broadcom/vc_sm/vmcs_sm.c | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
--- a/drivers/char/broadcom/vc_sm/vmcs_sm.c
|
|
||||||
+++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c
|
|
||||||
@@ -197,12 +197,14 @@ struct SM_STATE_T {
|
|
||||||
static struct SM_STATE_T *sm_state;
|
|
||||||
static int sm_inited;
|
|
||||||
|
|
||||||
+#if 0
|
|
||||||
static const char *const sm_cache_map_vector[] = {
|
|
||||||
"(null)",
|
|
||||||
"host",
|
|
||||||
"videocore",
|
|
||||||
"host+videocore",
|
|
||||||
};
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* ---- Private Function Prototypes -------------------------------------- */
|
|
||||||
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
Fix compile with GCC6
|
|
||||||
|
|
||||||
Upstream-status: Denied [https://github.com/raspberrypi/linux/pull/1528]
|
|
||||||
|
|
||||||
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
|
|
||||||
|
|
||||||
Index: source/include/linux/compiler-gcc6.h
|
|
||||||
===================================================================
|
|
||||||
--- /dev/null
|
|
||||||
+++ source/include/linux/compiler-gcc6.h
|
|
||||||
@@ -0,0 +1,67 @@
|
|
||||||
+#ifndef __LINUX_COMPILER_H
|
|
||||||
+#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead."
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#define __used __attribute__((__used__))
|
|
||||||
+#define __must_check __attribute__((warn_unused_result))
|
|
||||||
+#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
|
|
||||||
+
|
|
||||||
+/* Mark functions as cold. gcc will assume any path leading to a call
|
|
||||||
+ to them will be unlikely. This means a lot of manual unlikely()s
|
|
||||||
+ are unnecessary now for any paths leading to the usual suspects
|
|
||||||
+ like BUG(), printk(), panic() etc. [but let's keep them for now for
|
|
||||||
+ older compilers]
|
|
||||||
+
|
|
||||||
+ Early snapshots of gcc 4.3 don't support this and we can't detect this
|
|
||||||
+ in the preprocessor, but we can live with this because they're unreleased.
|
|
||||||
+ Maketime probing would be overkill here.
|
|
||||||
+
|
|
||||||
+ gcc also has a __attribute__((__hot__)) to move hot functions into
|
|
||||||
+ a special section, but I don't see any sense in this right now in
|
|
||||||
+ the kernel context */
|
|
||||||
+#define __cold __attribute__((__cold__))
|
|
||||||
+
|
|
||||||
+#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
|
|
||||||
+
|
|
||||||
+#ifndef __CHECKER__
|
|
||||||
+# define __compiletime_warning(message) __attribute__((warning(message)))
|
|
||||||
+# define __compiletime_error(message) __attribute__((error(message)))
|
|
||||||
+#endif /* __CHECKER__ */
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ * Mark a position in code as unreachable. This can be used to
|
|
||||||
+ * suppress control flow warnings after asm blocks that transfer
|
|
||||||
+ * control elsewhere.
|
|
||||||
+ *
|
|
||||||
+ * Early snapshots of gcc 4.5 don't support this and we can't detect
|
|
||||||
+ * this in the preprocessor, but we can live with this because they're
|
|
||||||
+ * unreleased. Really, we need to have autoconf for the kernel.
|
|
||||||
+ */
|
|
||||||
+#define unreachable() __builtin_unreachable()
|
|
||||||
+
|
|
||||||
+/* Mark a function definition as prohibited from being cloned. */
|
|
||||||
+#define __noclone __attribute__((__noclone__))
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ * Tell the optimizer that something else uses this function or variable.
|
|
||||||
+ */
|
|
||||||
+#define __visible __attribute__((externally_visible))
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ * GCC 'asm goto' miscompiles certain code sequences:
|
|
||||||
+ *
|
|
||||||
+ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670
|
|
||||||
+ *
|
|
||||||
+ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek.
|
|
||||||
+ *
|
|
||||||
+ * (asm goto is automatically volatile - the naming reflects this.)
|
|
||||||
+ */
|
|
||||||
+#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
|
|
||||||
+
|
|
||||||
+#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP
|
|
||||||
+#define __HAVE_BUILTIN_BSWAP32__
|
|
||||||
+#define __HAVE_BUILTIN_BSWAP64__
|
|
||||||
+#define __HAVE_BUILTIN_BSWAP16__
|
|
||||||
+#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */
|
|
||||||
+
|
|
||||||
+#define KASAN_ABI_VERSION 4
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
From 13c8784da3dbd977f64cec740eba775b6fab11c2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Herve Jourdain <herve.jourdain@neuf.fr>
|
|
||||||
Date: Fri, 20 May 2016 16:02:23 +0800
|
|
||||||
Subject: [yocto][meta-raspberrypi][PATCH v4 4/5] linux-raspberrypi_4.4.inc:
|
|
||||||
support for .dtbo files for dtb overlays
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
|
|
||||||
Kernel 4.4.6+ on RaspberryPi support .dtbo files for overlays, instead of .dtb.
|
|
||||||
Patch the kernel, which has faulty rules to generate .dtbo the way yocto does
|
|
||||||
|
|
||||||
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
|
|
||||||
---
|
|
||||||
.../0001-fix-dtbo-rules.patch | 27 ++++++++++++++++++++++
|
|
||||||
1 file changed, 27 insertions(+)
|
|
||||||
create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch
|
|
||||||
|
|
||||||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
|
|
||||||
index a2e7cf7..673c1cb 100644
|
|
||||||
--- a/arch/arm/Makefile
|
|
||||||
+++ b/arch/arm/Makefile
|
|
||||||
@@ -333,6 +333,8 @@ $(INSTALL_TARGETS):
|
|
||||||
|
|
||||||
%.dtb: | scripts
|
|
||||||
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
|
|
||||||
+%.dtbo: | scripts
|
|
||||||
+ $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
|
|
||||||
|
|
||||||
PHONY += dtbs dtbs_install
|
|
||||||
|
|
||||||
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
|
|
||||||
index 3079c4f..6cc3766 100644
|
|
||||||
--- a/scripts/Makefile.lib
|
|
||||||
+++ b/scripts/Makefile.lib
|
|
||||||
@@ -293,7 +293,8 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
|
|
||||||
$(call if_changed_dep,dtc)
|
|
||||||
|
|
||||||
quiet_cmd_dtco = DTCO $@
|
|
||||||
-cmd_dtco = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
|
|
||||||
+cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
|
|
||||||
+ $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
|
|
||||||
$(objtree)/scripts/dtc/dtc -@ -H epapr -O dtb -o $@ -b 0 \
|
|
||||||
-i $(dir $<) $(DTC_FLAGS) \
|
|
||||||
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
|
|
||||||
@@ -18,6 +18,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
|
|||||||
# 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"
|
KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
|
||||||
|
KERNEL_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig"
|
||||||
|
|
||||||
# CMDLINE for raspberrypi
|
# CMDLINE for raspberrypi
|
||||||
CMDLINE = "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
|
CMDLINE = "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
|
||||||
|
|
||||||
LINUX_VERSION ?= "4.1.21"
|
|
||||||
|
|
||||||
SRCREV = "ff45bc0e8917c77461b2901e2743e6339bb70413"
|
|
||||||
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.1.y \
|
|
||||||
file://0001-dts-add-overlay-for-pitft22.patch \
|
|
||||||
file://0002-vmcs-Remove-unused-sm_cache_map_vector-definition.patch \
|
|
||||||
file://0003-fix-gcc6.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
require linux-raspberrypi.inc
|
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
||||||
|
|
||||||
LINUX_VERSION ?= "4.4.35"
|
LINUX_VERSION ?= "4.4.50"
|
||||||
|
|
||||||
SRCREV = "5d765c8b5782de7ed49f623c107f1b395429b560"
|
SRCREV = "04c8e47067d4873c584395e5cb260b4f170a99ea"
|
||||||
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \
|
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \
|
||||||
file://0001-fix-dtbo-rules.patch \
|
file://0001-fix-dtbo-rules.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
require linux-raspberrypi.inc
|
require linux-raspberrypi.inc
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
|
||||||
|
|
||||||
LINUX_VERSION ?= "4.7.7"
|
|
||||||
|
|
||||||
SRCREV = "a45a35c08598b23f9fd82e49c83b46c7d536244f"
|
|
||||||
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.7.y \
|
|
||||||
file://0001-fix-dtbo-rules.patch \
|
|
||||||
"
|
|
||||||
require linux-raspberrypi.inc
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
|
||||||
|
|
||||||
LINUX_VERSION ?= "4.8.16"
|
|
||||||
|
|
||||||
SRCREV = "061dccce6cf6705bbb5da29a643f4b0ad1d11630"
|
|
||||||
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.8.y \
|
|
||||||
"
|
|
||||||
require linux-raspberrypi.inc
|
|
||||||
@@ -1,8 +1,13 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
||||||
|
|
||||||
LINUX_VERSION ?= "4.9.2"
|
LINUX_VERSION ?= "4.9.27"
|
||||||
|
|
||||||
SRCREV = "4052b0da7dbab0df22ca8733cf50b3e573e221e0"
|
SRCREV = "9a5f215eda12bad29b35040dff00d0346fe517e2"
|
||||||
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \
|
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \
|
||||||
"
|
"
|
||||||
require linux-raspberrypi.inc
|
require linux-raspberrypi.inc
|
||||||
|
|
||||||
|
# A LOADADDR is needed when building a uImage format kernel. This value is not
|
||||||
|
# set by default in rpi-4.8.y and later branches so we need to provide it
|
||||||
|
# manually. This value unused if KERNEL_IMAGETYPE is not uImage.
|
||||||
|
KERNEL_EXTRA_ARGS += "LOADADDR=0x00008000"
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ EXTRA_OECONF_append_rpi = " CPPFLAGS='-I${STAGING_INCDIR}/interface/vcos/pthread
|
|||||||
|
|
||||||
# if using bcm driver enable dispmanx not when using VC4 driver
|
# if using bcm driver enable dispmanx not when using VC4 driver
|
||||||
|
|
||||||
PACKAGECONFIG_append_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', ' dispmanx', d)}"
|
PACKAGECONFIG_append_rpi = " ${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', \
|
||||||
|
bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d), \
|
||||||
|
'dispmanx', d)}"
|
||||||
|
|
||||||
PACKAGECONFIG_GL_rpi = "egl gles2"
|
PACKAGECONFIG_GL_rpi = "egl gles2"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user