Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't boot after installation (IDE/ATA related)
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
strider2003
Tux's lil' helper
Tux's lil' helper


Joined: 14 Sep 2003
Posts: 149
Location: Spain

PostPosted: Sat Nov 06, 2010 11:21 am    Post subject: Can't boot after installation (IDE/ATA related) Reply with quote

I have just installed gentoo on an iBook G4, following the guidelines in the ppc handbook. My problem is that I can't boot the system.

First, I followed the handbook, and compiled a kernel (2.6.34) with the following options, as they come by default:
Code:

<*> ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->   
< > Serial ATA and Parallel ATA drivers  --->   
General setup  --->     
[*] enable deprecated sysfs features to support old userspace tools


I configured yaboot with yabootconfig, the default option in the handbook.

When the system booted, I got this error:
Code:
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/hda4 is mounted.


Then, I read this post (http://forums.gentoo.org/viewtopic-t-841573-start-0.html), and compiled a new kernel with the following options:
Code:

< > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->   
 <*> Serial ATA and Parallel ATA drivers  --->   
 <*>       VIA PATA support
 <*>     Generic ATA support
General setup  --->     
[ ] enable deprecated sysfs features to support old userspace tools


With this kernel, I get the following error:
Code:

VFS: Cannot open root device "sda4" or unknown-block(0,0)


Then, I read this post (http://forums.gentoo.org/viewtopic-t-837081.html) and configured yaboot manually. Yaboot seems to be correctly installed, but I get the same errors. I have tried changing hd* and sd* in both /etc/fstab and /etc/yaboot.conf, without success.

These are some of my configs, at this moment:
Code:

# mac-fdisk -l /dev/hda
/dev/hda1  Apple_partition_map  Apple  Partition map
/dev/hda2  Apple_Bootstrap        bootstrap  NewWorld bootblock
/dev/hda3  Apple_UNIX_SVR2     Swap       Linux swap
/dev/hda4  Apple_UNIX_SVR2     root         Linux native

# grep -v "#" /etc/fstab
/dev/sda4  /  ext3        noatime 0 1
/dev/sda3  none  swap       sw         0 0
/dev/cdrom  /mnt/cdrom    auto    noauto,ro 0 0
proc           /proc    proc  defaults 0 0
shm           /dev/shm     tmpfs    nodev,nosuid,noexec 0 0

# grep -v "#" /etc/yaboot.conf
boot=/dev/hda2
ofboot=hd:2
device=hd:
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
root=/dev/sda4
partition=4
image=/boot/kernel-2.6.34-gentoo-r12    <--- IDE support
  label=linux1
  read-only
image=/boot/kernel-2.6.34-gentoo-r12a  <--- ATA support
  label=linux2
  read-only


Remember that I have changed hd and sd values in both files. I suppose that I'm doing something wrong, but what?
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4610
Location: Saint Amant, Acadiana

PostPosted: Sat Nov 06, 2010 11:39 am    Post subject: Reply with quote

Forget IDE and hdx devices. They are obsolete.
The error you are getting implies correct driver for your HDD controller is missing. What controller you have?
Back to top
View user's profile Send private message
strider2003
Tux's lil' helper
Tux's lil' helper


Joined: 14 Sep 2003
Posts: 149
Location: Spain

PostPosted: Sat Nov 06, 2010 11:43 am    Post subject: Reply with quote

Thanks a lot for your answer. How can I find out which is my HDD controller?
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4610
Location: Saint Amant, Acadiana

PostPosted: Sat Nov 06, 2010 12:10 pm    Post subject: Reply with quote

Code:
lspci -nn

This will display your hardware with PCI IDs. You can use http://kmuto.jp/debian/hcl/ to determine which driver to use.
Back to top
View user's profile Send private message
strider2003
Tux's lil' helper
Tux's lil' helper


Joined: 14 Sep 2003
Posts: 149
Location: Spain

PostPosted: Sat Nov 06, 2010 12:26 pm    Post subject: Reply with quote

Ok, here it is:
Code:

# lspci -n

0000:00:0b.0 0600: 106b:0034
0000:00:10.0 0300: 1002:5c63 (rev 01)
0001:10:0b.0 0600: 106b:0035
0001:10:12.0 0280: 14e4:4320 (rev 03)
0001:10:17.0 ff00: 106b:003e
0001:10:18.0 0c03: 106b:003f
0001:10:19.0 0c03: 106b:003f
0001:10:1a.0 0c03: 106b:003f
0001:10:1b.0 0c03: 1033:0035 (rev 43)
0001:10:1b.1 0c03: 1033:0035 (rev 43)
0001:10:1b.2 0c03: 1033:00e0 (rev 04)
0002:20:0b.0 0600: 106b:0036
0002:20:0d.0 ff00: 106b:003b
0002:20:0e.0 0c00: 106b:0031 (rev 81)
0002:20:0f.0 0200: 106b:0032 (rev ff)

Testing this in the page you provided, the only hint I get is "UniNorth/Intrepid ATA/100", but I don't get controller info.
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4610
Location: Saint Amant, Acadiana

PostPosted: Sat Nov 06, 2010 11:04 pm    Post subject: Reply with quote

According to the page I linked to the driver is sungem, included in kernel since 2.6.25. Did you try it?
Back to top
View user's profile Send private message
blob999
n00b
n00b


Joined: 07 Jun 2009
Posts: 64
Location: NATO area

PostPosted: Sun Nov 07, 2010 12:26 am    Post subject: Reply with quote

sungem is the ethernet adaptor.

Here you can find a tuned iBook G4 (mid2005) kernel config:
http://preview.tinyurl.com/cruxppc-2-6-36-iBookG4
_________________
LinuxPPC user!
my blog: http://linuxpowerpc.blogspot.com/
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