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:
parent
ea961653d5
commit
0aad47f00e
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user