Yes, you are right. I tested it and works.

Ack-by: Michal Simek <[EMAIL PROTECTED]>

WD: This is bug fix - can you please handle this bug directly to your tree.

Thanks,
Michal


> boot_get_ramdisk() should not treat the case when a FIT image does not 
> contain a
> ramdisk as an error.
> 
> Signed-off-by: Peter Tyser <[EMAIL PROTECTED]>
> ---
> The original code would not allow booting of a FIT image which didn't contain 
> a
> ramdisk.  The bug was observed and fixed on a powerpc 85xx system.
> 
>  common/image.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/common/image.c b/common/image.c
> index 535c302..c3545a7 100644
> --- a/common/image.c
> +++ b/common/image.c
> @@ -833,7 +833,7 @@ int boot_get_ramdisk (int argc, char *argv[],
> bootm_headers_t *images,
>                       rd_noffset = fit_conf_get_ramdisk_node (fit_hdr, 
> cfg_noffset);
>                       if (rd_noffset < 0) {
>                               debug ("*  ramdisk: no ramdisk in config\n");
> -                             return 1;
> +                             return 0;
>                       }
>               }
>  #endif
> -- 
> 1.5.4.3
> 
> 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to