Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic
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
no_dice
n00b
n00b


Joined: 12 Aug 2003
Posts: 29

PostPosted: Sat Feb 07, 2004 10:03 pm    Post subject: Kernel Panic Reply with quote

Hey all,

I'm currently in the process of installing Gentoo on my 12" pbook. I followed the docs verbatim and compiled the benh kernel (2.4.22). I wrote my own yaboot.conf file but I get the following message when trying to boot into linux:

VFS: Cannot open root device "hda11" or 03:0b
Please append a correct "root=" boot option
Kernel Panic:VFS Unable to mount root fs on 03:0b

in my yaboot.conf file, I have root=/dev/hda11

I'm not sure what I'm doing wrong....

bootstrap = /dev/hda9
swap = /dev/hda10
root = /dev/hda11

The following is my yaboot.conf file:

###################

boot=/dev/hda9

device=hd:
partition=11

root=/dev/hda11
delay=15
defaultos=macosx
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/vmlinux
label=Linux
sysmap=/boot/System.map
read-only

macosx=/dev/hda12
enablecdboot
enableofboot

###################


Any help would be greatly appreciated, thanks!
Back to top
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Sat Feb 07, 2004 11:54 pm    Post subject: Reply with quote

What's going on here is that /dev/hda11 isn't a partition it knows what to do with; that's *not* your root partition, it seems. It may not even be a partition at all.

Play around with fdisk (or the ppc equiv, because I don't know if it's different) and make sure you have the partitions like you think you do.

~Mac~
Back to top
View user's profile Send private message
no_dice
n00b
n00b


Joined: 12 Aug 2003
Posts: 29

PostPosted: Sun Feb 08, 2004 7:19 pm    Post subject: Reply with quote

mac-fdisk reports that /dev/hda11 is my root partition, I'm pretty sure that it's a working partition since I mount /dev/hda11 to /mnt/gentoo in order to install gentoo.
Back to top
View user's profile Send private message
ernstp
Apprentice
Apprentice


Joined: 19 Aug 2002
Posts: 155
Location: Lund - Sweden

PostPosted: Sun Feb 08, 2004 7:38 pm    Post subject: Reply with quote

Have you compiled in support for your filesystem into the kernel?
Compiling as a module won't work for your root filesystem.
Back to top
View user's profile Send private message
no_dice
n00b
n00b


Joined: 12 Aug 2003
Posts: 29

PostPosted: Sun Feb 08, 2004 7:59 pm    Post subject: Reply with quote

I formatted it as ext3 and compiled in ext3 support......using the benh kernel.
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1143
Location: Williamsburg Virginia

PostPosted: Thu Feb 12, 2004 3:58 pm    Post subject: Reply with quote

chroot and emerge a different kernel... you need something better then .22 anyway , try ppc-sources which will give you 2.4.24-benh0... see if the error persists.
i had some similar funky happenings with 2.6 and am not really sure what the culprit was. remember to rerun ybin -v after cp'ing the new vmlinux and System.map to /boot
Back to top
View user's profile Send private message
encryptio
n00b
n00b


Joined: 13 Jul 2004
Posts: 4

PostPosted: Tue Jul 13, 2004 2:51 am    Post subject: Reply with quote

Hey guys, I'm having the same problem. I'm using ppc-sources which is kernel 2.4.26 right now. I get the same errors, but with different numbers. It seems only to be a problem on these machines with two-digit partition numbers. I'm on a 15-inch Powerbook G4.

This is annoying me because I had loaded yellowdog, but it won't update with anything automated. Now I'm missing a linux and 22GB on my 40GB hd :evil:


-Encryptio
Back to top
View user's profile Send private message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Tue Jul 13, 2004 7:19 am    Post subject: Reply with quote

all,

I have a powerbook G4 working perfectly with gentoo, and my root is on partition 12.

So i would seriously consider a make clean, mrproper and recompile the kernel.

make sure the fs modules are compiled into the kernel (*)

greetings
_________________
"I am not bound to please thee with my answers."
Back to top
View user's profile Send private message
encryptio
n00b
n00b


Joined: 13 Jul 2004
Posts: 4

PostPosted: Fri Jul 16, 2004 6:11 am    Post subject: Reply with quote

SeJo: I tried what you said (make clean && make mrproper && make menuconfig && make dep && make vmlinux modules modules_install), didn't help. I put the files in the right place and relinked the /boot/vmlinux and /boot/System.map to the right places, ran "ybin -v", rebooted, "Kernel Panic. Rebooting in 180 seconds."

I'll try ppc-development-sources (2.6?) and see if I can do it with that... More to come.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Fri Jul 16, 2004 8:37 am    Post subject: Reply with quote

encryptio wrote:
I relinked the /boot/vmlinux and /boot/System.map to the right places [...]

You might want to try cp instead.
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: Fri Jul 16, 2004 11:45 am    Post subject: DUUUDDDE! Reply with quote

I can't believe this has come up *again* (if the cause is what I think it is).
The ppc-manual needs to make *absolutely clear* the difference between the Bootstrap and the Boot partition! (although I'm not sure how it can make it much clearer, perhaps it was the old HOWTO that was the culprit)

Hey no_dice,

Your problem may well be that you are confusing the Apple bootstrap partition with the Linux boot partition (which is unnecessary on PPC)

Quote:

bootstrap = /dev/hda9
...
boot=/dev/hda9


Check again, more carefully
http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1&chap=4#doc_chap3

bootstrap != boot

This may also explain why (upon realising a 4MB vmlinux wouldn't fit in an 800kb "boot" partition) you symlinked /boot/vmlinux. ;)

ciao
Mark
_________________
http://markferry.net
Back to top
View user's profile Send private message
encryptio
n00b
n00b


Joined: 13 Jul 2004
Posts: 4

PostPosted: Sat Jul 17, 2004 6:37 am    Post subject: Reply with quote

I have no luck... Tried cping the files instead of ln (unlink first, o/c) and the same problem. I can't get the ppc-development-sources because portage says that they do not exist :(


:?: :? :?:
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sat Jul 17, 2004 11:56 am    Post subject: Reply with quote

encryptio wrote:
I can't get the ppc-development-sources because portage says that they do not exist :(


A while ago Benjamin Herrenschmidt merged his ppc development tree with the official one from Mr. Torvalds, so there is no need for ppc-development-sources anymore. Just get gentoo-dev-sources instead, which is the most recent stable vanilla kernel with some nice patches.
Back to top
View user's profile Send private message
encryptio
n00b
n00b


Joined: 13 Jul 2004
Posts: 4

PostPosted: Mon Jul 19, 2004 4:55 am    Post subject: Reply with quote

Thanks, DiskBreaker. I'm compiling the source as I post, so this'll be edited to include the outcome. BRB.

NEXT UP: Getting 2.6.7 to load.

Kernel output:
Code:
VFS: Mounted Root (ext2 filesystem) readonly.
Freeing Unused Kernel Memory: 184k init blah blah blah
Warning: Unable to open an inital console.
Restarting System.


Two problems jump out: I'm using ext3 and it's restarting the system. Again, and again, and again, and ag...

NFC.
-Encryptio
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