Skip to contentSkip to conversation

grub2 on ppc

BUG+Experiences Nico -telmich- Schottelius 3 participants 14 messages Apr 7, 2005 – Apr 8, 2005

lore
Share & tools
lore
#0 lore raw

Hello dear developers!

First impressions: It is somehow next to work.

1. The problem is that my / (root) is xfs, which is not support yet.

Marco, can you fix that? ;-)

2. The second thing which is a bit ugly is that grub2 lists (hd) (hd,...) _AND_ (ultra0) (ultra0,...)

which describes the same harddisk. This is a bit confusing for me.

3. grub once killed itself/hangup: I typed
linux (hd,3)/usr<TAB> (hda4 == my /)
But I cannot reproduce it!

4. When typing
linux (hd3)/<tab> grub does NOT say "no such device" or something similar, but prints a new line. For someone who does not see the typo, he'll be the one who asks on support channels.

Btw, the same behaviour is seen when doing
linux (hd,3)<tab> (on the not readable xfs partition). I really would like to see "Cannot read that filesystem (yet)."-message.

5. When loading grub after the _first_ yaboot prompt (where one can select openfirmware, macos, linux) grub does not cleanly overwrite the text written before!

That's it for the first time.

Please tell me when those things are fixed and I'll try again.

Nico

Signature · 3 lines
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
#1 lore raw

Thanks very much for your report, Nico! (Note to others: I have updated the PPC wiki info based on some IRC questions from Nico.)

Quoted 5 lines · Nico -telmich- Schottelius

2. The second thing which is a bit ugly is that grub2 lists (hd) (hd,...) _AND_ (ultra0) (ultra0,...)

which describes the same harddisk. This is a bit confusing for me.

It is possible to fix this; we could walk the devalias list and create a list of the resolved device paths, then walk *that* list to find valid devices. I think it is worthwhile.

Quoted 3 lines

3. grub once killed itself/hangup: I typed
linux (hd,3)/usr<TAB> (hda4 == my /)
But I cannot reproduce it!

Hopefully the debug print patch will aid in problem determination in the future. In this case I guess it wouldn't have helped, but if the problem is at all reproducible then running again with "debug=all" would be quite helpful. I hope to dust off Vincent's patch soon, as I've just had to remove some debug prints that I would much rather have left in for future use. :)

Quoted 3 lines

5. When loading grub after the _first_ yaboot prompt (where one can select openfirmware, macos, linux) grub does not cleanly overwrite the text written before!

I see lots of screen garbage, especially when command tab-completion wraps to the next line, or when returning from "suspend". This is on my list to investigate, but lower than some other things. Is this also present on x86?

-Hollis

#2 lore raw
Quoted 4 lines · Hollis Blanchard

I see lots of screen garbage, especially when command tab-completion wraps to the next line, or when returning from "suspend". This is on my list to investigate, but lower than some other things. Is this also present on x86?

This has to to with wrapping lines and how getxy works. I had a look at this and will do it again soon. It is a bit higher on my todo.

Thanks,
Marco

#3 lore raw
In reply to Hollis Blanchard

Hollis Blanchard [Thu, Apr 07, 2005 at 11:07:27PM -0500]:

Quoted 1 line

[removing double harddisk output]

Let's see whether I can tell you it works fine at my next test ;-)

Quoted 1 line

[grub debug=all]

good to know for the next time. will you realize debugging as a module or compile time option, so one can easily remove it?

Quoted 8 lines
Quoted 3 lines

5. When loading grub after the _first_ yaboot prompt (where one can select openfirmware, macos, linux) grub does not cleanly overwrite the text written before!

I see lots of screen garbage, especially when command tab-completion wraps to the next line, or when returning from "suspend". This is on my list to investigate, but lower than some other things. Is this also present on x86?

Sorry, no x86 right here, which I could use for testing.

But what you describe is different from what I mean:
I simply mean grub does _not_ cleanup the screen before it prints, so partly the old message from yaboot's first stage is still there.

When using tab-expansion, I didn't noticed (nor did I pay attention to) any screen garbage.

Nico

Signature · 3 lines
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
#4 lore raw
Quoted 3 lines · Nico -telmich- Schottelius

But what you describe is different from what I mean:
I simply mean grub does _not_ cleanup the screen before it prints, so partly the old message from yaboot's first stage is still there.

This is only the case when using rescue mode, right? IIRC normal code clears the screen before showing the welcome message.

