Skip to contentSkip to conversation

Testing Grub 1.96 on RS/6000 7025-F50

DISCUSSION H S 4 participants 5 messages Mar 28, 2008 – Apr 13, 2008

lore
Share & tools
lore

H S

author
#0 lore raw

Hello,

I built and tested Grub 1.96 on my RS/6000 7025-F50 and thought you might like to know how it worked. First, some pertinent information: the system is running Ubuntu 7.10, has 1.7GB RAM, an open firmware flashed Radeon 7000, and a Symbios Ultra 320 card with some drives hooked to it. Using directions at the TestingonPowerPc wiki, I fetched and built Grub. I used the grub-mkimage -n switch when adding the modules, named the image grubof.ibm, and copied it and a config file to the first partition of the drive which I have formatted FAT. Booting the image produces this error message:

Warning: attempt to claim over our own code! Welcome to GRUB!

error: out of memory
Entering rescue mode
grub rescue>

I can get the list of help commands, but I guess because no modules were loaded I cannot ls any drives or do anything useful. If you need any further information or would like me to test again I would be happy to oblige.

Ken

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#1 lore raw
Quoted 22 lines · H S

Hello,

I built and tested Grub 1.96 on my RS/6000 7025-F50 and thought you might like to know how it worked. First, some pertinent information: the system is running Ubuntu 7.10, has 1.7GB RAM, an open firmware flashed Radeon 7000, and a Symbios Ultra 320 card with some drives hooked to it. Using directions at the TestingonPowerPc wiki, I fetched and built Grub. I used the grub-mkimage -n switch when adding the modules, named the image grubof.ibm, and copied it and a config file to the first partition of the drive which I have formatted FAT. Booting the image produces this error message:

Warning: attempt to claim over our own code!
Welcome to GRUB!

error: out of memory
Entering rescue mode
grub rescue>

Quoted 5 lines

I can get the list of help commands, but I guess because no modules were loaded I cannot ls any drives or do anything useful. If you need any further information or would like me to test again I would be happy to oblige.

You can add the command you need to use with grub-mkimage, so that they'll be built into the kernel. After grub2 starts, use ls to find out if the disk has been detected.

Signature · 1 line
Bean
#2 lore raw

Quoting Bean <[email protected]>:

Quoted 3 lines

You can add the command you need to use with grub-mkimage, so that they'll be built into the kernel. After grub2 starts, use ls to find out if the disk has been detected.

The ls command is available in the rescue mode, but its result is very likely to be "out of memory". The memory is the real problem here, not disks.

I've seen a similar problem in qemu-system-ppc, where is was caused by the limitations of the open firmware that comes with qemu. But it would not print "attempt to claim over our own code".

Signature · 2 lines
Regards,
Pavel Roskin
#3 lore raw
Quoted 6 lines · Pavel Roskin

Quoting Bean <[email protected]>:

Quoted 3 lines

You can add the command you need to use with grub-mkimage, so that they'll be built into the kernel. After grub2 starts, use ls to find out if the disk has been detected.

Quoted 7 lines

The ls command is available in the rescue mode, but its result is very likely to be "out of memory". The memory is the real problem here, not disks.

I've seen a similar problem in qemu-system-ppc, where is was caused by the limitations of the open firmware that comes with qemu. But it would not print "attempt to claim over our own code".

This warning is from grub_claim_heap in kern/powerpc/ieee1275/init.c, i think the problem is it can't find memory to allocate, perhaps we can add some grub_dprintf to list the memory map.

you can also check the memory info in openfirmware:

dev /memory .properties dend

Signature · 1 line
Bean
#4 lore raw
Quoted 15 lines · Bean
Quoted 6 lines · Pavel Roskin

Quoting Bean <[email protected]>:

Quoted 3 lines

You can add the command you need to use with grub-mkimage, so that they'll be built into the kernel. After grub2 starts, use ls to find out if the disk has been detected.

Quoted 7 lines

The ls command is available in the rescue mode, but its result is very likely to be "out of memory". The memory is the real problem here, not disks.

I've seen a similar problem in qemu-system-ppc, where is was caused by the limitations of the open firmware that comes with qemu. But it would not print "attempt to claim over our own code".

Quoted 7 lines

This warning is from grub_claim_heap in kern/powerpc/ieee1275/init.c, i think the problem is it can't find memory to allocate, perhaps we can add some grub_dprintf to list the memory map.

you can also check the memory info in openfirmware:

dev /memory .properties dend

Or perhaps it's something wrong with the higher-layer logic that decides which regions are suitable and which are best avoided. See HEAP_MAX_SIZE & HEAP_MAX_ADDR.

(I hate this hack...)

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)