From: Wolfgang Denk Date: Mon, 05 Sep 2011 13:27:48 +0200 Subject: [U-Boot] [PATCH] UBIFS: Change ubifsload to set the filesize variable In-Reply-To: <1315220629-9192-1-git-send-email-Bastian.Ruppert@Sewerin.de> References: <1315220629-9192-1-git-send-email-Bastian.Ruppert@Sewerin.de> Message-ID: <20110905112748.40B21158D104@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Bastian Ruppert, In message <1315220629-9192-1-git-send-email-Bastian.Ruppert@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