diff options
author | Mike Looijmans <mike.looijmans@topic.nl> | 2021-03-03 10:41:45 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2021-03-16 22:25:08 +0000 |
commit | 3ae135e590e375c8da26b003bda41c18fb977ae1 (patch) | |
tree | 31ec00f43cc57abefbe9a41fd4c620f9af3a9aa5 | |
parent | f270194db9d9e54b57c65d33231d182cf127ef0c (diff) | |
download | meta-raspberrypi-3ae135e590e375c8da26b003bda41c18fb977ae1.tar.gz |
rpi-base: Add missing overlay_map.dtb and vc4-kms-v3d-pi4.dtbo
overlay_map.dtb arranges that when config.txt requests "vc4-kms-v3d"
the rpi4 will actually load "vc4-kms-v3d-pi4" and fixups like that.
It is present on the official distros, and must be put into the
overlays subdirectory in the boot partition.
For a detailed description of the overlay_map.dts file see:
https://www.raspberrypi.org/documentation/configuration/device-tree.md#part2.2.10
vc4-kms-v3d-pi4 is required for the arm based kms driver on the rpi4.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
(cherry picked from commit fdf02accfe3f68d11fa178d72eb377f9ca96411c)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
-rw-r--r-- | conf/machine/include/rpi-base.inc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index 8b33a0f..572fe22 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
@@ -15,6 +15,7 @@ XSERVER = " \ | |||
15 | " | 15 | " |
16 | 16 | ||
17 | RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \ | 17 | RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \ |
18 | overlays/overlay_map.dtb \ | ||
18 | overlays/at86rf233.dtbo \ | 19 | overlays/at86rf233.dtbo \ |
19 | overlays/disable-bt.dtbo \ | 20 | overlays/disable-bt.dtbo \ |
20 | overlays/dwc2.dtbo \ | 21 | overlays/dwc2.dtbo \ |
@@ -44,6 +45,7 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \ | |||
44 | overlays/rpi-poe.dtbo \ | 45 | overlays/rpi-poe.dtbo \ |
45 | overlays/vc4-fkms-v3d.dtbo \ | 46 | overlays/vc4-fkms-v3d.dtbo \ |
46 | overlays/vc4-kms-v3d.dtbo \ | 47 | overlays/vc4-kms-v3d.dtbo \ |
48 | overlays/vc4-kms-v3d-pi4.dtbo \ | ||
47 | overlays/vc4-kms-dsi-7inch.dtbo \ | 49 | overlays/vc4-kms-dsi-7inch.dtbo \ |
48 | overlays/w1-gpio.dtbo \ | 50 | overlays/w1-gpio.dtbo \ |
49 | overlays/w1-gpio-pullup.dtbo \ | 51 | overlays/w1-gpio-pullup.dtbo \ |
@@ -110,17 +112,17 @@ def make_dtb_boot_files(d): | |||
110 | 112 | ||
111 | def transform(dtb): | 113 | def transform(dtb): |
112 | base = os.path.basename(dtb) | 114 | base = os.path.basename(dtb) |
113 | if dtb.endswith('dtb'): | 115 | if dtb.endswith('dtbo') or base == 'overlay_map.dtb': |
114 | # eg: whatever/bcm2708-rpi-b.dtb has: | ||
115 | # DEPLOYDIR file: bcm2708-rpi-b.dtb | ||
116 | # destination: bcm2708-rpi-b.dtb | ||
117 | return base | ||
118 | elif dtb.endswith('dtbo'): | ||
119 | # overlay dtb: | 116 | # overlay dtb: |
120 | # eg: overlays/hifiberry-amp.dtbo has: | 117 | # eg: overlays/hifiberry-amp.dtbo has: |
121 | # DEPLOYDIR file: hifiberry-amp.dtbo | 118 | # DEPLOYDIR file: hifiberry-amp.dtbo |
122 | # destination: overlays/hifiberry-amp.dtbo | 119 | # destination: overlays/hifiberry-amp.dtbo |
123 | return '{};{}'.format(base, dtb) | 120 | return '{};{}'.format(base, dtb) |
121 | elif dtb.endswith('dtb'): | ||
122 | # eg: whatever/bcm2708-rpi-b.dtb has: | ||
123 | # DEPLOYDIR file: bcm2708-rpi-b.dtb | ||
124 | # destination: bcm2708-rpi-b.dtb | ||
125 | return base | ||
124 | 126 | ||
125 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) | 127 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) |
126 | 128 | ||