[U-Boot-Users] [PATCH] Fix return value of reiserload

ito at mlb.co.jp ito at mlb.co.jp
Tue Apr 4 09:27:37 CEST 2006


From: ito at mlb.co.jp
Subject: [U-Boot-Users] [PATCH] Fix return value of ext2load
> I like to do 
> 
>  if ext2load ide 0 80400000 $bootfile; then bootm; fi
> 
> but the return value of ext2load is always false.

same bug is in reiserload.
and default value of patition no is set to 1.
which value is same as ext2load.
--------
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_reiser.c b/common/cmd_reiser.c
index 508ffcb..048901f 100644
--- a/common/cmd_reiser.c
+++ b/common/cmd_reiser.c
@@ -150,7 +150,7 @@ int do_reiserload (cmd_tbl_t *cmdtp, int
 {
 	char *filename = NULL;
 	char *ep;
-	int dev, part = 0;
+	int dev, part = 1;
 	ulong addr = 0, part_length, filelen;
 	disk_partition_t info;
 	block_dev_desc_t *dev_desc = NULL;
@@ -263,7 +263,7 @@ int do_reiserload (cmd_tbl_t *cmdtp, int
 	sprintf(buf, "%lX", filelen);
 	setenv("filesize", buf);
 
-	return filelen;
+	return 0;
 }
 
 U_BOOT_CMD(


More information about the U-Boot mailing list