From: ito at mlb.co.jp Date: Tue, 04 Apr 2006 16:17:12 +0900 (JST) Subject: [U-Boot-Users] [PATCH] Fix return value of ext2load In-Reply-To: <20060404.160545.59656825.ito@mlb.co.jp> References: <20060404.160545.59656825.ito@mlb.co.jp> Message-ID: <20060404.161712.21931753.ito@mlb.co.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Sorry, I attached wrong patch. it should not apply. Here is a correct patch. -------- Hiroshi Ito Media Lab. Inc., URL http://www.mlb.co.jp ( Sorry, Japanese only. ) TEL +81-3-5294-7255 FAX +81-3-5294-7256 From: ito@mlb.co.jp Subject: [U-Boot-Users] [PATCH] Fix return value of ext2load Date: Tue, 04 Apr 2006 16:05:45 +0900 (JST) Message-Id: <20060404.160545.59656825.ito@mlb.co.jp> > Hello > > I like to do > > if ext2load ide 0 80400000 $bootfile; then bootm; fi > > but the return value of ext2load is always false. > > Please consider to merge. > Patch is attched. > -------- > Hiroshi Ito > Media Lab. Inc., > URL http://www.mlb.co.jp ( Sorry, Japanese only. ) > TEL +81-3-5294-7255 FAX +81-3-5294-7256 -------------- next part -------------- diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c index 5db42f2..36b0678 100644 --- a/common/cmd_ext2.c +++ b/common/cmd_ext2.c @@ -283,7 +283,7 @@ int do_ext2load (cmd_tbl_t *cmdtp, int f sprintf(buf, "%lX", filelen); setenv("filesize", buf); - return(filelen); + return(0); } U_BOOT_CMD(