| View previous topic :: View next topic |
| Author |
Message |
LinseyGiles n00b

Joined: 19 Nov 2005 Posts: 2
|
Posted: Sat Nov 19, 2005 3:12 pm Post subject: genkernel booting woes [solved] |
|
|
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 4:10 am; edited 1 time in total |
|
| Back to top |
|
 |
skoorbevad n00b

Joined: 13 Jan 2003 Posts: 27 Location: Atlanta, GA
|
Posted: Sat Nov 19, 2005 5:34 pm Post subject: |
|
|
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 |
|
 |
LinseyGiles n00b

Joined: 19 Nov 2005 Posts: 2
|
Posted: Sun Nov 20, 2005 4:10 am Post subject: |
|
|
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 |
|
 |
marelven n00b


Joined: 11 Jun 2005 Posts: 15 Location: Montreal, Canada
|
Posted: Wed Mar 01, 2006 11:37 am Post subject: |
|
|
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 !
| 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 |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
|
| Back to top |
|
 |
marelven n00b


Joined: 11 Jun 2005 Posts: 15 Location: Montreal, Canada
|
Posted: Wed Mar 01, 2006 8:06 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|