mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-26 06:26:29 +00:00
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:
parent
8049dfb30c
commit
8d69f395c2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user