Discussion:
[MPlayer-users] SCSI emulation
Arpi
2003-01-03 20:51:24 UTC
Permalink
Hi,

we've got lots of such bugreports.
is it a known problem/limitation that libdvdcss doesn't work with scsi
emulation with ide dvd drives? or is it supported in the cvs version
already? (mplayer contains the latest, 1.2.4 version + the disc key cache
patch)

A'rpi / MPlayer team

--------- Forwarded message ---------
From: Bob Lockie <***@lockie.ca>
To: MPlayer Users Mailing List <mplayer-***@mplayerhq.hu>
Subject: [MPlayer-users] SCSI emulation

[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
I'm using SCSI emulation for an IDE DVD drive.
It works if I don't use SCSI emulation and the /dev/dvd link points to
/dev/cdrom.

If I use SCSI emulation and the /dev/dvd link points to /dev/sr1 then I
get the following error:
"Playing /dev/dvd
Reading disc structure, please wait...
libdvdread: Can't open file VIDEO_TS.IFO.
Can't open VMG info!".
--
----------------------------------------
Sent from Mozilla and GNU/Linux.
Powered by an AMD processor.


_______________________________________________
RTFM!!! http://www.MPlayerHQ.hu/DOCS
Search: http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Sam Hocevar
2003-01-03 22:33:43 UTC
Permalink
Post by Arpi
we've got lots of such bugreports.
is it a known problem/limitation that libdvdcss doesn't work with scsi
emulation with ide dvd drives?
We've got so few reports about it that I didn't think it was
specifically related to SCSI emulation. I'll have a look.
--
Sam.
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Arpi
2003-01-03 22:43:24 UTC
Permalink
Hi,
Post by Sam Hocevar
Post by Arpi
we've got lots of such bugreports.
is it a known problem/limitation that libdvdcss doesn't work with scsi
emulation with ide dvd drives?
We've got so few reports about it that I didn't think it was
specifically related to SCSI emulation. I'll have a look.
thanks.

since combined dvdrom-cdwriter drives getting more common and cheaper, it
may be a bigger issue in the near future, since cdrecord (and afaik the
others too) requires scsi emulation to work.
(and afaik switching scsi emu on an ide drive requires rebooting the
kernel...)


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
H}kan Hjort
2003-01-04 00:22:40 UTC
Permalink
Post by Arpi
Hi,
Post by Sam Hocevar
Post by Arpi
we've got lots of such bugreports.
is it a known problem/limitation that libdvdcss doesn't work with scsi
emulation with ide dvd drives?
We've got so few reports about it that I didn't think it was
specifically related to SCSI emulation. I'll have a look.
thanks.
since combined dvdrom-cdwriter drives getting more common and cheaper, it
may be a bigger issue in the near future, since cdrecord (and afaik the
others too) requires scsi emulation to work.
(and afaik switching scsi emu on an ide drive requires rebooting the
kernel...)
What I've seen so far has been the opposite, i.e. not working normaly
but if one used ide-scsi then it works (making sure to use the correct
device node).
Some systems seem to use /dev/sr# and some /dev/scd#

