LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 01-23-2005, 04:29 PM   #1
puremourning
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Rep: Reputation: 15
ATAPI over SATA Plextor Px-712sa


Hey there,

I have a SATA plextor px-712sa dvd writer, which doesnt seem to be detected/working in either FC3 (2.6.9 or 2.6.10) or Gentoo (2.6.9 or 2.6.10).

Does anyone know if

a) ATAPI is supported over SATA
b) this device works under linux.

?

i've googled a fair bit, but to no avail. Its been quite frustrating as I read somewhere that atapi is in libata in 2.6.10 kernel, but theres still nothing recognising the drive. not even cdrecord --scanbus.

any help would be great.

regards

EDIT: i typed the model number wrong its px-7125SA (doh) hopefully this will make more sense now?

Last edited by puremourning; 01-26-2005 at 11:46 AM.
 
Old 01-24-2005, 11:45 AM   #2
eeades
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
I have this drive working perfectly under Slackware 9.1 and 10.0, on an Intel 875 chipset (built-in SATA). What type of SATA controller is it (some do Not support atapi under any OS). If you have SATA through your chipset, I would use that.

Eric
 
Old 01-26-2005, 11:41 AM   #3
puremourning
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
its an nforce 4 motherboard via the sata_nv driver. could this be an issue with the drver, as i have read that the nforce3 supported this drive (so i assume the nforce 4 does too). I wouldn't like to have to install windoze to check. maybe i could file a bug report against the driver?

this is what dmesg says on boot (it sees the device, ish, but does nothing). do i need to tell it to use a scsi emulation?

Code:
libata version 1.02 loaded.
sata_nv version 0.03
ACPI: PCI interrupt 0000:00:07.0[A] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:07.0 to 64
ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xCC00 irq 11
ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xCC08 irq 11
ata1: no device found (phy stat 00000000)
scsi0 : sata_nv
ata2: dev 0 cfg 49:2f00 82:7c6b 83:7f09 84:4063 85:7c69 86:3e01 87:4063 88:407f
ata2: dev 0 ATA, max UDMA/133, 586114704 sectors: lba48
ata2: dev 0 configured for UDMA/133
scsi1 : sata_nv
  Vendor: ATA       Model: Maxtor 6B300S0    Rev: BANC
  Type:   Direct-Access                      ANSI SCSI revision: 05
ACPI: PCI interrupt 0000:00:08.0[A] -> GSI 10 (level, low) -> IRQ 10
PCI: Setting latency timer of device 0000:00:08.0 to 64
ata3: SATA max UDMA/133 cmd 0x9E0 ctl 0xBE2 bmdma 0xE000 irq 10
ata4: SATA max UDMA/133 cmd 0x960 ctl 0xB62 bmdma 0xE008 irq 10
ata3: no device found (phy stat 00000000)
scsi2 : sata_nv
ata4: dev 0 cfg 49:0f00 82:0000 83:0000 84:0000 85:0000 86:0000 87:0000 88:0407
ata4: dev 0 ATAPI, max UDMA/33
ata4: dev 0 configured for UDMA/33
scsi3 : sata_nv
SCSI device sda: 586114704 512-byte hdwr sectors (300091 MB)
SCSI device sda: drive cache: write back
 /dev/scsi/host1/bus0/target0/lun0: p1 p2 < p5 p6 p7 >
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
i would have expected something like attached scsi disk sda2 at scsi2,chan... etc for the dvd drive. does anyone understand the ata4: lines ? i'm really easger to get this working.
 
Old 01-27-2005, 12:49 PM   #4
eeades
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
The ata4 lines look like they are talking about the DVD drive. Have you checked for /dev/hda? as I would guess that is where it would show up.

Eric
 
Old 01-27-2005, 01:37 PM   #5
puremourning
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
the only hd* i have is hdc which is my other DVD-ROM drive (PATA)

Code:
ben $ ls /dev/hd*
/dev/hdc
ben $ ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda5  /dev/sda6  /dev/sda7

/dev/sd:
c1b0t0u0  c1b0t0u0p1  c1b0t0u0p2  c1b0t0u0p5  c1b0t0u0p6  c1b0t0u0p7
*frustrating*
 
Old 01-27-2005, 01:40 PM   #6
puremourning
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
ou tof interest, what do you have in dmesg for your -working- system? this may give me some clues.
 
Old 01-28-2005, 06:27 AM   #7
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Quote:
Originally posted by puremourning
its an nforce 4 motherboard via the sata_nv driver.
...
i would have expected something like attached scsi disk sda2 at scsi2,chan... etc for the dvd drive. does anyone understand the ata4: lines ? i'm really easger to get this working.
I have essentially the same problem, with a Plextor PX-716SA, VIA controller. The BIOS recognizes the Plextor, and Linux 2.6.10 sort of sees it:
Code:
/var/log/debug:
Jan 27 17:19:03 hinalea kernel: sata_via version 1.0
Jan 27 17:19:03 hinalea kernel: ata3: dev 0 cfg 49:0f00 82:0000 83:0000 84:0000 85:0000 86:0000 87:0000 88:00
1f
/var/log/messages:
Jan 27 17:19:03 hinalea kernel: sata_via(0000:00:0f.0): routed to hard irq line 10
Jan 27 17:19:03 hinalea kernel: ata3: SATA max UDMA/133 cmd 0xD400 ctl 0xD002 bmdma 0xC000 irq 20
Jan 27 17:19:03 hinalea kernel: ata4: SATA max UDMA/133 cmd 0xC800 ctl 0xC402 bmdma 0xC008 irq 20
Jan 27 17:19:03 hinalea kernel: ata3: dev 0 ATAPI, max UDMA/66
Jan 27 17:19:04 hinalea kernel: ata3: dev 0 configured for UDMA/66
Jan 27 17:19:04 hinalea kernel: scsi2 : sata_via
but looking in /proc and /dev, I don't see any sign of a device to mount.
 
