[Cbe-oss-dev] [Q] INQURIY, READ CAPACITY for PS3 BD-ROM

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Tue Jan 29 00:55:04 EST 2008


On Mon, 28 Jan 2008, Aegis Lin wrote:
> I think this problem should be able to be solved if I dig deeper enough,
> but if someone can give me some quick hint about the following problem, I'll
> apereciate it very much.
> 
> I tried to issue ATAPI commands by using SG_IO ioctl, for which codes can
> be verified correct for ATA and USB CDROM device under X86, and even
> USB devices under PS3-Linux.
> 
> But, when I tried to issue commands like INQUIRY(0x12) and READ
> CAPACITY(0x25) for the built-in PS3-ROM device, I always got
> Status=0x2, SC/ASC/ASCQ=B/0/0 .
> 
> Since it can be traced to ps3rom.c:
> 
> ... ps3rom_atapi_request()->lv1_storage_send_device_command(),
> 
> it seems that the LV1 driver intentionally returns such an error, maybe to
> indicate that the sent CDB didn't qualify some more strict restrictions.
> >From dmesg it seems that OS can still get the drive info from INQUIRY command.

I expect there's a small bug in the parameters you pass when submitting your
commands, as drivers/scsi/scsi_scan.c and drivers/scsi/sr.c can send INQUIRY
resp. READ_CAPACITY commands that do succeed.

> Is there any public documentation about the PS3 BD-ROM driver APIs?

Unfortunately not.

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven at sonycom.com
Internet: http://www.sony-europe.com/

Sony Network and Software Technology Center Europe
A division of Sony Service Centre (Europe) N.V.
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium
VAT BE 0413.825.160 · RPR Brussels
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619


More information about the cbe-oss-dev mailing list