aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-envtools
diff options
context:
space:
mode:
authorRobert Marko <robert.marko@sartura.hr>2022-03-28 14:26:47 +0200
committerChristian 'Ansuel' Marangi <ansuelsmth@gmail.com>2022-06-29 13:08:59 +0200
commit7f73acade0cde61341cb77e0dc74de51ac059d4f (patch)
tree9ef25f04b901607e11160faa13f411a86133c587 /package/boot/uboot-envtools
parente1223dbee332b89caf71850eb909104529595c31 (diff)
downloadupstream-7f73acade0cde61341cb77e0dc74de51ac059d4f.tar.gz
upstream-7f73acade0cde61341cb77e0dc74de51ac059d4f.tar.bz2
upstream-7f73acade0cde61341cb77e0dc74de51ac059d4f.zip
mvebu: update and refactor uDPU DTS
uDPU DTS has pending upstream fixups, so backport those as well as split the DTS into a DTSI and DTS in preparation for euroDPU support which uses uDPU as the base. Ethernet aliases have not yet been sent upstream but will be soon in order for U-boot to set the correct MAC on both ethernet interfaces instead of just one. Since U-boot environment now has its own partition, update the envtools config script to search for it instead. Patch hardcoding PHY mode is also not applicable anymore, so drop it and set in the uDPU DTS directly. Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Diffstat (limited to 'package/boot/uboot-envtools')
-rw-r--r--package/boot/uboot-envtools/files/mvebu5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/boot/uboot-envtools/files/mvebu b/package/boot/uboot-envtools/files/mvebu
index cffd396ae1..a90f74c517 100644
--- a/package/boot/uboot-envtools/files/mvebu
+++ b/package/boot/uboot-envtools/files/mvebu
@@ -59,7 +59,12 @@ linksys,wrt32x)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
;;
methode,udpu)
+ idx="$(find_mtd_index u-boot-env)"
+ if [ -n "$idx" ]; then
+ ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
+ else
ubootenv_add_uci_config "/dev/mtd0" "0x180000" "0x10000" "0x10000"
+ fi
;;
esac