Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel booting woes [solved]
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
LinseyGiles
n00b
n00b


Joined: 19 Nov 2005
Posts: 2

PostPosted: Sat Nov 19, 2005 8:12 pm    Post subject: genkernel booting woes [solved] Reply with quote

Hi,

I'm having real trouble getting a mini mac to boot up. It's almost there - (after almost a day at it !).

I've built a genkernel to get me going (as I thought it would be easier !)

The system starts to boot, but then the kernel panics with the following message

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

My yaboot.conf looks as follows



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
defaultos=Linux
delay=10
ofboot=hd:2


image=/boot/kernel-genkernel-ppc-2.6.12-gentoo-r6
label=Linux
partition=4
read-only
append="root=/dev/ram0 init=/linuxrc real_root=/dev/hda4 vga=791 splash=silent video=radeonfb:1280x1024-32"


and I have the following files in /boot

System.map-genkernel-ppc-2.6.12-gentoo-r6
initramfs-genkernel-ppc-2.6.12-gentoo-r6
kernel-genkernel-ppc-2.6.12-gentoo-r6
kernelz-2.6.12-gentoo-r6

I've got the partitions setup so that according to mac-fdisk /dev/hda they look as follows

/dev/hda1 Apple_partition_map
/dev/hda2 Apple_Bootstrap
/dev/hda3 swap
/dev/hda4 root


Trogging though the forums has not helped much on this one (but it has got me this far), so what am I missing ??????




Cheers



Linsey


Last edited by LinseyGiles on Sun Nov 20, 2005 9:10 am; edited 1 time in total
Back to top
View user's profile Send private message
skoorbevad
n00b
n00b


Joined: 13 Jan 2003
Posts: 27
Location: Atlanta, GA

PostPosted: Sat Nov 19, 2005 10:34 pm    Post subject: Reply with quote

It's definately a kernel issue, but consider the following:

/etc/yaboot.conf:
Code:


## yaboot.conf generated by yabootconfig 1.0.8
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

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

image=/boot/vmlinux
        label=Linux
        root=/dev/hda4
        partition=4
        read-only

enableofboot
enablecdboot


Edit the image= and partition= to suit your particular configuration.

Also, make sure the following values are set in /usr/src/linux/.config:

Code:

CONFIG_PPC_PMAC=y
CONFIG_BLK_DEV_IDE_PMAC=y
CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST=y
CONFIG_BLK_DEV_IDEDMA_PMAC=y
CONFIG_BLK_DEV_IDE_PMAC_BLINK=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_PARTITION_ADVANCED=y
CONFIG_MAC_PARTITION=y


Look in your .config to make sure, if they arent set you can run genkernel with the '--menuconfig' option and search through the menus yourself to make sure they're set.

Alternatively, if you can get your hands on the 2.6.14-gentoo-r2 source (should be obtained by 'emerge gentoo-sources', as of today) you can downlod the eact kernel .config I used for my Mac Mini right here. Download it and rename it to /usr/src/linux/.config, then 'cd /usr/src/linux && make && make modules_install'. Copy the resulting /usr/src/linux/vmlinux into /boot, edit your /etc/yaboot.conf accordingly, run 'ybin -v', reboot and enjoy.

Note: My kernel .config doesn't include support for sound or AGP since I'm only using my Mini to serve files and web pages in a headless configuration. Running 'make menuconfig' in /usr/src/linux will let you add that stuff in -- just look for agpgart and compile in basic sound support as a module.

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


Joined: 19 Nov 2005
Posts: 2

PostPosted: Sun Nov 20, 2005 9:10 am    Post subject: Reply with quote

I've kind of solved this now - unfortuantly emerging the kernel again didn't give me the newer kernel, however using [url]http://aaltonen.us/archive/2005/02/11/linux-on-the-mac-mini/ I managed to get it to boot. No networking yet - but it has booted properly so it's probably just a module issue.


Thanks all.


Lins[/url]
Back to top
View user's profile Send private message
marelven
n00b
n00b


Joined: 11 Jun 2005
Posts: 15
Location: Montreal, Canada

PostPosted: Wed Mar 01, 2006 4:37 pm    Post subject: Reply with quote

Hi everyone,

I wanted to thank skoorbevad for his help, especially the .config sample.
I had the same problem as LinseyGiles and the code below helped me a lot ! :D

Code:
CONFIG_PPC_PMAC=y
CONFIG_BLK_DEV_IDE_PMAC=y
CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST=y
CONFIG_BLK_DEV_IDEDMA_PMAC=y
CONFIG_BLK_DEV_IDE_PMAC_BLINK=y


It's you guys who make using Gentoo such a pleasure.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 01, 2006 4:45 pm    Post subject: Reply with quote

Just a follow up. If you are compiling a kernel by hand, *please* run a make defconfig as suggested by the handbook:
http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1&chap=7#doc_chap3

It will set reasonable defaults including these options, instead of forcing you to struggle with a blank config and issues like these.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
marelven
n00b
n00b


Joined: 11 Jun 2005
Posts: 15
Location: Montreal, Canada

PostPosted: Thu Mar 02, 2006 1:06 am    Post subject: Reply with quote

Hi,

Well, I did a make defconfig before I started configuring my kernel.
And yes, I did deactivate the CONFIG_PPC_PMAC option because, until skoorbevad's post, I didn't think it was appropriate since I own a MacMini and not a PowerMac.
But honestly, the name of this option can be misleading.

Anyway, the problem is resolved and I learned a thing or two...
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