mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 07:34:40 +01:00
uboot-envtools: add support for Gateworks venice
Some checks failed
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Some checks failed
Build all core packages / Build all core packages for selected target (push) Has been cancelled
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@gateworks.com>
Link: https://github.com/openwrt/openwrt/pull/19347
(cherry picked from commit 29f7c0ef97)
Link: https://github.com/openwrt/openwrt/pull/19437
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
1034594ded
commit
791c0ad7c4
1 changed files with 21 additions and 0 deletions
21
package/boot/uboot-envtools/files/imx_cortexa53
Normal file
21
package/boot/uboot-envtools/files/imx_cortexa53
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue