Skip to contentSkip to conversation

raspberrypi-cm.conf: Add dummy machine for CM1 (alias for RPi1)

PATCH In review Andrei Gherzan 1 participant 6 messages Jan 20, 2017 – Jan 25, 2017 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 raspberrypi-cm.conf: Add dummy machine for CM1 (alias for RPi1)

---
 conf/machine/raspberrypi-cm.conf | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 conf/machine/raspberrypi-cm.conf
conf/machine/raspberrypi-cm.conf new file +6 -0
new file mode 100644
index 0000000..2da7d50
@@ -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
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/5 raspberrypi-cm3.conf: Add dummy machine for CM3 (alias for RPi2)

---
 conf/machine/raspberrypi-cm3.conf | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 conf/machine/raspberrypi-cm3.conf
conf/machine/raspberrypi-cm3.conf new file +6 -0
new file mode 100644
index 0000000..153d5d5
@@ -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
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/5 raspberrypi*.conf: Minor tweaks

In reply to Andrei Gherzan
---
 conf/machine/raspberrypi.conf  | 1 -
 conf/machine/raspberrypi0.conf | 1 -
 conf/machine/raspberrypi2.conf | 1 -
 conf/machine/raspberrypi3.conf | 4 +---
 4 files changed, 1 insertion(+), 6 deletions(-)
conf/machine/raspberrypi.conf +0 -1
index df8194c..ad3b061 100644
@@ -11,4 +11,3 @@ SERIAL_CONSOLE = "115200 ttyAMA0"
 
 UBOOT_MACHINE = "rpi_config"
 VC4_CMA_SIZE_raspberrypi ?= "cma-64"
-
conf/machine/raspberrypi0.conf +0 -1
index 0df9121..7c2b811 100644
@@ -7,4 +7,3 @@ include conf/machine/raspberrypi.conf
 
 SERIAL_CONSOLE = "115200 ttyAMA0"
 VC4_CMA_SIZE ?= "cma-128"
-
conf/machine/raspberrypi2.conf +0 -1
index 3f13dc0..9b4c02a 100644
@@ -11,4 +11,3 @@ SERIAL_CONSOLE = "115200 ttyAMA0"
 
 UBOOT_MACHINE = "rpi_2_config"
 VC4_CMA_SIZE ?= "cma-256"
-
conf/machine/raspberrypi3.conf +1 -3
index 9820209..1ac5928 100644
@@ -3,11 +3,9 @@
 #@DESCRIPTION: Machine configuration for the RaspberryPi 3
 
 MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
+include conf/machine/raspberrypi2.conf
 
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"
 
-include conf/machine/raspberrypi2.conf
-
 SERIAL_CONSOLE = "115200 ttyS0"
 VC4_CMA_SIZE ?= "cma-256"
-
Signature · 1 line
2.7.4
#3 lore raw

PATCH 4/5 rpi-base.inc: Include dtb file for CM1 and CM3

In reply to Andrei Gherzan
---
 conf/machine/include/rpi-base.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/include/rpi-base.inc +2 -1
index 9f20663..e069e70 100644
@@ -13,12 +13,13 @@ XSERVER = " \
     ${@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 ?= " \
     bcm2708-rpi-b.dtb \
     bcm2708-rpi-b-plus.dtb \
     bcm2709-rpi-2-b.dtb \
     bcm2710-rpi-3-b.dtb \
+    bcm2708-rpi-cm.dtb \
+    bcm2710-rpi-cm3.dtb \
     \
     overlays/hifiberry-amp.dtbo \
     overlays/hifiberry-dac.dtbo \
Signature · 1 line
2.7.4
#4 lore raw

PATCH 5/5 README: Mention CM1 and CM3 support

In reply to Andrei Gherzan
---
 README | 2 ++
 1 file changed, 2 insertions(+)
README +2 -0
index a784890..65a1e5f 100644
@@ -79,6 +79,8 @@ c. Set MACHINE in local.conf to one of the supported boards:
     - raspberrypi0
     - raspberrypi2
     - raspberrypi3
+    - raspberrypi-cm (dummy alias for raspberrypi)
+    - raspberrypi-cm3 (dummy alias for raspberrypi2)
 d. bitbake rpi-hwup-image
 e. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
 f. Boot your RPI.
Signature · 1 line
2.7.4
#5 lore raw
In reply to Andrei Gherzan
Quoted 19 lines · Andrei Gherzan
---
 conf/machine/raspberrypi-cm.conf | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 conf/machine/raspberrypi-cm.conf
conf/machine/raspberrypi-cm.conf new file +6 -1
new file mode 100644
index 0000000..2da7d50
@@ -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
--
Quoted 2 lines

2.7.4

Merged the entire patch set in master.

--
Andrei Gherzan