Support board specific RPi firmware configuration (#1567)

Support optional board specific default RPi firmware configuration file
(config.txt). Also rename from boot-env.txt to config.txt since this
file is not read by the U-Boot boot loader but the Raspberry Pi specific
boot firmware.
This commit is contained in:
Stefan Agner 2021-10-04 11:51:31 +02:00 committed by GitHub
parent 8049dfb30c
commit 8d69f395c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,12 @@ function hassos_pre_image() {
"${BINARIES_DIR}/boot.scr"
cp "${BINARIES_DIR}"/*.dtb "${BOOT_DATA}/"
cp -r "${BINARIES_DIR}/rpi-firmware/"* "${BOOT_DATA}/"
cp "${BOARD_DIR}/../boot-env.txt" "${BOOT_DATA}/config.txt"
if [ -f "${BOARD_DIR}/config.txt" ]; then
cp "${BOARD_DIR}/config.txt" "${BOOT_DATA}/config.txt"
else
cp "${BOARD_DIR}/../config.txt" "${BOOT_DATA}/config.txt"
fi
cp "${BOARD_DIR}/../config.txt" "${BOOT_DATA}/config.txt"
cp "${BINARIES_DIR}"/*.dtbo "${BOOT_DATA}/overlays/"
# EEPROM update for Raspberry Pi 4/Compute Module 4