View previous topic :: View next topic |
Author |
Message |
mounty1 l33t
Joined: 06 Jul 2006 Posts: 934 Location: Queensland
|
Posted: Mon May 24, 2010 4:35 am Post subject: Is this libata thing relevant in this case ? [SOLVED] |
|
|
Slowly but surely Gentoo on my PowerMac dual G5 is coming to life. One remaining problem is that the disk block devices are not created; that is, there are no /dev/sda* devices. Strangely, this does not stop the kernel from booting. During booting, it announces that it is remounting root read/write and just carries on. fsck.ext3 complains that it can't find the superblock, but that's all. lspci: | ...
0001:05:0c.0 IDE interface: Broadcom K2 SATA | and CONFIG_SATA_SVW is enabled. So what else is needed to get block devices working ? .config posted at http://www.pastebin.org/273114 _________________ Michael Mounteney
Last edited by mounty1 on Tue May 25, 2010 12:10 pm; edited 1 time in total |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Mon May 24, 2010 6:27 am Post subject: |
|
|
As I can see you have the old IDE/ATA enabled also in kernel. Disable all IDE/ATA and use only libata. |
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 934 Location: Queensland
|
Posted: Mon May 24, 2010 12:44 pm Post subject: Still don't get it |
|
|
Sorry to be a bit dim but how, exactly, do I use libata ? In particular, I've greped ATA in /proc/config.gz from the installation CD and compared that output with grep ATA .config and barring some new supported hardware in the newer kernel, the two are the same. I presume that libata is actually a boot time loadable driver but I can't see how to make it be created.
(later)
I've found libata.o and nmed it. It contains symbols such as sata_pmp_scr_read and sata_scr_read which also appear in the built kernel, so it seems that libata.o is being included in the kernel --- but there are still no /dev/sda* devices.
(still later)
If I mknod /dev/sda7 b 8 7 it works --- I can mount the device and look at the files on it. _________________ Michael Mounteney
Last edited by mounty1 on Mon May 24, 2010 1:51 pm; edited 1 time in total |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Mon May 24, 2010 1:49 pm Post subject: Re: Still don't get it |
|
|
mounty1 wrote: | but there are still no /dev/sda* devices. |
Aren't there /dev/hdX devices?
Means you have old IDE/ATA support in kernel, which is loaded at boot.
For libata you need only
You have to remove all IDE support from kernel config, by hand or you can use "make menuconfig" and disable "ATA/ATAPI/MFM/RLL Support". |
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 934 Location: Queensland
|
Posted: Mon May 24, 2010 1:55 pm Post subject: no devices created |
|
|
No devices are created automatically but if I issue mknod /dev/sda7 b 8 7 for example, the device is created and can be mounted and read correctly. So it seems that the problem is the population of the /dev tree, not the inclusion of the driver software in the kernel.
I've now got CONFIG_IDE not set and CONFIG_ATA=Y so the kernel is a 'pure' libata link. The first attempt led to a panic on boot because it couldn't mount the root device but it seems it is necessary to have CONFIG_ATA_GENERIC=Y as well as CONFIG_SATA_SVW=Y (for the Broadcom K2 chipset that lspci reports). I'm not sure why that is the case. Still no /dev/hda* or /dev/sda* devices created automatically though; but I can mknod them as described above.
sysfs is mounted on /sys type tmpfs so it's not that.
Package sys-apps/makedev is not installed --- is that significant ? _________________ Michael Mounteney |
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 934 Location: Queensland
|
Posted: Tue May 25, 2010 2:01 am Post subject: SATA devices not configured in /dev (Apple G5 ppc) [SOLVED] |
|
|
Hello, I'm trying to set up Gentoo on an Apple Powermac dual G5 and while it is bootable and running, there are some problems. One is that for some reason, the disk devices are not configured in /dev. That is, while /dev contains fb0, ttynn etc., it does not contain the expected sda1, sda2 etc. for the SATA HD. As far as I can tell, only the sda devices are missing. There are entries under /sys such as /sys/block/sda/sda1. Also, I can mknod /dev/sda5 b 8 5 for example and the device is mountable and useable as normal. So it seems that for some reason, udev is not creating the HD nodes. Can anyone suggest why ? The minimal installation CD does create the nodes but I can't see what is the crucial difference between the installation setup and the installed setup. _________________ Michael Mounteney
Last edited by mounty1 on Tue May 25, 2010 10:35 pm; edited 1 time in total |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue May 25, 2010 3:11 am Post subject: |
|
|
Did you try SystemRescueCD ?
If so, is it working ? |
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 934 Location: Queensland
|
Posted: Tue May 25, 2010 3:28 am Post subject: what ezz zes systemrescue CD ? |
|
|
No, I don't know what the system rescue CD is; but as I said, the installation CD does create the /dev/sda* nodes correctly, so another Linux boot CD doesn't really prove anything. The problem is that the nodes are not created, even though support for them is in my kernel, as shown by the fact that I can create the nodes manually. _________________ Michael Mounteney |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue May 25, 2010 11:18 am Post subject: |
|
|
Quote: | #CONFIG_SYSFS_DEPRECATED=y
#CONFIG_SYSFS_DEPRECATED_V2=y |
disable this so udev could work properly |
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 934 Location: Queensland
|
Posted: Tue May 25, 2010 12:09 pm Post subject: That's it ! |
|
|
krinn wrote: | Quote: | #CONFIG_SYSFS_DEPRECATED=y
#CONFIG_SYSFS_DEPRECATED_V2=y |
disable this so udev could work properly | That was it ! Now fully sdaed ! Thanks also to sebaro who was very patient --- like him, I was looking at blaming udev, especially as a kernel made with make g5_defconfig suffered from the sda problem, so I never thought to look at kernel configuration.
Now if I can only get the screens working (https://forums.gentoo.org/viewtopic-t-829330.html) I'll have a very nice desktop system. _________________ Michael Mounteney |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue May 25, 2010 3:59 pm Post subject: |
|
|
Sounds like udev, do you have it in boot for the old way to boot and in sysinit for openrc? |
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 934 Location: Queensland
|
Posted: Tue May 25, 2010 10:35 pm Post subject: All solved now |
|
|
Mike Hunt wrote: | Sounds like udev, do you have it in boot for the old way to boot and in sysinit for openrc? | I thought so too, but actually it wasn't. https://forums.gentoo.org/viewtopic-t-829329.htmlSorry to waste your time but I thought the other thread had died but suddenly it revived. _________________ Michael Mounteney |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|