uboot-envtools: add env settings for ubnt,unifi-6-lr-ubootmod
Add settings for fw_printenv/fw_setenv for the Ubiquiti UniFi 6 LR when running OpenWrt's version of U-Boot. The settings should work equally with the unmodified version, but that has not yet been tested. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
e9ad412049
commit
be41fd9489
@ -13,11 +13,11 @@ touch /etc/config/ubootenv
|
|||||||
board=$(board_name)
|
board=$(board_name)
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
"linksys,e8450-ubi")
|
linksys,e8450-ubi)
|
||||||
ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x1f000" "0x1f000" "1"
|
ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x1f000" "0x1f000" "1"
|
||||||
ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x1f000" "0x1f000" "1"
|
ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x1f000" "0x1f000" "1"
|
||||||
;;
|
;;
|
||||||
"bananapi,bpi-r64")
|
bananapi,bpi-r64)
|
||||||
. /lib/upgrade/platform.sh
|
. /lib/upgrade/platform.sh
|
||||||
local rootdev=$(get_rootdev)
|
local rootdev=$(get_rootdev)
|
||||||
local envdev=/dev/$(get_partition $rootdev ubootenv)
|
local envdev=/dev/$(get_partition $rootdev ubootenv)
|
||||||
@ -27,6 +27,9 @@ case "$board" in
|
|||||||
buffalo,wsr-2533dhp2)
|
buffalo,wsr-2533dhp2)
|
||||||
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x20000"
|
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x20000"
|
||||||
;;
|
;;
|
||||||
|
ubnt,unifi-6-lr-ubootmod)
|
||||||
|
ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x1000" "0x10000"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
config_load ubootenv
|
config_load ubootenv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user