uboot-envtools: imx6: Add support for Toradex Apalis board family
authorPetr Štetiar <ynezz@true.cz>
Tue, 27 Nov 2018 20:22:41 +0000 (21:22 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 8 Apr 2019 16:37:03 +0000 (18:37 +0200)
This patch is needed in order to be able to use fw_{set,print}env
commands.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/boot/uboot-envtools/files/imx6

index fec8ce0aa4f558fc80d9ba2c4cd94e4528da2060..fb05f13346dc9a74d62208ee36f55807f367ab40 100644 (file)
@@ -7,12 +7,16 @@
 
 touch /etc/config/ubootenv
 
+. /lib/imx6.sh
 . /lib/uboot-envtools.sh
 . /lib/functions.sh
 
 board=$(board_name)
 
 case "$board" in
+apalis*)
+       ubootenv_add_uci_config $(bootdev_from_uuid)boot0 -0x2200 0x2000 0x200 10
+       ;;
 *gw5*)
        if [ -c /dev/mtd1 ]; then
                # board boots from NAND