This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am3359 linux usb problem

Other Parts Discussed in Thread: AM3359

Hi. My am3359 linux evm can't support USB Hot Plug and USB mouse. When i insert USB disk to the board and reset system,login,i can find my usb disk in /dev named sda1.Mount it can work correct.Pull out it ,the system also notice usb disk disconnect.But insert it again, it dosen't work,can't find the usb disk. Other,usb mouse can't work anytime. what's the problem with USB? thanks.

  • What do you mean by "can't find the usb disk" when connect it the 2nd time? no /dev/sda1?

    Please provide more info: what kernel do you use? what filesystem? and dmesg log.

  • and 'lsusb' output when connect the usb device the first and 2nd time as while.

  • Hi,Bin Liu.I used ti-sdk-am335x-evm-05.05.00.00-Linux-x86-Install.The board is design by ourselves with BeagleBone.

     I mean when the system is on, insert my U disk,system haven't any action.I can't find my U disk device use "ls command"in /dev.If i instert U disk to the board then power on ,launch,goto /dev dir use "ls",i can look my U disk named as sda1."mount" it to /mnt ,i can look everything of my U disk. So my board can't support USB Hot Plug.

     The second problem is my board can't support USB mouse.

    i menuconfig the kernel to USB by http://processors.wiki.ti.com/index.php/AM335X_USB_Driver_User_Guide_04.06.00

    thanks.

    insert u disk before board power on like this:

    [     2.070556] scsi0 : usb-storage 2-1:1.0

     [    3.140411] scsi 0:0:0:0: Direct-Access     Kingston DT 101 G2        PMAP PQ: 0 ANSI: 0 CCS

     [    3.834259] sd 0:0:0:0: [sda] 15495168 512-byte logical blocks: (7.93 GB/7.38 GiB)

     [    3.845794] sd 0:0:0:0: [sda] Write Protect is off [    3.854400] sd 0:0:0:0: [sda] No Caching mode page present

    [    3.860198] sd 0:0:0:0: [sda] Assuming drive cache: write through

     [    3.877105] sd 0:0:0:0: [sda] No Caching mode page present

     [    3.882934] sd 0:0:0:0: [sda] Assuming drive cache: write through

     [    3.928680]  sda: sda1 [    3.941436] sd 0:0:0:0: [sda] No Caching mode page present

     [    3.947265] sd 0:0:0:0: [sda] Assuming drive cache: write through

     [    3.953704] sd 0:0:0:0: [sda] Attached SCSI removable disk

    root@am335x-evm:~# ls /dev/

     block               ram8                tty42 bus                 ram9                tty43 char                random              tty44 console             rfkill              tty45 cpu_dma_latency     rtc                 tty46 crypto              rtc0                tty47 disk                sda                 tty48 fb                  sda1                tty49 fb0                 shm                 tty5

    (i just paste some device at /dev)

    root@am335x-evm:~# mount /dev/sda1 /mnt/

     root@am335x-evm:~# df -h

    Filesystem                Size      Used Available Use% Mounted on

     /dev/root                 1.7G    605.9M      1.1G  36% /

     df: /mnt/.splash: No such file or directory

     none                      1.0M    144.0K    880.0K  14% /dev

    tmpfs                    16.0M    556.0K     15.5M   3% /var/volatile

     tmpfs                   123.7M         0    123.7M   0% /dev/shm

     tmpfs                    16.0M         0     16.0M   0% /media/ram

     /dev/mmcblk0p1           66.6M      3.4M     63.2M   5% /media/mmcblk0p1

     /dev/mmcblk0p2            1.7G    605.9M      1.1G  36% /media/mmcblk0p2

     /dev/sda1                 7.4G      1.3G      6.0G  18% /mnt

    insert u disk after the system power on and login. the system haven't any action,the /dev/sda1 can't display at /dev dir.

  • How is the usb controller configured on your board? in OTG or HOST mode? Please share the console log of "cat /proc/driver/musb_hdrc.<X>", where <X> is the controller in use.

  • Hi ,Bin Liu. thank you for your help. I found it's my mistake of my board. when i use an other board .U disk work correctly.U disk surpport Hot Plug.

    Unfortunately, i insert a usb mouse ,the uart console notice to detect a usb mouse .but matrix app can't display the cursor.the usb mouse can't work.

    this the log:

    [  104.627960] usb 1-1: new low-speed USB device number 3 using musb-hdrc

    [  104.772155] usb 1-1: New USB device found, idVendor=1bcf, idProduct=0007

    [  104.779266] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0

    [  104.786773] usb 1-1: Product: USB Optical Mouse

    [  104.801666] input: USB Optical Mouse as /devices/platform/omap/musb-ti81xx/musb-hdrc.0/usb1/1-1/1-1:1.0/input/input1

    [  104.813232] generic-usb 0003:1BCF:0007.0001: input: USB HID v1.10 Mouse [USB Optical Mouse] on usb-musb-hdrc.0-1/input0

    root@am335x-evm:~#

    my touch screen can work normal.

  • Please follow the wiki http://processors.wiki.ti.com/index.php/How_to_use_a_Mouse_instead_of_the_Touchscreen_with_Matrix to enable mouse cursor in Matrix app.

    Could you please share what the hot plug issue on your board was?