FreeBSD vs Region Code DVDs

Scott Long scottl at samsco.org
Thu May 3 22:48:03 UTC 2007


Ulrich Spoerlein wrote:
> Sean C. Farley wrote:
>> On Thu, 3 May 2007, Ulrich Spoerlein wrote:
>> I had an issue with ripping some DVD's to my laptop before a trip I made
>> (note:  no distribution occurred (for the lawyers :))).  I wanted to
>> just use dd to do it, but dd would fail after a small amount of data was
>> read.  If I first played a little of the DVD with mplayer, then dd would
>> work afterwards.  It probably had something to do with mplayer
>> whispering sweet nothings to the DVD player.
> 
> Wouldn't help in my case, as the disc cannot be accessed in anyway.
> 
> But ...
> 
> atausb(4) to the rescue!
> 
> I recompiled my kernel with atausb(4) to rule out problems inside CAM,
> lo' and behold:
> 
> umass0: <PLEXTOR DVDR   PX-755A, class 0/0, rev 2.00/4.35, addr 121>
> umass0:  8070i (ATAPI) over Bulk-Only; quirks = 0x0000
> umass0:3:0:-1: Attached to scbus3
> cd1 at umass-sim0 bus 0 target 0 lun 0
> cd1: <PLEXTOR DVDR   PX-755A 1.06> Removable CD-ROM SCSI-0 device 
> cd1: 40.000MB/s transfers
> cd1: cd present [3614880 x 2048 byte records]
> 
> (no glabel tasting, no reading from the device possible)
> 
> umass0: at uhub3 port 1 (addr 121) disconnected
> (cd1:umass-sim0:0:0:0): lost device
> (cd1:umass-sim0:0:0:0): removing device entry
> umass0: detached
> atausb0: <PLEXTOR DVDR   PX-755A, class 0/0, rev 2.00/4.35, addr 121>
> atausb0: using ATAPI over Bulk-Only
> ata2: <USB lun 0> on atausb0
> acd1: DEVICE_RESET unsupported
> acd1: DVDR <DVDR PX-755A/1.06> at ata2-master USB2
> acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 
> cd1 at ata2 bus 0 target 0 lun 0
> cd1: <PLEXTOR DVDR   PX-755A 1.06> Removable CD-ROM SCSI-0 device 
> cd1: 3.300MB/s transfers
> cd1: Attempt to query device size failed: NOT READY, Logical unit is inprocess of becoming ready
> GEOM_LABEL: Label for provider acd1 is iso9660/FIREFLY_DISC2.
> acd1: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 
> acd1: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 
> acd1: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 
> acd1: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 
> acd1: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 
> 
> Might these ILLEGAL REQUESTs give a clue to what is going wrong when
> trying to access this device with cd(4)?

Mostly harmless bug that will be fixed in the next few months.

> Why is it only reporting/using
> 3.3MB/s transfers?

Harmless bug that will be fixed in the next few months.  It doesn't 
reflect the actual speed.

> Why can I read and mount the DVD, but mplayer/xine
> are still unable to play the DVD? (It works fine on the internal, ATA
> attached, crappy NEC drive.)

No idea, sorry.  Do you have umass, atapicam, and ata-usb all involved
here?  If so, you've made the room a little crowded, and they are all
arguing with each other.  I know that ata-usb was inspired by the ata
author having problems with umass and not wanting to fix them there,
but I don't know exactly what was broken or what was fixed.

> 
> Perhaps Scott can share some SCSI wisdom on this matter. I really need
> to use this drive via Firewire, ie. cd(4), so atausb(4) is no permanent
> solution.
> 
> Ulrich Spoerlein
> 
> PS: why is iostat(1) not working for acd(4) devices?

Because acd doesn't make use of the standard kernel facilities that make
iostat work.  It's a deliberate choice by the driver author.

Scott


More information about the freebsd-stable mailing list