Skip to contentSkip to conversation

OF default catch on grub2 on 43p-260

DISCUSSION Chris Abbey 2 participants 4 messages Mar 7, 2006 – Mar 10, 2006

lore
Share & tools
lore
#0 lore raw

I just tried out grub2 on my ppc64 box, a 43p-260 using cvs as of 6 March. It all seems to have built ok, I didn't see any kind of issues there, trying to boot it however fails with an default catch from OF:

0 > printenv boot-device
-------------- Partition: common -------- Signature: 0x70 ---------------
boot-device floppy:,grubof.mod
ok
0 > setenv debug all ok
0 > 0 > 0 > printenv debug
debug all
ok
0 > boot Failed to claim heap at 0x4000, len 0x1fb000
DEFAULT CATCH!, code=fff00700 at %SRR0: 00206090 %SRR1: 00023000
ok
0 > setenv boot-device /pci/scsi/sd@8 ok
0 > reset-all

That mess mean anything to anyone? Suggestions for further debug?

Signature · 3 lines
Chris Abbey - IBM Linux Technology Center

The value of Open Standards is only evident to Open Minds.
#1 lore raw
Quoted 1 line · Chris Abbey

I just tried out grub2 on my ppc64 box, a 43p-260 using cvs as of 6 March.

It

Quoted 4 lines

0 > setenv debug all ok
0 > 0 > 0 > printenv debug
debug all
ok

This part here won't work. GRUB doesn't look for an OF variable named "debug" (technically such a thing does not exist, according to IEEE1275), but rather a commandline argument. So you would do this:
0 > boot debug=all
or even
0 > boot floppy debug=all
... but in this particular case, the crash is very very early, and also we already got our helpful debugging message.

Quoted 1 line

0 > boot Failed to claim heap at 0x4000, len 0x1fb000

This is telling us that GRUB attempted to claim some memory for its heap (at that address and that length), but some of it was already in use, so the request failed.

From the OF prompt, before you boot GRUB, could you do the following and send the output:

	0 > dev /memory@0
	0 > .properties

In particular, the "available" property is the one I'm interested in. That will tell us what areas of memory are considered free...

-Hollis

#2 lore raw
Quoted 3 lines · Hollis Blanchard

This part here won't work. GRUB doesn't look for an OF variable named "debug" (technically such a thing does not exist, according to IEEE1275), but rather a commandline argument. So you would do this:

oops, guess I missread the conversation I was reading, thanks for clearing that up.

Quoted 6 lines

From the OF prompt, before you boot GRUB, could you do the following and send the output:

	0 > dev /memory@0
	0 > .properties

In particular, the "available" property is the one I'm interested in. That will tell us what areas of memory are considered free...

0 > dev /memory@0
ok
0 > .properties

name                    memory
device_type             memory
reg                     00000000  40000000
available               00004000 00bfc000 01400000 3ec00000
#address-cells          00000001
#size-cells             00000000

0 > boot floppy:,grubof.mod debug=all
Failed to claim heap at 0x4000, len 0x1fb000
DEFAULT CATCH!, code=fff00700 at %SRR0: 00206090 %SRR1: 00023000
ok
0 >

So If I'm reading that correctly, there is 0x00bfc000 bytes availabel at an offest of 0x00004000, since grub is asking for 0x001fb000, and that is less than 0x00bfc000... I don't get why it's failing.

(And just for reference: no changes to the setup in nvram and my crusty old yaboot loads just fine, boots the kernel and I'm off and running... the machine has been beaten on pretty hard on a regular basis, so hardware wise things seem to be in good shape.)

Signature · 5 lines
6OB/7T -=- LTC Embedded Linux -=- Base Lead Nerd and Cat Herder
Cube: 025-3/B207 -=- TieLine: 553.5061 -=- Extern: 507.253.5061
Notes: Christopher Abbey/Rochester/IBM -=- Net: [email protected]

The value of Open Standards is only evident to Open Minds.
#3 lore raw
Quoted 23 lines · Chris Abbey
Quoted 6 lines · Hollis Blanchard

From the OF prompt, before you boot GRUB, could you do the following and send the output:

	0 > dev /memory@0
	0 > .properties

In particular, the "available" property is the one I'm interested in. That will tell us what areas of memory are considered free...

0 > dev /memory@0
ok
0 > .properties

name                    memory
device_type             memory
reg                     00000000  40000000
available               00004000 00bfc000 01400000 3ec00000
#address-cells          00000001
#size-cells             00000000

0 > boot floppy:,grubof.mod debug=all
Failed to claim heap at 0x4000, len 0x1fb000
DEFAULT CATCH!, code=fff00700 at %SRR0: 00206090 %SRR1: 00023000
ok
0 >

Quoted 3 lines

So If I'm reading that correctly, there is 0x00bfc000 bytes availabel at an offest of 0x00004000, since grub is asking for 0x001fb000, and that is less than 0x00bfc000... I don't get why it's failing.

Me neither. In the source, could you try adjusting the 0x4000 (it's hardcoded in kern/powerpc/ieee1275/init.c) to 0x5000 or 0x8000 or something?

-Hollis