mvebu: add fw_env.config for Turris Mox
Turris Mox stores the U-Boot environment in SPI NOR flash. Add the fw_env.config entry pointing to MTD partition 2 at offset 0x0 with 64 KiB env size and sector size, so userspace tools fw_printenv and fw_setenv work correctly on this board. Signed-off-by: Štěpán Dalecký <daleckystepan@gmail.com> Link: https://github.com/openwrt/openwrt/pull/23421 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
833c7c75a3
commit
937eee61cb
@ -21,6 +21,9 @@ checkpoint,v-80|\
|
|||||||
checkpoint,v-81)
|
checkpoint,v-81)
|
||||||
ubootenv_add_uci_config "/dev/mmcblk1boot0" "0x1f0000" "0x10000"
|
ubootenv_add_uci_config "/dev/mmcblk1boot0" "0x1f0000" "0x10000"
|
||||||
;;
|
;;
|
||||||
|
cznic,turris-mox)
|
||||||
|
ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x10000" "0x10000"
|
||||||
|
;;
|
||||||
cznic,turris-omnia)
|
cznic,turris-omnia)
|
||||||
idx="$(find_mtd_index u-boot-env)"
|
idx="$(find_mtd_index u-boot-env)"
|
||||||
if [ -n "$idx" ]; then
|
if [ -n "$idx" ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user