OrangePi-RV2: script for armbian-install to write boot cfg to MTD flash

Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
This commit is contained in:
Sven-Ola Tuecke 2026-01-12 22:05:14 +01:00 committed by c0rnelius
parent ea961653d5
commit 0aad47f00e
2 changed files with 22 additions and 0 deletions

View File

@ -9,3 +9,14 @@ BOOTDELAY=1
SRC_EXTLINUX="yes"
SRC_CMDLINE="earlycon=sbi console=tty1 console=ttyS0,115200 loglevel=1"
PACKAGE_LIST_BOARD=""
write_uboot_platform_mtd() {
if [ -b /dev/mtdblock0 ]; then
dd if="${1}/bootinfo_spinor.bin" of=/dev/mtdblock0 bs=65536 status=none;
dd if="${1}/FSBL.bin" of=/dev/mtdblock2 bs=65536 status=none;
dd if="${1}/u-boot-env-default.bin" of=/dev/mtdblock3 bs=65536 status=none;
dd if="${1}/fw_dynamic.itb" of=/dev/mtdblock4 bs=65536 status=none;
dd if="${1}/u-boot.itb" of=/dev/mtdblock5 bs=65536 status=none;
sync
fi
}

View File

@ -10,6 +10,17 @@ SRC_EXTLINUX="yes"
SRC_CMDLINE="earlycon=sbi console=tty1 console=ttyS0,115200 loglevel=1"
PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools pciutils"
write_uboot_platform_mtd() {
if [ -b /dev/mtdblock0 ]; then
dd if="${1}/bootinfo_spinor.bin" of=/dev/mtdblock0 bs=65536 status=none;
dd if="${1}/FSBL.bin" of=/dev/mtdblock2 bs=65536 status=none;
dd if="${1}/u-boot-env-default.bin" of=/dev/mtdblock3 bs=65536 status=none;
dd if="${1}/fw_dynamic.itb" of=/dev/mtdblock4 bs=65536 status=none;
dd if="${1}/u-boot.itb" of=/dev/mtdblock5 bs=65536 status=none;
sync
fi
}
function post_family_tweaks_bsp__orangepirv2_wifi() {
display_alert "$BOARD" "Force load bmcdhd wireless" "info"
run_host_command_logged mkdir -pv "${destination}"/etc/modules-load.d