[U-Boot] [PATCH] UBIFS: Change ubifsload to set the filesize variable

Wolfgang Denk wd at denx.de
Mon Sep 5 13:27:48 CEST 2011


Dear Bastian Ruppert,

In message <1315220629-9192-1-git-send-email-Bastian.Ruppert at Sewerin.de> you wrote:
> This is the same behaviour like tftp or fatload command.

> @@ -719,6 +720,9 @@ int ubifs_load(char *filename, u32 addr, u32 size)
>  	printf("Loading file '%s' to addr 0x%08x with size %d (0x%08x)...\n",
>  	       filename, addr, size, size);
>  
> +	sprintf(buf, "%lX", size);
> +	setenv("filesize", buf);
> +

Please insert this piece of code _after_ the file has successfully
been loaded to RAM (not before starting to load it).

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I wrote my name at the top of the page. I wrote down  the  number  of
the  question  ``1''.  After much reflection I put a bracket round it
thus ``(1)''. But thereafter I could not think of anything  connected
with it that was either relevant or true.
                        - Sir Winston Churchill _My Early Life_ ch. 2


More information about the U-Boot mailing list