On Mon, Jan 7, 2013 at 2:43 PM, Otavio Salvador <ota...@ossystems.com.br> wrote:

>         "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" 
> \
> +       "loadftd=fatload mmc ${mmcdev}:${mmcpart} ${ftd_addr} ${ftd_file}\0" \
>         "mmcboot=echo Booting from mmc ...; " \
>                 "run mmcargs; " \
> -               "bootm\0" \
> +               "if test ${boot_fdt} = yes; then " \
> +                       "if run loadfdt; then " \
> +                               "bootm ${loadaddr} - ${ftd_addr}; " \
> +                       "else " \
> +                               "if test ${boot_fdt} = try; then " \
> +                                       "bootm; " \
> +                               "else " \
> +                                       "echo ERROR: Cannot load the DT, 
> aborting...; " \
> +                                       "exit; " \

Current behavior is to try to load uImage from mmc first, if it fails
then it tries tftp.

Isn't this 'exit' that you introduced preventing tftp transfer in the
case of mmc fail?

Also, can you confirm that your patchset works in the following cases:

1. Loading a non-dt kernel via mmc
2. Loading a dt kernel via mmc
3. Loading a non-dt kernel via tftp
4. Loading a dt kernel via tftp
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to