usb cdrom support on USB OHCI

来源:互联网 发布:手机淘宝装修 编辑:程序博客网 时间:2024/06/05 15:20

 

本文转载于 http://e2e.ti.com/support/embedded/linux/f/354/t/185762.aspx

 

usb cdrom support on USB OHCI

This question is answered
Expert1765 points

Hi, 

just wanna ask if anybody could tell AM1808 support usb CDROM or not.

scsi1432 : usb-storage 2-1:1.0
usb 2-1: USB disconnect, address 12
usb 2-1: new full speed USB device using ohci and address 13
usb 2-1: not running at top speed; connect to a high speed hub
scsi1433 : usb-storage 2-1:1.0

USB OHCI could not support CD-ROM,and USB high speed driver reports not support.

Best regards,

Power Pan

 
  • Genius9180 points

    What actually does high speed port (musb) prints? You may need to enabled any specific driver needed for your CD ROM.

    Ajay

    If my reply answers your question then please click on the green button"Verify Answer"

  • Expert1765 points

    Hi, Ajay:

    no matter  high speed or OHCI, the kernel outputs nothing but reported DVD-ROM found while no media inserted.

    usb 3-1: new high speed USB device using musb_hdrc and address 20
    usb 3-1: device v1bcf p0c31 is not supported
    scsi19 : usb-storage 3-1:1.0
    scsi 19:0:0:0: CD-ROM MATSHITA DVD+-RW UJ8C1 D.02 PQ: 0 ANSI: 0
    scsi 19:0:0:0: Attached scsi generic sg0 type 5
    usb 3-1: USB disconnect, address 20

    root# mount
    rootfs on / type rootfs (rw)
    /dev/root on / type ext3 (rw,relatime,errors=continue,data=writeback)
    proc on /proc type proc (rw,relatime)
    sysfs on /sys type sysfs (rw,relatime)
    none on /dev type tmpfs (rw,relatime,size=1024k,nr_inodes=8192,mode=755)
    /dev/mmcblk0p1 on /media/card type ext3 (rw,relatime,errors=continue,data=writeback)
    devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
    tmpfs on /var/volatile type tmpfs (rw,relatime)
    tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
    tmpfs on /media/ram type tmpfs (rw,relatime)

    nothing mounted and could not mount the disc. even scsi device detected. already add cd-rom file system options in kernel

    root:/media# cat /proc/scsi/scsi
    Attached devices:
    Host: scsi25 Channel: 00 Id: 00 Lun: 00
    Vendor: MATSHITA Model: DVD+-RW UJ8C1 Rev: D.02
    Type: CD-ROM ANSI SCSI revision: 00

    don't know how to mount and how to make the cd-rom to be read.

    Regards,

    Power Pan

  •  
  • Expert1765 points

    Hi, Ajay, 

    problem solved.

    2 things went wrong,

    1, usb supply current is not enough cause CD disc spin up over current power reset

    2. scsi cdrom support did not turn on in kernel.

    But only work on usb 1.1 host, 2.0 port not work.

    thanks a lot.

    Power Pan

  •  
  • Genius9180 points

    Can you send the log when CDROM connected to usb2.0 musb port? We can see and try to debug why CDROM doesn't work on usb2.0 port.

    Ajay

    If my reply answers your question then please click on the green button"Verify Answer"

  •  
  • Expert1765 points

    new full speed USB device using ohci and address 2
    usb 2-1: not running at top speed; connect to a high speed hub
    scsi1 : usb-storage 2-1:1.0
    scsi 1:0:0:0: CD-ROM MATSHITA DVD+-RW UJ8C1 D.02 PQ: 0 ANSI: 0
    sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
    Uniform CD-ROM driver Revision: 3.20
    sr 1:0:0:0: Attached scsi generic sg0 type 5

    above is usb 1.1 output message. 

    and I could use cdparanoia -vsQ to see the sound track in the DISC

    for usb 2.0 port, sometime it fails to response, like plugs nothing. sometimes it could work 

    usb 3-1: new high speed USB device using musb_hdrc and address 2
    usb 3-1: device v1bcf p0c31 is not supported
    scsi2 : usb-storage 3-1:1.0
    scsi 2:0:0:0: CD-ROM MATSHITA DVD+-RW UJ8C1 D.02 PQ: 0 ANSI: 0
    sr0: scsi3-mmc drive: 47x/62x writer dvd-ram cd/rw xa/form2 cdda tray
    sr 2:0:0:0: Attached scsi generic sg0 type 5

    but when I use cdparanoia -vsQ, usb host failed to respond

    usb 3-1: reset high speed USB device using musb_hdrc and address 2
    usb 3-1: reset high speed USB device using musb_hdrc and address 2
    sending SG SCSI reset... FAILED: EBUSY

    then usb host down....

    I'm using 2.6.33 kernel, and we failed to use 37 because we could not use UART0 for the console, don't know how to solve.

     
  •  
  • Expert1765 points

    ata1: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen
    ata1: irq_stat 0x00000040, connection status changed
    ata1: SError: { CommWake DevExch }
    ata1: hard resetting link
    ata1: link is slow to respond, please be patient (ready=0)
    ata1: COMRESET failed (errno=-16)
    ata1: hard resetting link
    ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    ata1.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
    ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
    ata1.00: configured for UDMA/133
    ata1: EH complete
    scsi 0:0:0:0: Direct-Access ATA WDC WD20EARX-00P 51.0 PQ: 0 ANSI: 5
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
    sd 0:0:0:0: [sda] 4096-byte physical blocks
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    sda: sda1
    sda: p1 size 3907038082 exceeds device capacity, limited to end of disk

    could you please tell me if the last warning will cause any problem during HDD accessing?

     
  •  
  • Genius9180 points

    The error message "usb 3-1: reset high speed USB device using musb_hdrc and address 2" is pointing that there is request timeout for CDROM. It seems you are connecting the CDROM device directly to board so there is no issue of endpoint resources.

    Can you try after disabling USB2.0 DMA at drivers->USB support->Inventra->select [*] Disable DMA

    Ajay

    If my reply answers your question then please click on the green button"Verify Answer"

 

 

原创粉丝点击