6 MB limit of initrd (again)

Paul Nasrat pnasrat at googlemail.com
Wed Feb 27 19:22:30 EST 2008


On 8 Feb 2008, at 14:59, Leonardo Rangel wrote:
>
> Sorry, there was a cut-and-paste issue in my previous message.
> Here's the patch that works for large initrds.

Did this patch fix the issue for you?
>
> 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, INITRD_CHUNKSIZE, 0);
> +                   initrd_base =
> prom_claim_chunk(loadinfo.base+loadinfo.memsize, INITRD_CHUNKSIZE, 0);
>                     if (initrd_base == (void *)-1) {
>                          prom_printf("Claim failed for initrd memory 
> \n");
>                          initrd_base = 0;


Paul



More information about the Yaboot-users mailing list