]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ventana: set dtype env var to boot media
authorTim Harvey <tharvey@gateworks.com>
Sat, 9 May 2015 01:28:24 +0000 (18:28 -0700)
committerStefano Babic <sbabic@denx.de>
Fri, 15 May 2015 17:21:24 +0000 (19:21 +0200)
Bootscripts for some distro's such as Android can benefit from knowing
what boot media its script was loaded from.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
include/configs/gw_ventana.h

index fcfc1b36039fd223cacec537cb7c9cf45076622f..9a146c204e9385edbb33df91857f95a77b1fe1e4 100644 (file)
        "mmc_boot=" \
                "setenv fsload 'ext2load mmc 0:1'; " \
                "mmc dev 0 && mmc rescan && " \
-               "run loadscript; " \
+               "setenv dtype mmc; run loadscript; " \
                "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then " \
                        "setenv bootargs console=${console},${baudrate} " \
                                "root=/dev/mmcblk0p1 rootfstype=ext4 " \
        \
        "sata_boot=" \
                "setenv fsload 'ext2load sata 0:1'; sata init && " \
-               "run loadscript; " \
+               "setenv dtype sata; run loadscript; " \
                "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then " \
                        "setenv bootargs console=${console},${baudrate} " \
                                "root=/dev/sda1 rootfstype=ext4 " \
                "fi\0" \
        "usb_boot=" \
                "setenv fsload 'ext2load usb 0:1'; usb start && usb dev 0 && " \
-               "run loadscript; " \
+               "setenv dtype usb; run loadscript; " \
                "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then " \
                        "setenv bootargs console=${console},${baudrate} " \
                                "root=/dev/sda1 rootfstype=ext4 " \
                        "setenv root ubi0:rootfs ubi.mtd=2 " \
                                "rootfstype=ubifs; " \
                "fi; " \
-               "run loadscript; " \
+               "setenv dtype nand; run loadscript; " \
                "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then " \
                        "setenv bootargs console=${console},${baudrate} " \
                                "root=${root} ${video} ${extra}; " \