Hi,

it seems I solved the problem.

before:
>>    kernel loaded at 0x00000000, end = 0x00800000
>> ERROR: Failed to allocate 0x200 bytes below 0x800000.

now:
>    kernel loaded at 0x00000000, end = 0x00090000
> ## cmdline at 0x007ffe00 ... 0x007ffe99
> ## kernel board info at 0x007ffdc0
[...]
> ## Transferring control to Linux (at address 00000000) ...
>    Booting using board info...
> Linux version 2.4.37.2-dbox2 (r...@dbox2) (gcc version 3.4.6) #1 Di 14.
Jul 13:10:34 CEST 2009

The end value for the kernel was too high, the attached patch[1] should fix
it, a LZMA-compressed kernel booted well. I did not test the bz2 case but
it seems it suffers from the same bug.

Cheers, rhabarber1848

[1] Sorry, I do not use git here so I can not post the patch in git format.

diff -uNr u-boot-2009.06.org/common/cmd_bootm.c u-boot-2009.06/common/cmd_bootm.c
--- u-boot-2009.06.org/common/cmd_bootm.c	2009-06-14 21:30:39.000000000 +0200
+++ u-boot-2009.06/common/cmd_bootm.c	2009-07-15 18:28:28.000000000 +0200
@@ -380,7 +380,7 @@
 			return BOOTM_ERR_RESET;
 		}
 
-		*load_end = load + unc_len;
+		*load_end = load + image_len;
 		break;
 #endif /* CONFIG_BZIP2 */
 #ifdef CONFIG_LZMA
@@ -396,7 +396,7 @@
 			show_boot_progress (-6);
 			return BOOTM_ERR_RESET;
 		}
-		*load_end = load + unc_len;
+		*load_end = load + image_len;
 		break;
 #endif /* CONFIG_LZMA */
 	default:

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to