Here is the tarball I have that I believe should be the PPV4 U-Boot:
http://us.mirror.archlinuxarm.org/mirro ... ot.tar.bz2I can't find my changes anywhere anymore (it was a long time ago), but the extent of changes was basically to re-enable commands that were inexplicably missing from the stock build (USB or IDE or both?) and also to patch in the fix for ext2load to have the correct return value. There is a patch floating around out there on the internet for this, which fixes the return value to return 0 if the file isn't found, and the file size in bytes if it is found and actually loaded. As it is now, it returns something other than zero if the file isn't found and it doesn't load anything, which makes ext2load useless for doing stuff like
if ext2load usb 0:1 /boot/uImage; then .... This bug is just in these older U-Boot versions, and doesn't exist in newer versions.
Edit: found the aforementioned patch:
$this->bbcode_second_pass_code('', '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(')