farmerdan |
03-14-2004 02:48 PM |
2.4.xx to 2.6.4 and SCSI Emulation to IDE/ATAPI
Just finished, yesterday, migrating from kernel 2.4.26--Mandrake version--to 2.6.4--my version. I'm trying to get my CD player to play on either AlsaPlayer or XMMS. I can play audio files on both of these players, but not CD's.
I learned linux on 2.4.xxx in both RedHat and Linux and had just begun to understand SCSi-Emulation. I migrated to 2.6.4 because of the ALSA drivers and the native IDE/ATAPI drivers.
I may be getting two concepts confused, and, if I am, I would appreciate someone pointing that out to me. And BTW I have "googled" any and all error messages I have received and found noting appropriate, helpful or relevant.
Here is the output of dmesg with regard to my IDE devices and the versions of things I have in my box
Code:
dmesg
Linux version 2.6.4 (root@localhost) (gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)) #2 Sat Mar 13 12:49:55 CST 2004
....
hda: WDC WD800JB-00FSA0, ATA DISK drive
hdb: WDC WD800JB-00CRA1, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: Hewlett-Packard DVD Writer 300, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 1024KiB
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(66)
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 >
hdb: max request size: 128KiB
hdb: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=65535/16/63, UDMA(66)
/dev/ide/host0/bus0/target1/lun0: p1 p2 < p5 p6 p7 >
....
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
....
hdc: ATAPI 32X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
....
Then lsmod
Code:
# lsmod
Module Size Used by
....
ide_cd 35300 0
cdrom 33824 1 ide_cd
.......
And then lspci
Code:
# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 02)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 10)
My device is actually a CD/DVD read/write drive and I could possibly not have the correct driver compiled to get to the write functions. Right now, I just want to access it for playing and for files. All of the system information accurately reflects what I know of my hardware.
Back to the symptoms. As I said, neither XMMS (1.20) nor AlsaPlayer will play cd's. When I try to configure the input cd player plugin for XMMS (CD Audio Player 1.2.9[libcdaudio.so]), I point it to /dev/cdplayer, [cdplayer is a link that points to /dev/hdc. I did this so I wouldn't get "cdrom's" confused.] andw hen I "check drive," I get the error message
Code:
xmms
Failed to open devide /dev/cdplayer
Error: Permission denied
I tried to play a cd in aplayer from the command line. When I ran it as myself I got told "Permission denied." When I ran it as root I got "Error 1814."
Here's more info to wade through:
Code:
$ ls -alQ /dev/cdplayer /dev/hdc /dev/cdrom /dev/cdroms/
lr-xr-xr-x 1 root root 3 Mar 14 01:13 "/dev/cdplayer" -> "hdc"
lr-xr-xr-x 1 root root 13 Mar 14 07:39 "/dev/cdrom" -> "cdroms/cdrom0"
brw-rw---- 1 root disk 22, 0 Mar 14 01:13 "/dev/hdc"
"/dev/cdroms/":
total 0
drwxr-xr-x 1 root root 0 Dec 31 1969 "."/
drwxr-xr-x 1 root root 0 Dec 31 1969 ".."/
lr-xr-xr-x 1 root root 33 Dec 31 1969 "cdrom0" -> "../ide/host0/bus1/target0/lun0/cd"
And finally
Code:
# /sbin/hdparm /dev/hdc
/dev/hdc:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 1 (on)# /sbin/hdparm -i /dev/hdc
/dev/hdc:
Model=Hewlett-Packard DVD Writer 300, FwRev=3.00, SerialNo=
Config={ Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
* signifies the current active mode
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument
# /sbin/hdparm -i /dev/cdrom
/dev/cdrom:
Model=Hewlett-Packard DVD Writer 300, FwRev=3.00, SerialNo=
Config={ Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
* signifies the current active mode
Now that I've bored everyone to death with all the data here are my questions:[list=1][*]If this is a permissions problem where do I change them and to what?[*]If this is a configuration problem, how do I access the CD drive in /dev/?[*]If the problem is neither of the above, I would appreciate any pointers or knowlege anyone wants to transmit.[/list=1]
I also apologize if I provided any extraneous information. I have edited the output of my commands to try to limit the information to only that which is applicable. If someone needs more info, please let me know. Thanks.
|