Old 01-30-2005, 01:45 PM   #8
puremourning
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
what is the kernel module called for the Intel 875 chipset? i will look at the source and see if it is indeed the drivers that are causing the problem. it seems sata_nv and sata_via just ignore the device. perhaps the itel driver does something interesting with it.
 
Old 01-31-2005, 08:47 PM   #9
eeades
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
The kernel module for the 875 chipset is sata_PIIX (or really close, I cannot look it up right now). That is really strange that it does not show up. I would think that it would show up as /dev/sdb from the looks of things (and I think it has when I have installed SUSE, but I currently am running Slack with the chipset in compatibility mode, not native, so everything shows up as /dev/hd?). If only the Intel chipsets currently work with SATA optical drives then no wonder they haven't really caught on yet.

Eric
 
Old 02-01-2005, 01:00 AM   #10
puremourning
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
SOLVED AT LAST! solution is to edit include/linux/libata.h and change #undef ATA_ENABLE_ATAPI to #define ATA_ENABLE_ATAPI and recompile kernel. caveat is that it only works in kernel 2.6.10 which is broken on my system. boo. looks like i will be stuck with only 2 usb ports until its fixed.
 
Old 02-01-2005, 09:55 AM   #11
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Quote:
Originally posted by puremourning
SOLVED AT LAST! solution is to edit include/linux/libata.h and change #undef ATA_ENABLE_ATAPI to #define ATA_ENABLE_ATAPI and recompile kernel. caveat is that it only works in kernel 2.6.10 which is broken on my system. boo. looks like i will be stuck with only 2 usb ports until its fixed.
I tried this (Linux 2.6.10, sata_via), and it sort of partially worked. During bootup, Linux reported the name of the drive, but then hung. I had to unplug the power. I had had a cdrom in the drive, so I took this out and tried again. This time I got the message "scsi scan 96 byte inquiry failed. Consider BLIST_INQUIRY_96 for this device." It hung at this point.

Looking at the source in scsi_devinfo.c (where I guess the BLIST flag could be added), I see comments that some drives hang when luns are probed, and I recalled in configuring the kernel I had checked the options to probe all luns and enable vendor-specific options. I unchecked these options, recompiled and tried again. Now it's back to ground zero. The drive isn't seen.

I don't know exactly how to add the BLIST flag, and I haven't tried that yet.
 
Old 02-01-2005, 10:44 AM   #12
puremourning
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
i'm sorry, you've stumped me. for me, it-just-works(tm). Try the kernel dev mailing list for info on how to set that flag. its a brand new drive, so tetsing will have been minimal. looks like we're the guinaepigs!
 
Old 02-17-2005, 02:46 PM   #13
jourbans
LQ Newbie
 
Registered: Dec 2004
Distribution: Gentoo
Posts: 12

Rep: Reputation: 0
You might want to try the latest libata dev kernel patches for 2.6.11-rc4:

http://www.kernel.org/pub/linux/kern...garzik/libata/

I'm fighting with the same problem. Try to get this model DVDRW to work in a "pure" sata configuration. I haven't gotten it to work so far, but I haven't finished playing with it yet. I does appear that ATA_ENABLE_ATAPI is definite in libata.h. g/l!
 
Old 05-22-2005, 12:29 PM   #14
puremourning
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
did you manage to get it working?

i use gentoo-sources (gentoo pathched kernel) and i'm unsure how to apply those patches. as of now the 2.6.12 kernels aren't available in gentoo portage so i can't try them - i believe libata is updated in 2.6.12?
 
Old 05-23-2005, 03:32 PM   #15
jourbans
LQ Newbie
 
Registered: Dec 2004
Distribution: Gentoo
Posts: 12

Rep: Reputation: 0
As of right now, using 2.6.12-rc3, and enabling ATA_ENABLE_ATAPI in libata.h, I can do the following:
- Mount cd's and dvd's to my filesystem
- Watch DVD's (reading the drive as a raw device)
- Rip CD's with cdparanoia (more raw device reading again I believe)

I can't burn with it though. Looks like the packet writing code isn't quite there yet.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SATA Plextor with Mandrake 10.2rc x86_64 LinuxEL Linux - Hardware 9 07-06-2005 01:28 PM
SATA and a Plextor PX-176SA DVD R drive jeru Debian 1 05-25-2005 08:47 PM
px-7125a SATA dvd burner puremourning Linux - Hardware 1 05-11-2005 09:15 PM
sata plextor dvd burner with fedora core 3 x86 64 ph34r3d Linux - Hardware 4 02-16-2005 11:34 AM
Plextor CD-RW Problem Ynog Linux - Hardware 4 07-13-2003 05:14 AM


All times are GMT -5. The time now is 11:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration