Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic on boot
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
intimidat0r
n00b
n00b


Joined: 15 Oct 2005
Posts: 55
Location: Rest0re.org

PostPosted: Sun Feb 03, 2008 6:22 pm    Post subject: Kernel panic on boot Reply with quote

I've never put Gentoo on a PPC machine before. I just finished compiling my kernel (I can't connect to the Internet from the PPC machine yet so I had to download one from kernel.org and transfer it to the PPC with a flash drive). When I try to boot my install I get this messsage:

UDF-fs: No partition found(1)
List of all partitions:
No filesystem could mount root, tried: reiserfs iso9660 hfsplus fuseblk udf
Kernel panic - not syncing: VFS unable to mount root fs on unknown block(0,0)

My / is reiserfs, so I'm guessing it's not a filesystem problem. I compiled in generic SCSI and SCSI disk support. I have never seen this problem before. Could anyone help me?

I tried removing the reference to my initrd in my yaboot config, and the error message became this:

VFS: Cannot open root device "hdb4" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing : VFS: Unable to mount root fs on uknown-block(0,0)

I'm not sure if this is a step forward or backwards. :D

Update: I compiled in some other ATA-related things, and now it lists all of my partitions and the kernel panics with this message:

UDF-fs: NO partition found
List of all partitions:
(actually lists all of the partitions on all of the disks here)
No filesystem could mount root, tried: reiserfs iso9660 hfsplus fuseblk udf
Kernel panic - not syncing: VFS: Unable to umount root fs on unknown block(3,68)

I have no idea where 3,68 is being pulled from. My yaboot.conf doesn't mention anything close to 68 anywhere.

Thank you very much.
_________________
Rest0re.org: brought to you by the language C and the number F.
Back to top
View user's profile Send private message
// k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 122
Location: Germany | UK | India

PostPosted: Mon Feb 04, 2008 7:29 am    Post subject: Reply with quote

How did you partition your disk? With mac-fdisk?
Did you compile support for Mac partition maps into your kernel?
_________________
// k
MySpace. | Website.
Back to top
View user's profile Send private message
intimidat0r
n00b
n00b


Joined: 15 Oct 2005
Posts: 55
Location: Rest0re.org

PostPosted: Mon Feb 04, 2008 6:12 pm    Post subject: Reply with quote

I did use mac-disk. I think I compiled in support for Mac partitions, is that the File Systems->Partition Types->Macintosh partition map support thing?
_________________
Rest0re.org: brought to you by the language C and the number F.
Back to top
View user's profile Send private message
// k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 122
Location: Germany | UK | India

PostPosted: Mon Feb 04, 2008 6:22 pm    Post subject: Reply with quote

Yes. I assume that you compiled support for your used filesystem in the kernel as well
(not as modules)...a shame that my last iBook has been broken for years, otherwise
I could check what else you need.

Can you post your yaboot.conf?
_________________
// k
MySpace. | Website.
Back to top
View user's profile Send private message
intimidat0r
n00b
n00b


Joined: 15 Oct 2005
Posts: 55
Location: Rest0re.org

PostPosted: Mon Feb 04, 2008 8:24 pm    Post subject: Reply with quote

Code:
boot=/dev/hdb2
device=/pci@f20000000/pci-bridge@d/mac-io@7/ata-4@1f000/disk@1:
partition=4
root=/dev/hdb4
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/vmlinuz
  label=Linux
  read-only
  initrd=/boot/vmlinuz.img
  initrd-size=8192


This was generated with yabootconfig.
_________________
Rest0re.org: brought to you by the language C and the number F.
Back to top
View user's profile Send private message
// k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 122
Location: Germany | UK | India

PostPosted: Tue Feb 05, 2008 6:32 pm    Post subject: Reply with quote

Okay, what kind of machine is it? Some Apple macbook?

Could you also post the output of
Code:
mac-fdisk -l

