Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel panic at boot; yaboot: problems with new kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 449
Location: Paris, France

PostPosted: Mon Jan 19, 2004 2:02 pm    Post subject: kernel panic at boot; yaboot: problems with new kernel Reply with quote

hi all,

I am setting up gentoo linux on a powerbook and coming across a few problems. I am asking for help about two of them here.

At my first boot I get a kernel panic (message "VFS: unable to mount root fs on 03:04"). Given I have chosen reiserfs for the root partition, I suspected I did some mistake when configuring the compilation of the kernel. I have compiled a new kernel with all Reiserfs options enabled and installed it.

I have updated the yaboot.conf file to add the new kernel and run ybin -v again.

When I try to reboot I do not see my new kernel among the choices. Only my old kernel and of course the same kernel panic.

Questions :
- do you think I am right about the origin of the kernel panic (ie I forgot some options when compiling the kernel and the new one should do) ?
- do you have an idea about what I may have done wrong with yaboot ?

Thanks in advance for your help,

Xavier
Back to top
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Tue Jan 20, 2004 1:58 pm    Post subject: RE: kernel panic at boot; yaboot: problems with new kernel Reply with quote

Hey Xavier

Not really solving the problem, just a little more info:

I had 2.6.0-r1 running off a reiserfs root partition (all was fine).
(I should mention though that during the Gentoo installation off the live CD the Stage 2 failed to unpack on a reiser partition. I had to create another partition, extract the stage there then mv it across)

When I upgraded to 2.6.0-r2 the reiserfs code (which was compiled in to the kernel, obviously) didn't appear to start (no init message) and the kernel would panic.

The same problem occurred with 2.6.1_rc1-r1.
I'm now running 2.6.1-r1 off an ext3 root partition but haven't tested it off the reiser root yet.

Just in case it's useful to you, my kernel configs are here:
http://l003026.zseriespenguins.ihost.com/~gnome/gentoo/


-- gnomeza
[PB 15" 1.25GHz]
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 449
Location: Paris, France

PostPosted: Tue Jan 20, 2004 9:05 pm    Post subject: Reply with quote

Thanks for your answer !

Acutally I have done a new install from scratch using ext3 and kernel 2.6.1_rc1-r1. It worked once but when I wanted to halt everything stopped (as if something froze the system) and I had to restart with the keyboard.

Another issue was that yaboot had not detected macosX even after may tries (there was a strange error with a message saying that the corresponding partition was not a HFS+ partition). I finally re-installed OSX and I could not restore the bootstrap although the bootstrap partition was still here.

My solution is to proceed with a new install from scratch now but I feel very very sad.

If someone has an idea to fix any of the probmes I come across I will be very happy...
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 449
Location: Paris, France

PostPosted: Wed Jan 21, 2004 8:10 pm    Post subject: The solution was... Reply with quote

to reset the open firmware by doing command-option-p-r at the startup.
(command-option-o-f was a good hint to boot a system even if the bootstrap partition was not used for startup even if at the beginnning of the drive and blessed...)
Back to top
View user's profile Send private message
Nickus
n00b
n00b


Joined: 18 Jan 2004
Posts: 5

PostPosted: Wed Jan 21, 2004 8:32 pm    Post subject: Reply with quote

Just ignore the error from yabootconfig and insert the line

Code:
macosx=/dev/hdaX


into your /etc/yaboot.conf file. Replace X with the actual partition number for your OSX installation. Then run

Code:
# /usr/sbin/ybin


and everything should work fine again.
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 449
Location: Paris, France

PostPosted: Wed Jan 21, 2004 9:11 pm    Post subject: Reply with quote

Actually, here is what I have done:

- Mac OS X install at the end of the drive (empty space at the beginning so that at the end logical order of partitions = physical order)
- partitionning with bootstrap in /dev/hda2 ; gentoo install at the beginning
- edit of the yaboot.conf file, with commands to launch gentoo, macosx (and enablecdboot enableofboot).
- run of the script mkofboot -v

At this point when I started, I found myself in MacOSX without seeing the bootloader menu at all. This was very very surpising to me given mkofboot should have blessed the /dev/hda2 (bootstrap partition) at this point.
I have re-tried to run the ybin script several times with no result.
Probably a blessing problem of the bootstrap partition I cannot explain.

Then came the open firmware reset (documented in one of the last sections of the yaboot FAQ), which solved everything !!
Back to top
View user's profile Send private message
doubtingben
n00b
n00b


Joined: 21 Jan 2004
Posts: 6

PostPosted: Thu Jan 22, 2004 12:02 am    Post subject: Reply with quote

I am getting this same kernel panic error on boot:

message "VFS: unable to mount root fs on 03:04
Please set a valid root= blah blah"

My disk partitions are as follows:

/dev/hda1 partition map
/dev/hda2 NewWorld bootblock
/dev/hda3 Linux Native (swap)
/dev/hda4 Linux Native (ext3 /)
/dev/hda5 Mac OS X

I have ext3 support compiled in the kernel. I can mount /dev/hda3 off the liveCD.

my yaboot.conf:

Code:

boot=/dev/hda2
device=/pci@f4000000/ata-6@d/disk@0:
partition=4
root=/dev/hda4
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/vmlinux
    label=/dev/hda4
    read-only


The kernel is found and boots, but then panics when it can't find/mount hda4.

Please, someone help!

Thanks
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 449
Location: Paris, France

PostPosted: Thu Jan 22, 2004 9:01 am    Post subject: version of the kernel ? Reply with quote

I think I have read in a previous post that you have an AlBook 15"1.25Ghz as I do.

Actually I used to have this error when I had
- reiserFS partition (which you do not have)
- 2.4.22 kernel

After this I decided to throw both of them for the next install and am running ext3 and 2.6.1-r1 kernel (which you can find in ppc-development-sources). This kernel comes with some patches (that is why it is also so called 2.6.1-r1benh1) which are supposed to help for powerbook 15" 1.25GHz at least. I compiled it with some config files I have got on this site (perfect1.config by silian87).
I eventually got a system which could start with no problem and even with a usable bootloader (after some time) and also with X running. I am facing other issues now but my system is usable.

Given you experienced problems with ext3, I suspect reiserFS is not the problem and possibly 2.4.22 is the problem (and should be replaced with a 2.6.1).

Hope this helps
Back to top
View user's profile Send private message
juju
n00b
n00b


Joined: 23 Dec 2003
Posts: 48
Location: Paris

PostPosted: Thu Jan 22, 2004 11:39 am    Post subject: Reply with quote

Hi all,

I'm not sure the problem comes from your file system nature. It might come from a lack of PCI probing from kernel. You have to enable some PCI options as probe PCI disk first and things like those (don't remember exactly which ones).

I have an iBook G4 and i experienced less more problems with kernel 2.6 than with 2.4 so i can be a great idea to use latest ppc-development-sources.

Julien
_________________
open Signature (same as #include "signature.h" in OCaml)
Back to top
View user's profile Send private message
doubtingben
n00b
n00b


Joined: 21 Jan 2004
Posts: 6

PostPosted: Thu Jan 22, 2004 1:05 pm    Post subject: Reply with quote

Thanks, I did get 2.6.1 to boot!

I read later that the problem may be the pci probing ide stuff in the wrong order. If anyone is having the same problem with 2.4, try enabling

Code:

CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST=y


Now to get my onboard NIC working...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum