LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-14-2004, 02:48 PM   #1
farmerdan
Member
 
Registered: Feb 2004
Location: IA-MO State Line
Distribution: Ubuntu 10.04
Posts: 59

Rep: Reputation: 15
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.
 
Old 03-14-2004, 08:24 PM   #2
bareego
Member
 
Registered: Nov 2003
Location: Brisbane, Australia
Distribution: Crux 2.0
Posts: 66

Rep: Reputation: 15
As you have a permissions problem try a
Code:
chmod 777 /dev/cdplayer
if it still doesn't work, also
Code:
chmod 777 /dev/hdc
That should fix the permissions problem for the CDROM

cheers
bareego

Last edited by bareego; 03-14-2004 at 08:26 PM.
 
Old 03-15-2004, 05:53 PM   #3
farmerdan
Member
 
Registered: Feb 2004
Location: IA-MO State Line
Distribution: Ubuntu 10.04
Posts: 59

Original Poster
Rep: Reputation: 15
Hey bareego, thanks for the hint. It was a permissions issue. I did
Code:
chmod 666 /dev/hdc
and got one player working right away. I've got to "dink around" with the other ones now. No error messages.

Sorry I didn't get my thanks posted earlier. You really helped. I was frustrated.

Thanks again.

Dan
 
Old 03-31-2004, 10:07 AM   #4
ciaran.mooney
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 18

Rep: Reputation: 0
Was asking for help with problem - But figured it out myself - (chuffed i am!)

Thanks anyway!

Last edited by ciaran.mooney; 03-31-2004 at 10:20 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling SCSI emulation for ATAPI CD writer for Xcdroast nikos3.14 Fedora 2 09-30-2005 08:10 AM
scsi-ide-atapi; symlinks, who knows? offworld Linux - General 2 03-19-2004 12:09 PM
How fix SCSI emulation of ATAPI devices tungsten Slackware 4 01-25-2004 01:09 PM
IDE-scsi vs IDE-atapi reyemarr Linux - General 1 11-18-2003 04:36 PM
scsi, ide, atapi, what does it all mean? WanglessOlasov Linux - Hardware 9 08-13-2003 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration