LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Enabling SATA support in stock 12.0 kernel (http://www.linuxquestions.org/questions/slackware-14/enabling-sata-support-in-stock-12-0-kernel-620940/)

rshepard 02-13-2008 06:10 PM

Enabling SATA support in stock 12.0 kernel
 
I replaced a dying SCSI cd-rw drive with a SATA cd-rw/dvd-r/etc. drive. It's hooked to the SATA3 connector on the ASUS motherboard, but is not seen by the system. This weekend I will upgrade from -11.0 to -12.0, and I'd like to make the drive usable with the stock kernel. How should I do this?

Or, should I grab the tarball for the latest kernel from kernel.org, configure and build it here?

Rich

slackass 02-13-2008 08:26 PM

I have a asus p5vd2-vm se on one of my boxes that Slack 12 would not detect the sata at all.
But Slack 12 Current did perfectly with stock kernel

H_TeXMeX_H 02-14-2008 03:03 AM

What SATA controller do you have. Post the output of '/sbin/lspci -vv' (really just the part about SATA controller).

rshepard 02-14-2008 12:50 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 3056605)
What SATA controller do you have. Post the output of '/sbin/lspci -vv' (really just the part about SATA controller).

The board is an Asus M2NPV-VM.

lspci reports:

00:0e.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev a1) (
prog-if 85 [Master SecO PriO])
Subsystem: ASUSTeK Computer Inc. Unknown device 81c0
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0 (750ns min, 250ns max)
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at 09f0 [size=8]
Region 1: I/O ports at 0bf0 [size=4]
Region 2: I/O ports at 0970 [size=8]
Region 3: I/O ports at 0b70 [size=4]
Region 4: I/O ports at e000 [size=16]
Region 5: Memory at fe02d000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot
-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [b0] Message Signalled Interrupts: 64bit+ Queue=0/2 Enable
-
Address: 0000000000000000 Data: 0000
Capabilities: [cc] HyperTransport: MSI Mapping

00:0f.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev a1) (
prog-if 85 [Master SecO PriO])
Subsystem: ASUSTeK Computer Inc. Unknown device 81c0
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0 (750ns min, 250ns max)
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at 09e0 [size=8]
Region 1: I/O ports at 0be0 [size=4]
Region 2: I/O ports at 0960 [size=8]
Region 3: I/O ports at 0b60 [size=4]
Region 4: I/O ports at cc00 [size=16]
Region 5: Memory at fe02c000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot
-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [b0] Message Signalled Interrupts: 64bit+ Queue=0/2 Enable
-
Address: 0000000000000000 Data: 0000
Capabilities: [cc] HyperTransport: MSI Mapping

Rich

H_TeXMeX_H 02-14-2008 03:32 PM

Well, it looks like the controller is recognized properly, and I assume there is also a line like this in there:
Code:

SATA controller: nVidia Corporation MCP51 Serial ATA Controller (rev a1)
I know that for Slackware 12.0 support for this controller is built-in:
Code:

  ┌────────────────────────── NVIDIA SATA support ──────────────────────────┐
  │ CONFIG_SATA_NV:                                                        │ 
  │                                                                        │ 
  │ This option enables support for NVIDIA Serial ATA.                      │ 
  │                                                                        │ 
  │ If unsure, say N.                                                      │ 
  │                                                                        │ 
  │ Symbol: SATA_NV [=y]                                                    │ 
  │ Prompt: NVIDIA SATA support                                            │ 
  │  Defined at drivers/ata/Kconfig:62                                    │ 
  │  Depends on: ATA && PCI                                                │ 
  │  Location:                                                            │ 
  │    -> Device Drivers                                                  │ 
  │      -> Serial ATA (prod) and Parallel ATA (experimental) drivers      │ 
  │        -> ATA device support (ATA [=y])                                │

But, the same option is NOT built-in in the stock Slackware 11.0 kernel (huge26.s), so maybe if you enable it if it's there or upgrade to a newer kernel and then enable it, it will work. Or just upgrade to Slackware 12.0.

rshepard 02-15-2008 12:30 PM

The SATA paragraph is not present.

I'll upgrade to 12.0 and check that it's working properly with that release and the newer kernel.

Thanks very much,

Rich

jets0n 02-15-2008 03:19 PM

Are you sure that it is not being detected? Have you checked the /dev folder for anything other than your hard drive? dmesg output? perhaps it is just detected as IDE. Try appending "combined_mode=libata" in your lilo.conf (if you use LILO, that is)

rshepard 02-16-2008 04:01 PM

Quote:

Originally Posted by jets0n (Post 3058481)
Are you sure that it is not being detected? Have you checked the /dev folder for anything other than your hard drive? dmesg output? perhaps it is just detected as IDE. Try appending "combined_mode=libata" in your lilo.conf (if you use LILO, that is)

Yes, I've checked under Slackware-11.0, and the drives are not recognized. I've not rebooted for a while.

I'll wait until I upgrade the distribution and see if the drive is recognized then. I'm sure it will be.

Thanks,

Rich


All times are GMT -5. The time now is 11:51 AM.