There defenatly is some bug here though, querrying the device/drive
shows anomalous behaviour values so I think it's in the kernel.
Some combination of drives, ide-chipsets and kernel versions..
--
Håkan Hjort
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Sam Hocevar
2003-01-04 01:00:39 UTC
Permalink
Post by Sam Hocevar
Post by Arpi
we've got lots of such bugreports.
is it a known problem/limitation that libdvdcss doesn't work with scsi
emulation with ide dvd drives?
We've got so few reports about it that I didn't think it was
specifically related to SCSI emulation. I'll have a look.
Mmmh, I'm afraid I can't get it to fail :) I tried kernel versions
2.4.20 and 2.5.53 with or without devfs support. Do you have any more
precise bug reports, with at least the kernel version? Logs with
DVDCSS_VERBOSE=2 would be useful in case the user can provide some.
--
Sam.
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Bob Lockie
2003-01-04 02:46:19 UTC
Permalink
Post by Arpi
--------- Forwarded message ---------
Subject: Re: Fwd: [MPlayer-users] SCSI emulation
Post by Sam Hocevar
Post by Arpi
we've got lots of such bugreports.
is it a known problem/limitation that libdvdcss doesn't work with scsi
emulation with ide dvd drives?
We've got so few reports about it that I didn't think it was
specifically related to SCSI emulation. I'll have a look.
Mmmh, I'm afraid I can't get it to fail :) I tried kernel versions
2.4.20 and 2.5.53 with or without devfs support. Do you have any more
precise bug reports, with at least the kernel version? Logs with
DVDCSS_VERBOSE=2 would be useful in case the user can provide some.
# uname -a
Linux bob.lockie.ca 2.4.20-pre10-ac2 i686 AuthenticAMD

# ll /dev/dvd
lr-xr-xr-x 1 root root 8 Jan 3 13:15 /dev/dvd -> /dev/sr1
is the SCSI emulation for the IDE DVD drive.

It works fine with /dev/dvd linked to /dev/cdrom and SCSI emulation turned off (which is not a work around because I need all SCSI for cd writing software).



# export DVDCSS_VERBOSE=2
# gmplayer
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer CVS-030103-15:26-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
[cfg] read config file: /root/.mplayer/gui.conf
Reading config file /root/.mplayer/gui.conf
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 126 video codecs
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config
SKIN dir 1: '/root/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'

Playing /dev/dvd
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss debug: disc is scrambled
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key with player keys
libdvdcss debug: decrypted disc key is 00:ec:ac:74:89
libdvdcss error: read error
Reading disc structure, please wait...
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdread: Can't open file VIDEO_TS.IFO.
Can't open VMG info!


Exiting... (Quit)
--
----------------------------------------
Sent from Mozilla and GNU/Linux.
Powered by an AMD processor.
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
H}kan Hjort
2003-01-04 18:48:37 UTC
Permalink
Post by Arpi
--------- Forwarded message ---------
Subject: Re: Fwd: [MPlayer-users] SCSI emulation
Post by Sam Hocevar
Post by Arpi
we've got lots of such bugreports.
is it a known problem/limitation that libdvdcss doesn't work with scsi
emulation with ide dvd drives?
We've got so few reports about it that I didn't think it was
specifically related to SCSI emulation. I'll have a look.
Mmmh, I'm afraid I can't get it to fail :) I tried kernel versions
2.4.20 and 2.5.53 with or without devfs support. Do you have any more
precise bug reports, with at least the kernel version? Logs with
DVDCSS_VERBOSE=2 would be useful in case the user can provide some.
Could you try the following too? This is a small utility that accesses
and prints a bunch of info from the drive and disc in it.

http://www.dtek.chalmers.se/~dvd/dist/dvd_test.tar.gz

