Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on PPC
  • Search

Is this libata thing relevant in this case ? [SOLVED]

Have a PowerPC specific problem? This is the spot.
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
mounty1
l33t
l33t
User avatar
Posts: 955
Joined: Thu Jul 06, 2006 3:17 pm
Location: Queensland

Is this libata thing relevant in this case ? [SOLVED]

  • Quote

Post by mounty1 » Mon May 24, 2010 4:35 am

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.

Code: Select all

...
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
Last edited by mounty1 on Tue May 25, 2010 12:10 pm, edited 1 time in total.
Michael Mounteney
Top
sebaro
Veteran
Veteran
User avatar
Posts: 1141
Joined: Mon Jul 03, 2006 5:49 am
Location: Romania
Contact:
Contact sebaro
Website

  • Quote

Post by sebaro » Mon May 24, 2010 6:27 am

As I can see you have the old IDE/ATA enabled also in kernel. Disable all IDE/ATA and use only libata.
Top
mounty1
l33t
l33t
User avatar
Posts: 955
Joined: Thu Jul 06, 2006 3:17 pm
Location: Queensland

Still don't get it

  • Quote

Post by mounty1 » Mon May 24, 2010 12:44 pm

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.
Last edited by mounty1 on Mon May 24, 2010 1:51 pm, edited 1 time in total.
Michael Mounteney
Top
sebaro
Veteran
Veteran
User avatar
Posts: 1141
Joined: Mon Jul 03, 2006 5:49 am
Location: Romania
Contact:
Contact sebaro
Website

Re: Still don't get it

  • Quote

Post by sebaro » Mon May 24, 2010 1:49 pm

mounty1 wrote:but there are still no /dev/sda* devices.
Aren't there /dev/hdX devices?

Code: Select all

CONFIG_IDE=y
Means you have old IDE/ATA support in kernel, which is loaded at boot.

For libata you need only

Code: Select all

CONFIG_ATA=y
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".
Top
mounty1
l33t
l33t
User avatar
Posts: 955
Joined: Thu Jul 06, 2006 3:17 pm
Location: Queensland

no devices created

  • Quote

Post by mounty1 » Mon May 24, 2010 1:55 pm

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
Top
mounty1
l33t
l33t
User avatar
Posts: 955
Joined: Thu Jul 06, 2006 3:17 pm
Location: Queensland

SATA devices not configured in /dev (Apple G5 ppc) [SOLVED]

  • Quote

Post by mounty1 » Tue May 25, 2010 2:01 am

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.
Last edited by mounty1 on Tue May 25, 2010 10:35 pm, edited 1 time in total.
Michael Mounteney
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Tue May 25, 2010 3:11 am

Did you try SystemRescueCD ?

If so, is it working ?
Top
mounty1
l33t
l33t
User avatar
Posts: 955
Joined: Thu Jul 06, 2006 3:17 pm
Location: Queensland

what ezz zes systemrescue CD ?

  • Quote

Post by mounty1 » Tue May 25, 2010 3:28 am

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
Top
sebaro
Veteran
Veteran
User avatar
Posts: 1141
Joined: Mon Jul 03, 2006 5:49 am
Location: Romania
Contact:
Contact sebaro
Website

  • Quote

Post by sebaro » Tue May 25, 2010 9:32 am

http://forums.gentoo.org/viewtopic-t-827884.html
http://forums.gentoo.org/viewtopic-t-824447.html

Try other versions of udev.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Tue May 25, 2010 11:18 am

#CONFIG_SYSFS_DEPRECATED=y
#CONFIG_SYSFS_DEPRECATED_V2=y
disable this so udev could work properly
Top
mounty1
l33t
l33t
User avatar
Posts: 955
Joined: Thu Jul 06, 2006 3:17 pm
Location: Queensland

That's it !

  • Quote

Post by mounty1 » Tue May 25, 2010 12:09 pm

krinn wrote:
#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 (http://forums.gentoo.org/viewtopic-t-829330.html) I'll have a very nice desktop system.
Michael Mounteney
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Tue May 25, 2010 3:59 pm

Sounds like udev, do you have it in boot for the old way to boot and in sysinit for openrc?
Top
mounty1
l33t
l33t
User avatar
Posts: 955
Joined: Thu Jul 06, 2006 3:17 pm
Location: Queensland

All solved now

  • Quote

Post by mounty1 » Tue May 25, 2010 10:35 pm

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. http://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
Top
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

  • Quote

Post by tomk » Wed May 26, 2010 9:15 am

Merged from [post=6293449]here[/post].
Search | Read | [topic=119906]Answer[/topic] | [topic=28820]Report[/topic] | [topic=160179]Strip[/topic]
Top
Post Reply

14 posts • Page 1 of 1

Return to “Gentoo on PPC”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic