6 MB limit of initrd (again)
Gerhard Tonn
GerhardTonn at gammatau.de
Wed Feb 27 20:01:36 EST 2008
Paul Nasrat schrieb:
>
> 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;
>
Doesn't work for me, I get a program check.
Gerhard
More information about the Yaboot-users
mailing list