Skip to content

Commit

Permalink
uboot-envtools: filogic: add support for BananaPi R4
Browse files Browse the repository at this point in the history
Add environment settings for the BananaPi BPI-R4 router board which
can boot from (and store its bootloader environment on) micro SD card,
SPI-NAND and eMMC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt committed Jan 16, 2024
1 parent b7657db commit 9411221
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package/boot/uboot-envtools/files/mediatek_filogic
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ bananapi,bpi-r3)
;;
esac
;;
bananapi,bpi-r4)
rootdisk="$(cat /sys/firmware/devicetree/base/chosen/rootdisk)"
rootdisk_nand="$(cat /sys/firmware/devicetree/base/chosen/rootdisk-spim-nand)"
if [ "$rootdisk" = "$rootdisk_nand" ]; then
ubootenv_add_ubi_default
else
local envdev=$(find_mmc_part "ubootenv" $rootdev)
ubootenv_add_uci_config "$envdev" "0x0" "0x40000" "0x40000" "1"
ubootenv_add_uci_config "$envdev" "0x40000" "0x40000" "0x40000" "1"
fi
;;
cmcc,rax3000m)
case "$(cmdline_get_var root)" in
/dev/mmc*)
Expand Down

0 comments on commit 9411221

Please sign in to comment.