[openwrt/openwrt] uboot-envtools: add support for Gateworks venice
LEDE Commits
lede-commits at lists.infradead.org
Sat Jul 19 09:32:14 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/791c0ad7c4b3ec74e8173e5c8552a328420f8eea
commit 791c0ad7c4b3ec74e8173e5c8552a328420f8eea
Author: Tim Harvey <tharvey at gateworks.com>
AuthorDate: Wed Jul 16 09:09:34 2025 -0700
uboot-envtools: add support for Gateworks venice
Add uboot-envtools support for Gateworks venice boards based on i.MX8M
SoC's (imx_cortexa53) which boot from and store their U-Boot env on
eMMC boot0 hardware partition.
Signed-off-by: Tim Harvey <tharvey at gateworks.com>
Link: https://github.com/openwrt/openwrt/pull/19347
(cherry picked from commit 29f7c0ef977f03c32ebc5031cc1cda75b6fa2268)
Link: https://github.com/openwrt/openwrt/pull/19437
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/boot/uboot-envtools/files/imx_cortexa53 | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/package/boot/uboot-envtools/files/imx_cortexa53 b/package/boot/uboot-envtools/files/imx_cortexa53
new file mode 100644
index 0000000000..6aad4ce867
--- /dev/null
+++ b/package/boot/uboot-envtools/files/imx_cortexa53
@@ -0,0 +1,21 @@
+[ -e /etc/config/ubootenv ] && exit 0
+
+touch /etc/config/ubootenv
+
+. /lib/uboot-envtools.sh
+. /lib/functions.sh
+
+board=$(board_name)
+
+case "$board" in
+gw,imx8m*|\
+gateworks,imx8m*)
+ # board boots from emmc boot0 hardware partition
+ ubootenv_add_uci_config /dev/mmcblk2boot0 0x3f0000 0x8000
+ ubootenv_add_uci_config /dev/mmcblk2boot0 0x3f8000 0x8000
+esac
+
+config_load ubootenv
+config_foreach ubootenv_add_app_config ubootenv
+
+exit 0
More information about the lede-commits
mailing list