package/rpi-firmware: bump version for pi4 support
PATCH v2 1/4 package/rpi-firmware: bump version for pi4 support
This commit pulls in the latest version of rpi-firmware to enable support for the new Pi4
Additionally, it copies the RPi4 start files if selected.
---
Changes V1 -> V2:
* reworked boot file installation to properly install the pi4 files and only the pi4 files
--- package/rpi-firmware/Config.in | 31 ++++++++++++++++++++++++-- package/rpi-firmware/rpi-firmware.hash | 2 +- package/rpi-firmware/rpi-firmware.mk | 10 ++++++--- 3 files changed, 37 insertions(+), 6 deletions(-)
package/rpi-firmware/Config.in +29 -2
@@ -11,6 +11,26 @@ config BR2_PACKAGE_RPI_FIRMWARE if BR2_PACKAGE_RPI_FIRMWARE +choice + bool "Boot Files to Install" + default BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI + help + The Raspberry Pi 4 introduced a slightly different + naming convention and set of boot files. This option + selects which format to install. + +config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI + bool "Pi 1/2/3" + help + The default set of files, for versions pre-4 + +config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4 + bool "Pi 4" + help + The Raspberry Pi 4 boot files + +endchoice + choice bool "Firmware to boot" default BR2_PACKAGE_RPI_FIRMWARE_DEFAULT
@@ -45,8 +65,15 @@ endchoice config BR2_PACKAGE_RPI_FIRMWARE_BOOT string default "" if BR2_PACKAGE_RPI_FIRMWARE_DEFAULT - default "_x" if BR2_PACKAGE_RPI_FIRMWARE_X - default "_cd" if BR2_PACKAGE_RPI_FIRMWARE_CD + default "_x" if BR2_PACKAGE_RPI_FIRMWARE_X && BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI + default "x" if BR2_PACKAGE_RPI_FIRMWARE_X && BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4 + default "_cd" if BR2_PACKAGE_RPI_FIRMWARE_CD && BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI + default "cd" if BR2_PACKAGE_RPI_FIRMWARE_CD && BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4 + +config BR2_PACKAGE_RPI_FIRMWARE_BOOT_SUFFIX + string + default "" if BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI + default "4" if BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4 config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS bool "Install Device Tree Blobs (DTBs)"
package/rpi-firmware/rpi-firmware.hash +1 -1
@@ -1,2 +1,2 @@ # Locally computed -sha256 e911f6342ea8aa9380cae97c6f5ac4ddd370527265f23d5b5d4b2c6f679d4ba8 rpi-firmware-ebf7b40cdc6effe7ffa3fd5195e8be01b94f80da.tar.gz +sha256 c82c40cf37fac36160a7f6b9c314506beb942bf113a55d30fa163c56a4f98946 rpi-firmware-bcf40b5c2b94178c7564fb451098d44968e44af5.tar.gz
package/rpi-firmware/rpi-firmware.mk +7 -3
@@ -4,7 +4,7 @@ # ################################################################################ -RPI_FIRMWARE_VERSION = ebf7b40cdc6effe7ffa3fd5195e8be01b94f80da +RPI_FIRMWARE_VERSION = bcf40b5c2b94178c7564fb451098d44968e44af5 RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION)) RPI_FIRMWARE_LICENSE = BSD-3-Clause RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom
@@ -43,8 +43,12 @@ endif # INSTALL_VCDBG define RPI_FIRMWARE_INSTALL_IMAGES_CMDS $(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin - $(INSTALL) -D -m 0644 $(@D)/boot/start$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).elf $(BINARIES_DIR)/rpi-firmware/start.elf - $(INSTALL) -D -m 0644 $(@D)/boot/fixup$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).dat $(BINARIES_DIR)/rpi-firmware/fixup.dat + $(INSTALL) -D -m 0644 \ + $(@D)/boot/start$(BR2_PACKAGE_RPI_FIRMWARE_BOOT_SUFFIX)$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).elf \ + $(BINARIES_DIR)/rpi-firmware/start$(BR2_PACKAGE_RPI_FIRMWARE_BOOT_SUFFIX).elf + $(INSTALL) -D -m 0644 \ + $(@D)/boot/fixup$(BR2_PACKAGE_RPI_FIRMWARE_BOOT_SUFFIX)$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).dat \ + $(BINARIES_DIR)/rpi-firmware/fixup$(BR2_PACKAGE_RPI_FIRMWARE_BOOT_SUFFIX).dat $(INSTALL) -D -m 0644 package/rpi-firmware/config.txt $(BINARIES_DIR)/rpi-firmware/config.txt $(INSTALL) -D -m 0644 package/rpi-firmware/cmdline.txt $(BINARIES_DIR)/rpi-firmware/cmdline.txt $(RPI_FIRMWARE_INSTALL_DTB)
Signature · 1 line
2.21.0
PATCH v2 2/4 board/raspberrypi: add support for the new pi4
This is based on the pi3 defconfig. There is currently no 64-bit support since the upstream kernel does not build in this configuration.
---
V1 -> V2 Diff:
* Fixed various mistakes in the readme file
* Reverted a change (WRT the pi3 config) of the boot filesystem size
- this was changed while I was testing and I forgot to change it back
* Stripped down boot partition to necessary files
- Specifically, removed the start.elf and fixup.dat files for other versions
--- board/raspberrypi/genimage-raspberrypi4.cfg | 30 ++++++++++++++++ board/raspberrypi/readme.txt | 8 ++++- board/raspberrypi4 | 1 + configs/raspberrypi4_defconfig | 38 +++++++++++++++++++++ 4 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 board/raspberrypi/genimage-raspberrypi4.cfg create mode 120000 board/raspberrypi4 create mode 100644 configs/raspberrypi4_defconfig
board/raspberrypi/genimage-raspberrypi4.cfg new file +30 -0
@@ -0,0 +1,30 @@ +image boot.vfat { + vfat { + files = { + "bcm2711-rpi-4-b.dtb", + "rpi-firmware/cmdline.txt", + "rpi-firmware/config.txt", + "rpi-firmware/fixup4.dat", + "rpi-firmware/start4.elf", + "rpi-firmware/overlays", + "zImage" + } + } + size = 32M +} + +image sdcard.img { + hdimage { + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +}
board/raspberrypi/readme.txt +7 -1
@@ -8,6 +8,7 @@ These instructions apply to all models of the Raspberry Pi: - the "enhanced" models A+ and B+, - the model B2 (aka Raspberry Pi 2) - the model B3 (aka Raspberry Pi 3). + - the model B4 (aka Raspberry Pi 4). How to build it ===============
@@ -34,6 +35,10 @@ For model 3 B and B+: $ make raspberrypi3_defconfig +For model 4 B: + + $ make raspberrypi4_defconfig + Build the rootfs ----------------
@@ -57,6 +62,7 @@ After building, you should obtain this tree: +-- bcm2709-rpi-2-b.dtb [1] +-- bcm2710-rpi-3-b.dtb [1] +-- bcm2710-rpi-3-b-plus.dtb [1] + +-- bcm2711-rpi-4-b.dtb [1] +-- boot.vfat +-- rootfs.ext4 +-- rpi-firmware/
@@ -72,7 +78,7 @@ After building, you should obtain this tree: [1] Not all of them will be present, depending on the RaspberryPi model you are using. -[2] Only for the Raspberry Pi 3 Model (overlay pi3-miniuart-bt is needed +[2] Only for the Raspberry Pi 3/4 Models (overlay pi3-miniuart-bt is needed to enable the RPi3 serial console otherwise occupied by the bluetooth chip). Alternative would be to disable the serial console in cmdline.txt and /etc/inittab.
board/raspberrypi4 new file +1 -0
@@ -0,0 +1 @@ +raspberrypi
configs/raspberrypi4_defconfig new file +38 -0
@@ -0,0 +1,38 @@ +BR2_arm=y +BR2_cortex_a72=y +BR2_ARM_FPU_NEON_VFPV4=y + +BR2_TOOLCHAIN_BUILDROOT_CXX=y + +BR2_SYSTEM_DHCP="eth0" + +# Linux headers same as kernel, a 4.19 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,eb0360356344d8ba633e61936c794aa46a02397f)/linux-eb0360356344d8ba633e61936c794aa46a02397f.tar.gz" +BR2_LINUX_KERNEL_DEFCONFIG="bcm2711" + +# Build the DTB from the kernel sources +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2711-rpi-4-b" + +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y + +BR2_PACKAGE_RPI_FIRMWARE=y +BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4=y + +# Required tools to create the SD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y + +# Filesystem / image +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi4/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi4/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
Signature · 1 line
2.21.0
PATCH v2 2/4 board/raspberrypi: add support for the new pi4
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Michael" == Michael Cullen <[email protected]> writes:
This is based on the pi3 defconfig. There is currently no 64-bit support since the upstream kernel does not build in this configuration.
Signed-off-by Michael Cullen <[email protected]>
Quoted 7 lines
---
V1 -> V2 Diff:
* Fixed various mistakes in the readme file
* Reverted a change (WRT the pi3 config) of the boot filesystem size
- this was changed while I was testing and I forgot to change it back
* Stripped down boot partition to necessary files
- Specifically, removed the start.elf and fixup.dat files for other versions
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 3/4 package/rpi-bt-firmware: bump to latest version
In reply to Michael CullenIncludes the newest firmware as shipped by Raspbian Buster, the Raspbian release designed for the Pi4
--- package/rpi-bt-firmware/rpi-bt-firmware.hash | 2 +- package/rpi-bt-firmware/rpi-bt-firmware.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/rpi-bt-firmware/rpi-bt-firmware.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed -sha256 155ebd5f08b819e0ce4e1950fcc972b2086cee3c16d36aba348beba1910c1fd2 rpi-bt-firmware-8c1e2bff1da9850f68efcfff3da5d939ec27a2ee.tar.gz +sha256 51a33d23127300dffd6ac088f372b83ab862053f5e4dc7130676ebaaa824e626 rpi-bt-firmware-688531da4bcf802a814d9cb0c8b6d62e3b8a3327.tar.gz sha256 b16056fc91b82a0e3e8de8f86c2dac98201aa9dc3cbd33e8d38f1b087fcec30d LICENCE.broadcom_bcm43xx
package/rpi-bt-firmware/rpi-bt-firmware.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -RPI_BT_FIRMWARE_VERSION = 8c1e2bff1da9850f68efcfff3da5d939ec27a2ee +RPI_BT_FIRMWARE_VERSION = 688531da4bcf802a814d9cb0c8b6d62e3b8a3327 RPI_BT_FIRMWARE_SITE = $(call github,LibreELEC,brcmfmac_sdio-firmware-rpi,$(RPI_BT_FIRMWARE_VERSION)) RPI_BT_FIRMWARE_LICENSE = PROPRIETARY RPI_BT_FIRMWARE_LICENSE_FILES = LICENCE.broadcom_bcm43xx
Signature · 1 line
2.21.0
PATCH v2 3/4 package/rpi-bt-firmware: bump to latest version
Oops - forgot the signoff on the last two
Quoted 3 lines · Michael Cullen
Includes the newest firmware as shipped by Raspbian Buster, the Raspbian release designed for the Pi4
Quoted 41 lines
--- package/rpi-bt-firmware/rpi-bt-firmware.hash | 2 +- package/rpi-bt-firmware/rpi-bt-firmware.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)package/rpi-bt-firmware/rpi-bt-firmware.hash +0
-1@@ -1,3 +1,3 @@ # Locally computed -sha256
155ebd5f08b819e0ce4e1950fcc972b2086cee3c16d36aba348beba1910c1fd2rpi-bt-firmware-8c1e2bff1da9850f68efcfff3da5d939ec27a2ee.tar.gz +sha25651a33d23127300dffd6ac088f372b83ab862053f5e4dc7130676ebaaa824e626rpi-bt-firmware-688531da4bcf802a814d9cb0c8b6d62e3b8a3327.tar.gz
sha256b16056fc91b82a0e3e8de8f86c2dac98201aa9dc3cbd33e8d38f1b087fcec30dLICENCE.broadcom_bcm43xxpackage/rpi-bt-firmware/rpi-bt-firmware.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -RPI_BT_FIRMWARE_VERSION = 8c1e2bff1da9850f68efcfff3da5d939ec27a2ee +RPI_BT_FIRMWARE_VERSION = 688531da4bcf802a814d9cb0c8b6d62e3b8a3327 RPI_BT_FIRMWARE_SITE = $(call github,LibreELEC,brcmfmac_sdio-firmware-rpi,$(RPI_BT_FIRMWARE_VERSION))
RPI_BT_FIRMWARE_LICENSE= PROPRIETARYRPI_BT_FIRMWARE_LICENSE_FILES= LICENCE.broadcom_bcm43xxSignature · 1 line
2.21.0
PATCH v2 3/4 package/rpi-bt-firmware: bump to latest version
In reply to Michael CullenQuoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Michael" == Michael Cullen <[email protected]> writes:
Includes the newest firmware as shipped by Raspbian Buster, the Raspbian release designed for the Pi4
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 4/4 package/rpi-wifi-firmware: bump to the latest version
In reply to Michael CullenIncludes the newest firmware as shipped by Raspbian Buster, the Raspbian release designed for the Pi4
--- package/rpi-wifi-firmware/rpi-wifi-firmware.hash | 2 +- package/rpi-wifi-firmware/rpi-wifi-firmware.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/rpi-wifi-firmware/rpi-wifi-firmware.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 155ebd5f08b819e0ce4e1950fcc972b2086cee3c16d36aba348beba1910c1fd2 rpi-wifi-firmware-8c1e2bff1da9850f68efcfff3da5d939ec27a2ee.tar.gz +sha256 51a33d23127300dffd6ac088f372b83ab862053f5e4dc7130676ebaaa824e626 rpi-wifi-firmware-688531da4bcf802a814d9cb0c8b6d62e3b8a3327.tar.gz sha256 b16056fc91b82a0e3e8de8f86c2dac98201aa9dc3cbd33e8d38f1b087fcec30d LICENCE.broadcom_bcm43xx
package/rpi-wifi-firmware/rpi-wifi-firmware.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -RPI_WIFI_FIRMWARE_VERSION = 8c1e2bff1da9850f68efcfff3da5d939ec27a2ee +RPI_WIFI_FIRMWARE_VERSION = 688531da4bcf802a814d9cb0c8b6d62e3b8a3327 RPI_WIFI_FIRMWARE_SITE = $(call github,LibreELEC,brcmfmac_sdio-firmware-rpi,$(RPI_WIFI_FIRMWARE_VERSION)) RPI_WIFI_FIRMWARE_LICENSE = PROPRIETARY RPI_WIFI_FIRMWARE_LICENSE_FILES = LICENCE.broadcom_bcm43xx
Signature · 1 line
2.21.0
PATCH v2 4/4 package/rpi-wifi-firmware: bump to the latest version
Forgot the signoff
Quoted 3 lines · Michael Cullen
Includes the newest firmware as shipped by Raspbian Buster, the Raspbian release designed for the Pi4
Quoted 41 lines
--- package/rpi-wifi-firmware/rpi-wifi-firmware.hash | 2 +- package/rpi-wifi-firmware/rpi-wifi-firmware.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)package/rpi-wifi-firmware/rpi-wifi-firmware.hash +0
-1@@ -1,3 +1,3 @@ # Locally calculated -sha256
155ebd5f08b819e0ce4e1950fcc972b2086cee3c16d36aba348beba1910c1fd2rpi-wifi-firmware-8c1e2bff1da9850f68efcfff3da5d939ec27a2ee.tar.gz +sha25651a33d23127300dffd6ac088f372b83ab862053f5e4dc7130676ebaaa824e626rpi-wifi-firmware-688531da4bcf802a814d9cb0c8b6d62e3b8a3327.tar.gz
sha256b16056fc91b82a0e3e8de8f86c2dac98201aa9dc3cbd33e8d38f1b087fcec30dLICENCE.broadcom_bcm43xxpackage/rpi-wifi-firmware/rpi-wifi-firmware.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -RPI_WIFI_FIRMWARE_VERSION = 8c1e2bff1da9850f68efcfff3da5d939ec27a2ee +RPI_WIFI_FIRMWARE_VERSION = 688531da4bcf802a814d9cb0c8b6d62e3b8a3327 RPI_WIFI_FIRMWARE_SITE = $(call github,LibreELEC,brcmfmac_sdio-firmware-rpi,$(RPI_WIFI_FIRMWARE_VERSION))
RPI_WIFI_FIRMWARE_LICENSE= PROPRIETARYRPI_WIFI_FIRMWARE_LICENSE_FILES= LICENCE.broadcom_bcm43xxSignature · 1 line
2.21.0
PATCH v2 4/4 package/rpi-wifi-firmware: bump to the latest version
In reply to Michael CullenQuoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Michael" == Michael Cullen <[email protected]> writes:
Includes the newest firmware as shipped by Raspbian Buster, the Raspbian release designed for the Pi4
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 1/4 package/rpi-firmware: bump version for pi4 support
In reply to Michael CullenQuoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Michael" == Michael Cullen <[email protected]> writes:
This commit pulls in the latest version of rpi-firmware to enable support for the new Pi4
Quoted 8 lines
Additionally, it copies the RPi4 start files if selected.
Signed-off-by Michael Cullen <[email protected]>---
Changes V1 -> V2:
* reworked boot file installation to properly install the pi4 files and only the pi4 files
Committed with some minor rewording / rework, thanks.
Signature · 1 line
Bye, Peter Korsgaard