--
Marco

#5 lore raw

Marco Gerards [Fri, Apr 08, 2005 at 12:21:58PM +0200]:

Quoted 8 lines
Quoted 3 lines · Nico -telmich- Schottelius

But what you describe is different from what I mean:
I simply mean grub does _not_ cleanup the screen before it prints, so partly the old message from yaboot's first stage is still there.

This is only the case when using rescue mode, right? IIRC normal code clears the screen before showing the welcome message.

"I don't know".

All what I did was loaded grubof.modules from hd,3. The system was in a 'normal' state before.

What do you mean with rescue mode? No, I didn't enable anything like that in grub, nor did grub use a menu (seems to be a wrong formated grub.cfg).

Nico

Signature · 3 lines
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
#6 lore raw
Quoted 11 lines · Nico -telmich- Schottelius
Quoted 2 lines

This is only the case when using rescue mode, right? IIRC normal code clears the screen before showing the welcome message.

"I don't know".

All what I did was loaded grubof.modules from hd,3. The system was in a 'normal' state before.

What do you mean with rescue mode? No, I didn't enable anything like that in grub, nor did grub use a menu (seems to be a wrong formated grub.cfg).

Did you add normal.mod using grub-mkimage or was it automatically loaded?

You can check this easily. After normal.mod is loaded you will have both tab completion and a history buffer.

How did you load GRUB? By going to OF from yaboot and loading GRUB there?

--
Marco

#7 lore raw
Quoted 14 lines · Marco Gerards
Quoted 11 lines · Nico -telmich- Schottelius
Quoted 2 lines

This is only the case when using rescue mode, right? IIRC normal code clears the screen before showing the welcome message.

"I don't know".

All what I did was loaded grubof.modules from hd,3. The system was in a 'normal' state before.

What do you mean with rescue mode? No, I didn't enable anything like that in grub, nor did grub use a menu (seems to be a wrong formated grub.cfg).

Quoted 8 lines

Did you add normal.mod using grub-mkimage or was it automatically loaded?

You can check this easily. After normal.mod is loaded you will have both tab completion and a history buffer.

How did you load GRUB? By going to OF from yaboot and loading GRUB there?

He built and booted as described at http://autistici.org/grub/moin.cgi/TestingOnPowerPC .

-Hollis

#8 lore raw
In reply to Marco Gerards

Marco Gerards [Fri, Apr 08, 2005 at 02:20:52PM +0200]:

Quoted 9 lines
Quoted 8 lines · Nico -telmich- Schottelius
Quoted 2 lines

This is only the case when using rescue mode, right? IIRC normal code clears the screen before showing the welcome message.

"I don't know".

All what I did was loaded grubof.modules from hd,3. The system was in a 'normal' state before.

Quoted 6 lines
Quoted 3 lines

What do you mean with rescue mode? No, I didn't enable anything like that in grub, nor did grub use a menu (seems to be a wrong formated grub.cfg).

Did you add normal.mod using grub-mkimage or was it automatically loaded?

well, I added *.mod, as described in the wiki. So I assume it is added.

Quoted 2 lines

You can check this easily. After normal.mod is loaded you will have both tab completion and a history buffer.

Yes, that was possible.

Quoted 2 lines

How did you load GRUB? By going to OF from yaboot and loading GRUB there?

Yes and one time I also went there with apple+alt+o+f. But that does not make any difference imho, does it?

Nico

Signature · 3 lines
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
#9 lore raw
Quoted 5 lines · Nico -telmich- Schottelius
Quoted 2 lines

How did you load GRUB? By going to OF from yaboot and loading GRUB there?

Yes and one time I also went there with apple+alt+o+f. But that does not make any difference imho, does it?

It shouldn't. But your email looked like it did. And when I run it like this (apple+alt+o+f) I don't see anything weird. But I will try again.

--
Marco

#10 lore raw

Marco Gerards [Fri, Apr 08, 2005 at 06:11:24PM +0200]:

Quoted 11 lines
Quoted 5 lines · Nico -telmich- Schottelius
Quoted 2 lines

How did you load GRUB? By going to OF from yaboot and loading GRUB there?

Yes and one time I also went there with apple+alt+o+f. But that does not make any difference imho, does it?

It shouldn't. But your email looked like it did. And when I run it like this (apple+alt+o+f) I don't see anything weird. But I will try again.

Ok, in that's what you mean:

- if yaboot boots before, it prints text, which is _not_ cleared by grub
- as far as I can remember the text printed by of is overwritten by grub

Hope to described it more clear now.

Nico

Signature · 3 lines
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
#11 lore raw
In reply to Nico -telmich- Schottelius
Quoted 3 lines · Nico -telmich- Schottelius

1. The problem is that my / (root) is xfs, which is not support yet.

Marco, can you fix that? ;-)

Sure, you can expect it at the end of Juni or before that if possible. I have some code already. I beg people not to work on it because of that, it will be done!

Quoted 3 lines

3. grub once killed itself/hangup: I typed
linux (hd,3)/usr<TAB> (hda4 == my /)
But I cannot reproduce it!

Which filesystem is used on (hd,3)?

Quoted 4 lines

4. When typing
linux (hd3)/<tab> grub does NOT say "no such device" or something similar, but prints a new line. For someone who does not see the typo, he'll be the one who asks on support channels.

Right. This can be done if that is what everyone expects...

Quoted 3 lines

Btw, the same behaviour is seen when doing
linux (hd,3)<tab> (on the not readable xfs partition). I really would like to see "Cannot read that filesystem (yet)."-message.

Tab completion does not print errors at all.

Quoted 1 line

Please tell me when those things are fixed and I'll try again.

Sure. Thanks for testing!

--
Marco

#12 lore raw

Marco Gerards [Fri, Apr 08, 2005 at 08:37:19AM +0200]:

Quoted 9 lines
Quoted 3 lines · Nico -telmich- Schottelius

1. The problem is that my / (root) is xfs, which is not support yet.

Marco, can you fix that? ;-)

Sure, you can expect it at the end of Juni or before that if possible. I have some code already. I beg people not to work on it because of that, it will be done!

June is a bit far away, but perhaps I'll copy my kernel on a hfs partition for testing (I always thought leaving macosx there is a good thing ;-).

Quoted 5 lines
Quoted 3 lines

3. grub once killed itself/hangup: I typed
linux (hd,3)/usr<TAB> (hda4 == my /)
But I cannot reproduce it!

Which filesystem is used on (hd,3)?

xfs

Quoted 6 lines
Quoted 4 lines

4. When typing
linux (hd3)/<tab> grub does NOT say "no such device" or something similar, but prints a new line. For someone who does not see the typo, he'll be the one who asks on support channels.

Right. This can be done if that is what everyone expects...

Well or at least don't print a new line+prompt. That makes me think 'oh the expansion is ready|completed'.

Quoted 5 lines
Quoted 3 lines

Btw, the same behaviour is seen when doing
linux (hd,3)<tab> (on the not readable xfs partition). I really would like to see "Cannot read that filesystem (yet)."-message.

Tab completion does not print errors at all.

I thought I saw that in grub1

Nico

Signature · 3 lines
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
#13 lore raw
Quoted 7 lines · Nico -telmich- Schottelius
Quoted 3 lines

Sure, you can expect it at the end of Juni or before that if possible. I have some code already. I beg people not to work on it because of that, it will be done!

June is a bit far away, but perhaps I'll copy my kernel on a hfs partition for testing (I always thought leaving macosx there is a good thing ;-).

lol

Make sure it is HFS and not HFS+. HFS+ is just like XFS on my todo list. If it is important please tell me, as for now no one *needed* it yet.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

3. grub once killed itself/hangup: I typed
linux (hd,3)/usr<TAB> (hda4 == my /)
But I cannot reproduce it!

Which filesystem is used on (hd,3)?

xfs

Right, so an unknown filesystem can make it crash. Perhaps it is caused by a faulty probe of some other filesystem module. Which filesystem modules were loaded?

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

4. When typing
linux (hd3)/<tab> grub does NOT say "no such device" or something similar, but prints a new line. For someone who does not see the typo, he'll be the one who asks on support channels.

Right. This can be done if that is what everyone expects...

Well or at least don't print a new line+prompt. That makes me think 'oh the expansion is ready|completed'.

I will have a look.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Btw, the same behaviour is seen when doing
linux (hd,3)<tab> (on the not readable xfs partition). I really would like to see "Cannot read that filesystem (yet)."-message.

Tab completion does not print errors at all.

I thought I saw that in grub1

Ok. I will try GRUB Legacy. I think GRUB 2 and GRUB Legacy should work the same for tab completion.

--
Marco