]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ti_armv7_keystone2: env: Update UBIFS image paths
authorCarlos Hernandez <ceh@ti.com>
Wed, 9 Mar 2016 10:09:31 +0000 (15:39 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 16 Mar 2016 01:30:15 +0000 (21:30 -0400)
UBI images created by OE does not contain boot partition by default,
instead kernel and dtb are placed in /boot directory inside rootfs
partition. So update env commands to load files from correct
location.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/configs/ti_armv7_keystone2.h

index 8bdd2deb375d37bf749cb0eac16eb7c25300163b..0da084e638ccda7fc9aae9d84c9d7db06d7dde5e 100644 (file)
        DEFAULT_LINUX_BOOT_ENV                                          \
        CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS                             \
        "boot=ubi\0"                                                    \
+       "bootdir=/boot\0" \
        "tftp_root=/\0"                                                 \
        "nfs_root=/export\0"                                            \
        "mem_lpae=1\0"                                                  \
        "run_kern=bootz ${loadaddr} - ${fdtaddr}\0"                     \
        "init_net=run args_all args_net\0"                              \
        "init_ubi=run args_all args_ubi; "                              \
-               "ubi part ubifs; ubifsmount ubi:boot;"                  \
+               "ubi part ubifs; ubifsmount ubi:rootfs;"                        \
                "ubifsload ${addr_secdb_key} securedb.key.bin;\0"       \
        "get_fdt_net=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}\0"        \
-       "get_fdt_ubi=ubifsload ${fdtaddr} ${name_fdt}\0"                \
+       "get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}\0"             \
        "get_kern_net=dhcp ${loadaddr} ${tftp_root}/${name_kern}\0"     \
-       "get_kern_ubi=ubifsload ${loadaddr} ${name_kern}\0"             \
+       "get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}\0"          \
        "get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}\0"       \
-       "get_mon_ubi=ubifsload ${addr_mon} ${name_mon}\0"               \
+       "get_mon_ubi=ubifsload ${addr_mon} ${bootdir}/${name_mon}\0"            \
        "get_uboot_net=dhcp ${loadaddr} ${tftp_root}/${name_uboot}\0"   \
        "burn_uboot_spi=sf probe; sf erase 0 0x80000; "         \
                "sf write ${loadaddr} 0 ${filesize}\0"          \