g_mass_storage cdrom broken?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I'm testing g_mass_storage gadget using the cdrom emulation.
It does not seem to work at all on Mac OSX and does have strange
behaviour on Linux to.

I tested on the following hosts:
- Ubuntu Linux kernel 3.0.0-12-generic-pae
- Mac OSX Snow Leopard
- Windows 7

Starting g_mass_storage with following command on device (i.MX28 based
hardware):
modprobe g_mass_storage file=/test.iso cdrom=1

I'm using a cd iso with Microsoft Joliet extensions.

Result:
- On Linux: recognized, but not like expected (not auto mounted, see
also below in comparison with usb portable cd player)
- On Windows: recognized as expected
- On Mac: not recognized at all

When I burn this same test.iso to a cd-r and use a portable usb cd
player from LG, it works on all three platforms:
- On Linux: cd pops up, is correctly recognized as cdrom with MS
Joliet extensions
- On Mac: recognized like any cd
- On Windows: recognized like any cd

Anyone a idea how to debug this. Tried everything possible without
success however.

Thanks,
Koen


Kernel log of the host when using the g_mass_storage

[2603447.184397] sd 89:0:0:0: [sdb]  Result: hostbyte=DID_NO_CONNECT
driverbyte=DRIVER_OK
[2604311.036195] usb 1-4.3: new high speed USB device number 113 using ehci_hcd
[2604311.175091] scsi90 : usb-storage 1-4.3:1.0
[2604312.253733] scsi 90:0:0:0: CD-ROM            Linux    File-Stor
Gadget 0328 PQ: 0 ANSI: 2
[2604312.598205] sr1: scsi-1 drive
[2604312.598397] sr 90:0:0:0: Attached scsi CD-ROM sr1
[2604312.598499] sr 90:0:0:0: Attached scsi generic sg2 type 5
[2604466.709488] usb 1-4.3: USB disconnect, device number 113
[2604477.068118] usb 1-4.3: new high speed USB device number 114 using ehci_hcd
[2604477.225994] scsi91 : usb-storage 1-4.3:1.0
[2604478.305522] scsi 91:0:0:0: CD-ROM            Linux    File-Stor
Gadget 0328 PQ: 0 ANSI: 2
[2604478.654759] sr1: scsi-1 drive
[2604478.654952] sr 91:0:0:0: Attached scsi CD-ROM sr1
[2604478.655053] sr 91:0:0:0: Attached scsi generic sg2 type 5


Kernel log of the host when using the LG usb cd player:

[2604562.264161] usb 1-4.4: new high speed USB device number 115 using ehci_hcd
[2604562.366158] scsi92 : usb-storage 1-4.4:1.0
[2604563.370435] scsi 92:0:0:0: CD-ROM            HL-DT-ST DVDRAM
GP10NB21  1.00 PQ: 0 ANSI: 0
[2604563.426167] sr1: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw
xa/form2 cdda tray
[2604563.426349] sr 92:0:0:0: Attached scsi CD-ROM sr1
[2604563.426475] sr 92:0:0:0: Attached scsi generic sg2 type 5
[2604575.182163] ISO 9660 Extensions: Microsoft Joliet Level 1
[2604575.183537] ISO 9660 Extensions: IEEE_P1282

Kernel log of device:
(here is see unexpected things at MODE_SENSE_10).

