6 MB limit of initrd

Leonardo Rangel lrangel at linux.vnet.ibm.com
Fri Feb 8 02:45:47 EST 2008


Hi guys,

please, try this:

diff --git a/second/yaboot.c b/second/yaboot.c
index 5fc1213..211fb1e 100644
--- a/second/yaboot.c
+++ b/second/yaboot.c
@@ -1198,7 +1198,7 @@ yaboot_text_ui(void)
                }
                else {
  #define INITRD_CHUNKSIZE 0x100000
-                   initrd_base =  
prom_claim(loadinfo.base+loadinfo.memsize, INI
+                   initrd_base =  
prom_claim_chunk(loadinfo.base+loadinfo.memsiz
                     if (initrd_base == (void *)-1) {
                          prom_printf("Claim failed for initrd memory\n");
                          initrd_base = 0;

prom_claim_chunk has been used to let Yaboot automatically look for a  
free memory region to load the Kernel. I believe we can do the same  
for initrd. Doing so, I've successfully loaded a 11MB initrd on a P5  
lpar with of level SF240_299

Leo




More information about the Yaboot-users mailing list