(I hope this command works, without a PPC machine I can't test anything)
_________________
// k
MySpace. | Website.
Back to top
View user's profile Send private message
intimidat0r
n00b
n00b


Joined: 15 Oct 2005
Posts: 55
Location: Rest0re.org

PostPosted: Tue Feb 05, 2008 6:44 pm    Post subject: Reply with quote

It's a Mac, but it's a desktop, not a laptop.

Code:
/dev/hda
        #                    type name                  length   base      ( size )  system
/dev/hda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hda2          Apple_Driver43 Macintosh                 54 @ 64        ( 27.0k)  Driver 4.3
/dev/hda3          Apple_Driver43 Macintosh                 74 @ 118       ( 37.0k)  Driver 4.3
/dev/hda4        Apple_Driver_ATA Macintosh                 54 @ 192       ( 27.0k)  Unknown
/dev/hda5        Apple_Driver_ATA Macintosh                 74 @ 246       ( 37.0k)  Unknown
/dev/hda6          Apple_FWDriver Macintosh                200 @ 320       (100.0k)  Unknown
/dev/hda7      Apple_Driver_IOKit Macintosh                512 @ 520       (256.0k)  Unknown
/dev/hda8           Apple_Patches Patch Partition          512 @ 1032      (256.0k)  Unknown
/dev/hda9               Apple_HFS untitled           234440094 @ 1544      (111.8G)  HFS
/dev/hda10             Apple_Free Extra                     10 @ 234441638 (  5.0k)  Free space

Block size=512, Number of Blocks=234441647
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 118 for 36, type=0xffff
3: @ 192 for 21, type=0x701
4: @ 246 for 34, type=0xf8ff

/dev/hdb
        #                    type name                 length   base     ( size )  system
/dev/hdb1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hdb2         Apple_Bootstrap bootstrap              1600 @ 64       (800.0k)  NewWorld bootblock
/dev/hdb3         Apple_UNIX_SVR2 swap                1048576 @ 1664     (512.0M)  Linux swap
/dev/hdb4         Apple_UNIX_SVR2 root               39110748 @ 1050240  ( 18.6G)  Linux native

Block size=512, Number of Blocks=40160988
DeviceType=0x0, DeviceId=0x0

/dev/hdc
        #                    type name                length   base    ( size )  system
/dev/hdc1     Apple_partition_map Apple                    2 @ 1       (  1.0k)  Partition map
/dev/hdc2               Apple_HFS Gentoo Linux 2007.0 PPC 1141744 @ 16      (557.5M)  HFS

Block size=512, Number of Blocks=1141760
DeviceType=0x1, DeviceId=0x1



hda is the harddrive OSX is installed on, hdb is where I'm trying to put Gentoo, and hdc is the CD.
_________________
Rest0re.org: brought to you by the language C and the number F.
Back to top
View user's profile Send private message
// k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 122
Location: Germany | UK | India

PostPosted: Tue Feb 05, 2008 7:26 pm    Post subject: Reply with quote

intimidat0r wrote:
Code:

device=/pci@f20000000/pci-bridge@d/mac-io@7/ata-4@1f000/disk@1:


This was generated with yabootconfig.


Hm...just to be sure: could you run
Code:
ofpath /dev/hdb

and see if it returns the same command that is specified in your yaboot.conf?

And please post your /etc/fstab -- that should be all the info anyone should need to
find the problem, since it seems to boot the kernel, so the problem might be in the
fstab.
_________________
// k
MySpace. | Website.
Back to top
View user's profile Send private message
intimidat0r
n00b
n00b


Joined: 15 Oct 2005
Posts: 55
Location: Rest0re.org

PostPosted: Tue Feb 05, 2008 9:20 pm    Post subject: Reply with quote

fstab:

Code:
/dev/hdb4  / reiserfs  noatime,notail  0 1
/dev/hdb3    none  swap   sw 0 0
/dev/cdrom    /mnt/cdrom  auto   noauto,user  0 0
shm    /dev/shm  tmpfs   nodev,nosuid,noexec 0 0


And ofpath shows the same thing that's in yaboot.conf.
_________________
Rest0re.org: brought to you by the language C and the number F.
Back to top
View user's profile Send private message
// k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 122
Location: Germany | UK | India

PostPosted: Tue Feb 05, 2008 10:49 pm    Post subject: Reply with quote

Okay. Your fstab seems to be in order.

Now let's try it without the initrd, since you have all filesystem drivers compiled
into the kernel, it should work.

Code:

boot=/dev/hdb2
device=/pci@f20000000/pci-bridge@d/mac-io@7/ata-4@1f000/disk@1:

install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
timeout=30

image=/boot/vmlinuz
label=Linux
read-only
root=/dev/hdb4
partition=4


I cleaned it up a bit as well, so you know what's going on. See if it works like this.
It's interesting that it's looking for the 69th partition on hdc on boot in your error
message...

EDIT: backup your existing yaboot.conf, replace the current one with the one
above and run ybin -v
_________________
// k
MySpace. | Website.
Back to top
View user's profile Send private message
intimidat0r
n00b
n00b


Joined: 15 Oct 2005
Posts: 55
Location: Rest0re.org

PostPosted: Tue Feb 05, 2008 11:26 pm    Post subject: Reply with quote

Aha! I deleted the initrd and now it works. Didn't anticipate that one. Thanks man. :D
_________________
Rest0re.org: brought to you by the language C and the number F.
Back to top
View user's profile Send private message
std
n00b
n00b


Joined: 05 Aug 2005
Posts: 7

PostPosted: Sun Jun 22, 2008 12:05 am    Post subject: Reply with quote

There seem to be a handful of threads with the same problem here, so I'll start by kindly apologizing if I'm posting in the wrong one.

I'm trying to install Gentoo on an iBook G3 600. I'm using yaboot as my bootloader -- or at least, I'm trying to; upon booting, I get this error:

Code:
<a list of all partitions>
No filesystem could mount root, tried: ext3 ext2 iso9660
Kernel panic - not syncinng: VFS: Unable to mount root fs on unknown-bloc(3,5)


It kindda baffles me (having installed Gentoo before, albeit only on x86 systems). The fact that none of those filesystems can mount root is unsurprising -- I'm using reiserfs for my root partition.

However, I am at loss figuring why reiserfs isn't being tried: it is compiled in the kernel, along with Apple partition map support. The partition I am specifying (/dev/hda5) in yaboot.conf is most certainly formatted as reiserfs, it is not corrupted, and I am not using an initrd image (since I've got the reiserfs drivers compiled in my kernel, not as a module, I don't need one). The boot partition yaboot uses (i.e. the 800K one is HFS.

Do you have any hints as to what I am missing? Despite skimming through the yaboot documentation, I'm unable to find any conclusive way of convincing Linux to try using reiserfs for its root menu. Any pointer to that would be greatly apreciated.

Thanks in advance.


Edit: in case it's needed, my fstab looks like this:

Code:
/dev/hda5 / reiserfs noatime 0 1
/dev/hda6 none swap sw 0 0
/dev/hda7 /home reiserfs noatime 0 1


The apple bootstrap partition is /dev/hda8 (don't ask about the funny layout :) ).
_________________
When in doubt about what fancy algorithm to use, use brute force.
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Mon Jun 23, 2008 4:32 pm    Post subject: Reply with quote

If you have reiser compiled into the kernel, the next likely problem is lack of the disk IO driver in the kernel. Scroll back after the panic and look to see if the kernel ever saw the disk drives/partitions. If not, likely no driver.
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Jun 24, 2008 3:27 pm    Post subject: Reply with quote

I would also suggest starting the configuration process with:

Code:

make pmac32_defconfig


This will create a default configuration with most common hardware already enabled. Starting from this configuration usually works better than from the empty initial config.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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