Skip to content

Commit

Permalink
feat: add generic rpi_arm64_defconfig configuration
Browse files Browse the repository at this point in the history
This commit adds the u-boot configuration for building
u-boot for generic arm64 Raspberry Pi models. The config
uses the device-tree provided by the firmware rather
than embedding one; it's the only configuration that
lists Compute Module 4 support.

Ref: https://github.com/u-boot/u-boot/blob/master/doc/board/broadcom/raspberrypi.rst

Signed-off-by: Kris Reeves <kris@pressbuttonllc.com>
Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
myndzi authored and frezbo committed Sep 26, 2022
1 parent ed269ca commit 39c0d43
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions u-boot/pkg.yaml
Expand Up @@ -33,6 +33,7 @@ steps:
LIBRETECH_ALL_H3_CC_H5_U_BOOT: libretech_all_h3_cc_h5_u-boot
ROCK64_RK3328_U_BOOT: rock64_rk3328_u-boot
RPI_ARM64_U_BOOT: rpi_4_u-boot
RPI_ARM64_GENERIC_U_BOOT: rpi_generic_u-boot
BANANAPI_M64_U_BOOT: bananapi_m64_u-boot
PINE64_U_BOOT: pine64_u-boot
ROCK_PI_4_RK3399_U_BOOT: rock-pi-4-rk3399_u-boot
Expand Down Expand Up @@ -82,6 +83,13 @@ steps:
cd ${RPI_ARM64_U_BOOT}
make rpi_4_defconfig
sed -i "s/CONFIG_TOOLS_LIBCRYPTO=y/# CONFIG_TOOLS_LIBCRYPTO is not set/" .config
# rpi_generic (built with rpi_arm64_defconfig, which "uses the device-tree provided by the firmware")
- |
mkdir ${RPI_ARM64_GENERIC_U_BOOT}
tar -xjf u-boot.tar.bz2 --strip-components=1 -C ${RPI_ARM64_GENERIC_U_BOOT}
cd ${RPI_ARM64_GENERIC_U_BOOT}
make rpi_arm64_defconfig
sed -i "s/CONFIG_TOOLS_LIBCRYPTO=y/# CONFIG_TOOLS_LIBCRYPTO is not set/" .config
# bananapi_m64
- |
mkdir ${BANANAPI_M64_U_BOOT}
Expand Down Expand Up @@ -181,6 +189,10 @@ steps:
cd ${RPI_ARM64_U_BOOT}
export BL31=$(pwd)/${RPI_4_A64_ARM_TRUSTED_FIRMWARE}/build/rpi4/release/bl31.bin
make -j $(nproc) HOSTLDLIBS_mkimage="-lssl -lcrypto"
# rpi_generic
- |
cd ${RPI_ARM64_GENERIC_U_BOOT}
make -j $(nproc) HOSTLDLIBS_mkimage="-lssl -lcrypto"
# bananapi_m64
- |
export BL31=$(pwd)/${SUN50I_A64_ARM_TRUSTED_FIRMWARE}/build/sun50i_a64/release/bl31.bin
Expand Down Expand Up @@ -238,6 +250,10 @@ steps:
mkdir -p /rootfs/rpi_4
cp -v ${RPI_ARM64_U_BOOT}/u-boot.bin /rootfs/rpi_4
cp $(pwd)/${RPI_4_A64_ARM_TRUSTED_FIRMWARE}/build/rpi4/release/bl31.bin /rootfs/rpi_4
# rpi_generic
- |
mkdir -p /rootfs/rpi_generic
cp -v ${RPI_ARM64_GENERIC_U_BOOT}/u-boot.bin /rootfs/rpi_generic/u-boot.bin
# bananapi_m64
- |
mkdir -p /rootfs/bananapi_m64
Expand Down

0 comments on commit 39c0d43

Please sign in to comment.