[openwrt/openwrt] uboot-envtools: imx: cortexa7: add TechNexion PICO-PI-IMX7D
LEDE Commits
lede-commits at lists.infradead.org
Mon Jul 11 05:32:04 PDT 2022
pepe2k pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e62f1388c30efbe697c108064942ccb29b0805b3
commit e62f1388c30efbe697c108064942ccb29b0805b3
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Sun Apr 24 14:16:19 2022 +0200
uboot-envtools: imx: cortexa7: add TechNexion PICO-PI-IMX7D
Add configuration for upstream U-Boot environment for booting from eMMC.
Signed-off-by: Lech Perczak <lech.perczak at gmail.com>
---
package/boot/uboot-envtools/files/imx_cortexa7 | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/package/boot/uboot-envtools/files/imx_cortexa7 b/package/boot/uboot-envtools/files/imx_cortexa7
new file mode 100644
index 0000000000..df6a436260
--- /dev/null
+++ b/package/boot/uboot-envtools/files/imx_cortexa7
@@ -0,0 +1,19 @@
+[ -e /etc/config/ubootenv ] && exit 0
+
+touch /etc/config/ubootenv
+
+. /lib/uboot-envtools.sh
+. /lib/functions.sh
+
+board=$(board_name)
+
+case "$board" in
+technexion,imx7d-pico-pi)
+ ubootenv_add_uci_config "/dev/mmcblk2" "0xc0000" "0x2000" "0x2000"
+ ;;
+esac
+
+config_load ubootenv
+config_foreach ubootenv_add_app_config ubootenv
+
+exit 0
More information about the lede-commits
mailing list