compile by running the 'build.sh' script and run with
'./dvd_test /dev/dvd >& dvd_test.logX'
this should print a bunch of stuff. Do this for the different configurations
dma on/off ide-scsi on/off and send the output to me.
Does it make any difference depending on the DVD movie/disc used?
Ejecting / intering the disc? Having it mounted or not?
I'll write a summary of anything intresting for the list.
--
Håkan Hjort
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
H}kan Hjort
2003-01-05 20:46:47 UTC
Permalink
Post by H}kan Hjort
Could you try the following too? This is a small utility that accesses
and prints a bunch of info from the drive and disc in it.
Of course it is flaky and seems to work today. :-(
I ran the tests anyways, maybe the "invalid argument" errors should not
be there anyways.
Humm.. wierd.
Post by H}kan Hjort
http://www.dtek.chalmers.se/~dvd/dist/dvd_test.tar.gz
compile by running the 'build.sh' script and run with
'./dvd_test /dev/dvd >& dvd_test.logX'
this should print a bunch of stuff. Do this for the different configurations
dma on/off ide-scsi on/off and send the output to me.
Does it make any difference depending on the DVD movie/disc used?
No, it failed on the 3 discs I tried.
Post by H}kan Hjort
Ejecting / intering the disc? Having it mounted or not?
I'll write a summary of anything intresting for the list.
# hdparm -d /dev/sr1
/dev/sr1 not supported by hdparm
How do I enable DMA for an emulated IDE DVD drive?
Changing the DMA status is done by reprogramming the IDE chipset/bus,
so even when it's using ide-scsi emulation you need to use the underlying
ide node to change it. So /dev/hdc for you, and then read/test on the
/dev/sr1 node. Your sure sr1 is the DVD?
That was my guess but /dev/hdc disappears when I use SCSI emulation.
# ll /dev/hdc
ls: /dev/hdc: No such file or directory
A side effect of using devfs perhaps? There should be some trace of
the ide device still, should there not? Or there will be a general
problem with things like DMA!

[snip]
Maybe I forgot to change the link for /dev to /dev/sr1.
With SCSI emulation it appears that the /dev/dvd link cannot point to
/dev/cdrom (even if that points to the correct device).
That's strange.

The only thing I see that migth mess things up here is that for CSS
authentication and key exchange one has do make a few ioctl calls, to
ba able to do that one needs to have both read & write permission.

For SCSI emulation you had
lr-xr-xr-x 1 root root 8 Jan 4 07:00 /dev/dvd -> /dev/sr1
brw-rw---- 1 root cdrecording 11, 1 Dec 31 1969 /dev/dvd

and for normal IDE
lr-xr-xr-x 1 root root 10 Jan 4 15:12 /dev/dvd -> /dev/cdrom
brw-rw-rw- 1 root root 22, 0 Dec 31 1969 /dev/dvd

So unless you are a member of the cdrecording group you don't have
'rw' permissions in the SCSI emulation case.

Another thing is that for all the logs reading sector (lba) 512 and later
failed.
--
Håkan Hjort
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Bob Lockie
2003-01-06 02:01:49 UTC
Permalink
Post by H}kan Hjort
Post by H}kan Hjort
Could you try the following too? This is a small utility that accesses
and prints a bunch of info from the drive and disc in it.
Of course it is flaky and seems to work today. :-(
I ran the tests anyways, maybe the "invalid argument" errors should not
be there anyways.
Humm.. wierd.
Post by H}kan Hjort
http://www.dtek.chalmers.se/~dvd/dist/dvd_test.tar.gz
compile by running the 'build.sh' script and run with
'./dvd_test /dev/dvd >& dvd_test.logX'
this should print a bunch of stuff. Do this for the different configurations
dma on/off ide-scsi on/off and send the output to me.
Does it make any difference depending on the DVD movie/disc used?
No, it failed on the 3 discs I tried.
Post by H}kan Hjort
Ejecting / intering the disc? Having it mounted or not?
I'll write a summary of anything intresting for the list.
# hdparm -d /dev/sr1
/dev/sr1 not supported by hdparm
How do I enable DMA for an emulated IDE DVD drive?
Changing the DMA status is done by reprogramming the IDE chipset/bus,
so even when it's using ide-scsi emulation you need to use the underlying
ide node to change it. So /dev/hdc for you, and then read/test on the
/dev/sr1 node. Your sure sr1 is the DVD?
That was my guess but /dev/hdc disappears when I use SCSI emulation.
# ll /dev/hdc
ls: /dev/hdc: No such file or directory
A side effect of using devfs perhaps? There should be some trace of
the ide device still, should there not? Or there will be a general
problem with things like DMA!
The only thing I could find is in /proc but I can't check DMA for hdc there.

#hdparm /proc/ide/hdc
/proc/ide/hdc not supported by hdparm

Should I look somewhere else?

# ll /proc/ide
total 0
-r--r--r-- 1 root root 0 Jan 5 19:53 drivers
lrwxrwxrwx 1 root root 8 Jan 5 19:53 hda -> ide0/hda
lrwxrwxrwx 1 root root 8 Jan 5 19:53 hdb -> ide0/hdb
lrwxrwxrwx 1 root root 8 Jan 5 19:53 hdc -> ide1/hdc
dr-xr-xr-x 4 root root 0 Jan 5 19:53 ide0
dr-xr-xr-x 3 root root 0 Jan 5 19:53 ide1
-r--r--r-- 1 root root 0 Jan 5 19:53 sis

# ll /proc/ide/ide1
total 0
-r--r--r-- 1 root root 0 Jan 5 19:53 channel
-rw-r--r-- 1 root root 0 Jan 5 19:53 config
dr-xr-xr-x 2 root root 0 Jan 5 19:53 hdc
-r--r--r-- 1 root root 0 Jan 5 19:53 mate
-r--r--r-- 1 root root 0 Jan 5 19:53 model
Post by H}kan Hjort
[snip]
Maybe I forgot to change the link for /dev to /dev/sr1.
With SCSI emulation it appears that the /dev/dvd link cannot point to
/dev/cdrom (even if that points to the correct device).
That's strange.
The only thing I see that migth mess things up here is that for CSS
authentication and key exchange one has do make a few ioctl calls, to
ba able to do that one needs to have both read & write permission.
For SCSI emulation you had
lr-xr-xr-x 1 root root 8 Jan 4 07:00 /dev/dvd -> /dev/sr1
brw-rw---- 1 root cdrecording 11, 1 Dec 31 1969 /dev/dvd
and for normal IDE
lr-xr-xr-x 1 root root 10 Jan 4 15:12 /dev/dvd -> /dev/cdrom
brw-rw-rw- 1 root root 22, 0 Dec 31 1969 /dev/dvd
So unless you are a member of the cdrecording group you don't have
'rw' permissions in the SCSI emulation case.
lr-xr-xr-x 1 root root 8 Jan 4 07:00 /dev/dvd -> /dev/sr1
brw-rw---- 1 root cdrecording 11, 1 Dec 31 1969 /dev/dvd
and for normal IDE
lr-xr-xr-x 1 root root 10 Jan 4 15:12 /dev/dvd -> /dev/cdrom
brw-rw-rw- 1 root root 22, 0 Dec 31 1969 /dev/dvd
So unless you are a member of the cdrecording group you don't have
'rw' permissions in the SCSI emulation case.
No, everything is owned by root and group root:

When SCSI emulation is enabled.

# ll /dev/dvd
lr-xr-xr-x 1 root root 8 Jan 5 12:57 /dev/dvd ->
/dev/sr1

# ll /dev/cdrom
lr-xr-xr-x 1 root root 13 Jan 5 12:53 /dev/cdrom ->
cdroms/cdrom0

# ll /dev/cdroms/cdrom0
lr-xr-xr-x 1 root root 34 Dec 31 1969
/dev/cdroms/cdrom0 -> ../scsi/host0/bus0/target1/lun0/cd


Without SCSI emulation.

# ll /dev/sr1
ls: /dev/sr1: No such file or directory

# ll /dev/dvd
lr-xr-xr-x 1 root root 10 Jan 5 13:45 /dev/dvd ->
/dev/cdrom

# ll /dev/cdrom
lr-xr-xr-x 1 root root 13 Jan 5 13:45 /dev/cdrom ->
cdroms/cdrom0

# ll /dev/cdroms/cdrom0
lr-xr-xr-x 1 root root 33 Dec 31 1969
/dev/cdroms/cdrom0 -> ../ide/host0/bus1/target0/lun0/cd

