]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ti_armv7_common: env: Use args_mmc in FIT loading path
authorAndrew F. Davis <afd@ti.com>
Fri, 10 Mar 2017 21:53:54 +0000 (15:53 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 8 Apr 2017 13:26:49 +0000 (09:26 -0400)
The env command 'args_fit' does not define a root path, this forces us to
embed the rootfs into the FIT image. FIT images do not need to contain a
rootfs, when they do not the kernel will fall-back to the kernel argument
'root', if this is not defined the kernel will not boot. It is safe to
add this as when we do have the rootfs in FIT this argument is ignored.
As 'loadfit' is only called from the MMC boot path, use 'args_mmc' to
correctly populate 'bootargs'.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
include/configs/ti_armv7_common.h

index a4ec4ce00a88fff3bb3e88ac8cfb0c7aa9ee9145..b2950efd47dbab29de246f476673dccd946a9e96 100644 (file)
        "fit_loadaddr=0x88000000\0" \
        "fit_bootfile=fitImage.itb\0" \
        "update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}\0" \
-       "args_fit=setenv bootargs console=${console} \0" \
-       "loadfit=run args_fit; bootm ${loadaddr}#${fdtfile};\0" \
+       "loadfit=run args_mmc; bootm ${loadaddr}#${fdtfile};\0" \
 
 /*
  * DDR information.  If the CONFIG_NR_DRAM_BANKS is not defined,