# modprobe g_mass_storage file=/lg.iso cdrom=1[ 2477.770000]
g_mass_storage gadget: high speed config #1: Linux File-Backed Storage
[ 2477.770000] g_mass_storage gadget: set_config: interface 0 (Mass
Storage Function) requested delayed status
[ 2477.770000] g_mass_storage gadget: delayed_status count 1
[ 2477.790000] g_mass_storage gadget: usb_composite_setup_continue
[ 2477.800000] g_mass_storage gadget: usb_composite_setup_continue:
Completing delayed status
[ 2478.810000] g_mass_storage gadget: non-core control reqa1.fe v0000 i0000 l1
[ 2478.810000] g_mass_storage gadget: ep0-setup, length 8:
[ 2478.810000] 00000000: a1 fe 00 00 00 00 01 00
[ 2478.810000] g_mass_storage gadget: get max LUN
[ 2478.830000] g_mass_storage gadget: bulk-out, length 31:
[ 2478.830000] 00000000: 55 53 42 43 01 00 00 00 24 00 00 00 80 00 06 12
[ 2478.830000] 00000010: 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00
[ 2478.850000] g_mass_storage gadget: SCSI command: INQUIRY;  Dc=6,
Di=36;  Hc=6, Hi=36
[ 2478.860000] g_mass_storage gadget: bulk-in, length 36:
[ 2478.860000] 00000000: 05 80 02 02 1f 00 00 00 4c 69 6e 75 78 20 20 20
[ 2478.870000] 00000010: 46 69 6c 65 2d 53 74 6f 72 20 47 61 64 67 65 74
[ 2478.870000] 00000020: 30 33 32 38
[ 2478.880000] g_mass_storage gadget: bulk-in, length 13:
[ 2478.880000] 00000000: 55 53 42 53 01 00 00 00 00 00 00 00 00
[ 2478.890000] g_mass_storage gadget: bulk-out, length 31:
[ 2478.890000] 00000000: 55 53 42 43 02 00 00 00 00 00 00 00 00 00 06 00
[ 2478.890000] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2478.910000] g_mass_storage gadget: SCSI command: TEST UNIT READY;
Dc=6, Dn=0;  Hc=6, Hn=0
[ 2478.920000] g_mass_storage gadget: sending command-failure status
[ 2478.930000] g_mass_storage gadget:   sense data: SK x06, ASC x29,
ASCQ x00;  info x0
[ 2478.930000] g_mass_storage gadget: bulk-in, length 13:
[ 2478.940000] 00000000: 55 53 42 53 02 00 00 00 00 00 00 00 01
[ 2478.950000] g_mass_storage gadget: bulk-out, length 31:
[ 2478.950000] 00000000: 55 53 42 43 03 00 00 00 12 00 00 00 80 00 06 03
[ 2478.950000] 00000010: 00 00 00 12 00 00 00 00 00 00 00 00 00 00 00
[ 2478.960000] g_mass_storage gadget: SCSI command: REQUEST SENSE;
Dc=6, Di=18;  Hc=6, Hi=18
[ 2478.970000] g_mass_storage gadget: bulk-in, length 18:
[ 2478.980000] 00000000: 70 00 06 00 00 00 00 0a 00 00 00 00 29 00 00 00
[ 2478.980000] 00000010: 00 00
[ 2478.990000] g_mass_storage gadget: bulk-in, length 13:
[ 2478.990000] 00000000: 55 53 42 53 03 00 00 00 00 00 00 00 00
[ 2479.000000] g_mass_storage gadget: bulk-out, length 31:
[ 2479.000000] 00000000: 55 53 42 43 04 00 00 00 00 00 00 00 00 00 06 00
[ 2479.000000] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2479.040000] g_mass_storage gadget: SCSI command: TEST UNIT READY;
Dc=6, Dn=0;  Hc=6, Hn=0
[ 2479.040000] g_mass_storage gadget: bulk-in, length 13:
[ 2479.050000] 00000000: 55 53 42 53 04 00 00 00 00 00 00 00 00
[ 2479.060000] g_mass_storage gadget: bulk-out, length 31:
[ 2479.060000] 00000000: 55 53 42 43 05 00 00 00 80 00 00 00 80 00 0a 5a
[ 2479.060000] 00000010: 00 2a 00 00 00 00 00 80 00 00 00 00 00 00 00
[ 2479.080000] g_mass_storage gadget: SCSI command: MODE SENSE(10);
Dc=10, Di=128;  Hc=10, Hi=128
[ 2479.090000] g_mass_storage gadget: bulk-in, length 0:
[ 2479.100000] g_mass_storage gadget: bulk-in set halt
[ 2479.100000] g_mass_storage gadget: sending command-failure status
[ 2479.110000] g_mass_storage gadget:   sense data: SK x05, ASC x24,
ASCQ x00;  info x0
[ 2479.110000] g_mass_storage gadget: bulk-in, length 13:
[ 2479.120000] 00000000: 55 53 42 53 05 00 00 00 80 00 00 00 01
[ 2479.130000] g_mass_storage gadget: bulk-out, length 31:
[ 2479.130000] 00000000: 55 53 42 43 06 00 00 00 12 00 00 00 80 00 06 03
[ 2479.130000] 00000010: 00 00 00 12 00 00 00 00 00 00 00 00 00 00 00
[ 2479.150000] g_mass_storage gadget: SCSI command: REQUEST SENSE;
Dc=6, Di=18;  Hc=6, Hi=18
[ 2479.160000] g_mass_storage gadget: bulk-in, length 18:
[ 2479.160000] 00000000: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00
[ 2479.170000] 00000010: 00 00
[ 2479.170000] g_mass_storage gadget: bulk-in, length 13:
[ 2479.180000] 00000000: 55 53 42 53 06 00 00 00 00 00 00 00 00
[ 2479.180000] g_mass_storage gadget: bulk-out, length 31:
[ 2479.180000] 00000000: 55 53 42 43 07 00 00 00 08 00 00 00 80 00 0a 4a
[ 2479.180000] 00000010: 01 00 00 10 00 00 00 08 00 00 00 00 00 00 00
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux