[U-Boot] [POWERPC][BUG] ramdisk: u-boot no longer boots a ramdisk with Linux 2.6.27-rc4
Heiko Schocher
hs at denx.de
Fri Sep 5 10:27:38 CEST 2008
Hello Kumar,
I actually trying to boot a Linux 2.6.27-rc4 Kernel with a Ramdisk
and actual u-boot on a MPC82xx based board. And what should I say,
it doesnt work anymore :-(
Reason is the following commit:
http://git.denx.de/?p=u-boot.git;a=commitdiff;h=2a1a2cb6e2b87ee550e6f27b647d23331dfd5e1b#patch3
After this commit, u-boot no longer deletes the mem reservation
for the initrd in Flash, what stops Linux from booting.
So I did the following, but maybe there is a better way for it?
diff --git a/common/fdt_support.c b/common/fdt_support.c
index a7773ab..a69f001 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -215,8 +215,6 @@ int fdt_chosen(void *fdt, ulong initrd_start, ulong initrd_end, int force)
}
}
- fdt_initrd(fdt, initrd_start, initrd_end, force);
-
#ifdef CONFIG_OF_STDOUT_VIA_ALIAS
path = fdt_getprop(fdt, nodeoffset, "linux,stdout-path", NULL);
if ((path == NULL) || force)
With this patch Linux boots fine again with the Ramdisk ...
Do you know, why fdt_chosen() is creating a dummy entry for the initrd,
when later fdt_initrd() is again called with the right parameters?
I think, we can drop this!
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list