# ll /dev/hdc
lr-xr-xr-x 1 root root 30 Jan 5 08:05 /dev/hdc ->
ide/host0/bus1/target0/lun0/cd
Post by H}kan Hjort
Another thing is that for all the logs reading sector (lba) 512 and later
failed.
Did even the direct IDE show that?
Maybe I have a hardware problem.
--
----------------------------------------
Sent from Mozilla and GNU/Linux.
Powered by an AMD processor.
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
H}kan Hjort
2003-01-06 17:21:11 UTC
Permalink
[snip]
Post by Bob Lockie
Post by H}kan Hjort
# hdparm -d /dev/sr1
/dev/sr1 not supported by hdparm
How do I enable DMA for an emulated IDE DVD drive?
Changing the DMA status is done by reprogramming the IDE chipset/bus,
so even when it's using ide-scsi emulation you need to use the underlying
ide node to change it. So /dev/hdc for you, and then read/test on the
/dev/sr1 node. Your sure sr1 is the DVD?
That was my guess but /dev/hdc disappears when I use SCSI emulation.
# ll /dev/hdc
ls: /dev/hdc: No such file or directory
A side effect of using devfs perhaps? There should be some trace of
the ide device still, should there not? Or there will be a general
problem with things like DMA!
The only thing I could find is in /proc but I can't check DMA for hdc there.
#hdparm /proc/ide/hdc
/proc/ide/hdc not supported by hdparm
Should I look somewhere else?
Yes under /dev.
/dev/ide/host0/bus1/target0/lun0/generic
or some other thing under /dev/ide/host0/bus1/target0/lun0/

You can read the status (just read) in /proc/ide/hdc/settings

[snip]
Post by Bob Lockie
Post by H}kan Hjort
lr-xr-xr-x 1 root root 8 Jan 4 07:00 /dev/dvd -> /dev/sr1
brw-rw---- 1 root cdrecording 11, 1 Dec 31 1969 /dev/dvd
and for normal IDE
lr-xr-xr-x 1 root root 10 Jan 4 15:12 /dev/dvd -> /dev/cdrom
brw-rw-rw- 1 root root 22, 0 Dec 31 1969 /dev/dvd
So unless you are a member of the cdrecording group you don't have
'rw' permissions in the SCSI emulation case.
When SCSI emulation is enabled.
# ll /dev/dvd
lr-xr-xr-x 1 root root 8 Jan 5 12:57 /dev/dvd ->
/dev/sr1
# ll /dev/cdrom
lr-xr-xr-x 1 root root 13 Jan 5 12:53 /dev/cdrom ->
cdroms/cdrom0
# ll /dev/cdroms/cdrom0
lr-xr-xr-x 1 root root 34 Dec 31 1969
/dev/cdroms/cdrom0 -> ../scsi/host0/bus0/target1/lun0/cd
But these are just links, it's the actuall device node that matters.
Here that would be /dev/scsi/host0/bus0/target1/lun0/cd
and for the ide case /dev/ide/host0/bus1/target0/lun0/cd.
Post by Bob Lockie
Post by H}kan Hjort
Another thing is that for all the logs reading sector (lba) 512 and later
failed.
Did even the direct IDE show that?
Yes.
Post by Bob Lockie
Maybe I have a hardware problem.
No that's probably just the CSS protection. It just seemed a bit
early to me though.

So is there still some problem? Or was this all just configure /
setup problmes?
--
Håkan Hjort
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Bob Lockie
2003-01-06 21:23:09 UTC
Permalink
So is there still some problem? Or was this all just configure /
setup problmes?
I can play DVDs with SCSI emulation but I have to set the /dev/dvd link
to /dev/sr1 instead
of using the /dev/cdrom -> /dev/cdroms/cdrom0 -> /dev/scsi link.


WithOUT SCSI emulation:
-----------------------

# ll /dev/sr0
lr-xr-xr-x 1 root root 31 Jan 6 07:02 /dev/sr0 ->
scsi/host0/bus0/target1/lun0/cd

# ll /dev/sr1
ls: /dev/sr1: No such file or directory

# ll /dev/hdc
lr-xr-xr-x 1 root root 30 Jan 6 07:02 /dev/hdc ->
ide/host0/bus1/target0/lun0/cd

# ll /dev/dvd
lr-xr-xr-x 1 root root 10 Jan 6 07:02 /dev/dvd ->
/dev/cdrom

# ll /dev/cdrom
lr-xr-xr-x 1 root root 13 Jan 6 15:57 /dev/cdrom ->
cdroms/cdrom0

# ll /dev/cdroms/cdrom0
lr-xr-xr-x 1 root root 33 Dec 31 1969
/dev/cdroms/cdrom0 -> ../ide/host0/bus1/target0/lun0/cd


With SCSI emulation:
--------------------

# ll /dev/sr0
lr-xr-xr-x 1 root root 31 Jan 6 11:05 /dev/sr0 ->
scsi/host0/bus0/target1/lun0/cd

# ll /dev/sr1
lr-xr-xr-x 1 root root 31 Jan 6 11:05 /dev/sr1 ->
scsi/host1/bus0/target0/lun0/cd

# ll /dev/hdc
ls: /dev/hdc: No such file or directory

# ll /dev/dvd
lr-xr-xr-x 1 root root 10 Jan 6 11:05 /dev/dvd ->
/dev/cdrom

# ll /dev/cdrom
lr-xr-xr-x 1 root root 13 Jan 6 16:14 /dev/cdrom ->
cdroms/cdrom0

# ll /dev/cdroms/cdrom0
lr-xr-xr-x 1 root root 34 Dec 31 1969
/dev/cdroms/cdrom0 -> ../scsi/host0/bus0/target1/lun0/cd


# ll /dev/cdroms/cdrom1
lr-xr-xr-x 1 root root 34 Dec 31 1969
/dev/cdroms/cdrom1 -> ../scsi/host1/bus0/target0/lun0/cd

I tried to change /dev/cdrom to link to /dev/cdroms/cdrom1 instead of
/dev/cdroms/cdrom0 and then /dev/dvd would work but I couldn't delete
/dev/cdrom.
I didn't see that it was pointing to the wrong SCSI device.
--
----------------------------------------
Sent from Mozilla and GNU/Linux.
Powered by an AMD processor.
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
H}kan Hjort
2003-01-07 14:26:15 UTC
Permalink
Post by Bob Lockie
So is there still some problem? Or was this all just configure /
setup problmes?
I can play DVDs with SCSI emulation but I have to set the /dev/dvd link
to /dev/sr1 instead
of using the /dev/cdrom -> /dev/cdroms/cdrom0 -> /dev/scsi link.
[snip]
Post by Bob Lockie
--------------------
# ll /dev/sr0
lr-xr-xr-x 1 root root 31 Jan 6 11:05 /dev/sr0 ->
scsi/host0/bus0/target1/lun0/cd
# ll /dev/sr1
lr-xr-xr-x 1 root root 31 Jan 6 11:05 /dev/sr1 ->
scsi/host1/bus0/target0/lun0/cd
[snip]
Post by Bob Lockie
lr-xr-xr-x 1 root root 13 Jan 6 16:14 /dev/cdrom ->
cdroms/cdrom0
# ll /dev/cdroms/cdrom0
lr-xr-xr-x 1 root root 34 Dec 31 1969
/dev/cdroms/cdrom0 -> ../scsi/host0/bus0/target1/lun0/cd
# ll /dev/cdroms/cdrom1
lr-xr-xr-x 1 root root 34 Dec 31 1969
/dev/cdroms/cdrom1 -> ../scsi/host1/bus0/target0/lun0/cd
I tried to change /dev/cdrom to link to /dev/cdroms/cdrom1 instead of
/dev/cdroms/cdrom0 and then /dev/dvd would work but I couldn't delete
/dev/cdrom.
I didn't see that it was pointing to the wrong SCSI device.
Yeah ok, so it picks ide devices first and then scsi. But when
you have a ide-scsi emulation that gets to be host1 and so gets
to be after the scsi sr1 drive in the enumeration list of cdroms.

Would be nice to be able to 'check' for media pressens and the types
supported perhaps... as we do in that dvd_test app, then one could know
that it wasn't a DVD drive and/or that it has no media in it.
--
Håkan Hjort
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Loïc Minier
2003-01-10 17:25:55 UTC
Permalink
Post by Bob Lockie
lr-xr-xr-x 1 root root 31 Jan 6 11:05 /dev/sr0 ->
scsi/host0/bus0/target1/lun0/cd
After exchanging some mails with Bob Lockie, I think the problem is
that there's no way for an ide-scsi emulated drive to change it's
DMA configuration under devfs because hdc disappears, so I suggested
creating another hdc with mknod. That's how you can change DMA for IDE
drives with ide-scsi under devfs.
--
lool
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
H}kan Hjort
2003-01-10 21:28:12 UTC
Permalink
Post by Loïc Minier
Post by Bob Lockie
lr-xr-xr-x 1 root root 31 Jan 6 11:05 /dev/sr0 ->
scsi/host0/bus0/target1/lun0/cd
After exchanging some mails with Bob Lockie, I think the problem is
that there's no way for an ide-scsi emulated drive to change it's
DMA configuration under devfs because hdc disappears, so I suggested
creating another hdc with mknod. That's how you can change DMA for IDE
drives with ide-scsi under devfs.
The /dev/ide/host0/bus1/target0/lun0/generic node should still exist even
when running ide-scsi. Using that you can change the DMA state without
cdreating a /dev/hdc node.
--
Håkan Hjort
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Bob Lockie
2003-01-16 05:00:37 UTC
Permalink
On 01/10/03 16:28 H}kan Hjort spoke thusly
Post by H}kan Hjort
Post by Loïc Minier
Post by Bob Lockie
lr-xr-xr-x 1 root root 31 Jan 6 11:05 /dev/sr0 ->
scsi/host0/bus0/target1/lun0/cd
After exchanging some mails with Bob Lockie, I think the problem is
that there's no way for an ide-scsi emulated drive to change it's
DMA configuration under devfs because hdc disappears, so I suggested
creating another hdc with mknod. That's how you can change DMA for IDE
drives with ide-scsi under devfs.
The /dev/ide/host0/bus1/target0/lun0/generic node should still exist even
when running ide-scsi. Using that you can change the DMA state without
cdreating a /dev/hdc node.
Can the "Invalid argument's" be ignored safely?


# hdparm /dev/ide/host0/bus1/target0/lun0/generic

/dev/ide/host0/bus1/target0/lun0/generic:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
BLKRAGET failed: Invalid argument
HDIO_GETGEO failed: Invalid argument

# hdparm -i /dev/ide/host0/bus1/target0/lun0/generic

/dev/ide/host0/bus1/target0/lun0/generic:

Model=Pioneer DVD-ROM ATAPIModel DVD-106S 010, FwRev=E1.09, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=13395, BuffSize=64kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 *udma4
AdvancedPM=no
Drive conforms to: device does not report version: 1 2 3 4 5
--
----------------------------------------
Sent from Mozilla and GNU/Linux.
Powered by an AMD processor.
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Loïc Minier
2003-01-16 17:20:02 UTC
Permalink
Post by Bob Lockie
Can the "Invalid argument's" be ignored safely?
This just indicates that the drive does not support an option, it can
be ignored safely.
--
lool
--
This is the libdvdcss-devel mailing-list, see http://www.videolan.org/libdvdcss/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Loading...