<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>765</bug_id>
          
          <creation_ts>2011-02-23 22:40:28 +0000</creation_ts>
          <short_desc>[beagleboard] USB does not work on beagleboard</short_desc>
          <delta_ts>2011-06-28 23:27:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-configuration</component>
          <version>1.0</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>patches out for review (17-Jun-2011)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 PointRelease</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.bsp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12038</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-02-23 22:40:28 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.10 x86_64
Kernel: 2.6.35-25-generic

beagleboard kernel and rootfs from weekly build 20110221
http://autobuilder.pokylinux.org/nightly/20110221-1/machines/beagleboard/arm/

u-boot environment setting:
###########
setenv optargs &apos;omapdss.def_disp=dvi vram=12M omapfb.mode=&quot;dvi:800x480MR-16@60&quot;
video=omapfb.vram:0:4M,1:4M,2:4M omapfb.debug=y omapdss.debug=y&apos;
setenv console ttyO2,115200n8;mmcinit;fatload mmc 0 0x80800000 uImage.bin;run
mmcargs; bootm 0x80800000
###########

There are 2 usb port on the board, USB 2.0 OTG port and USB 2.0 host port, both of them do not work.

When the board boot up, I got the usb message from demsg and lsusb, but it does not work when I plug a usb stick or a usb mouse.
###########
root@beagleboard:~# dmesg |grep usb -i
mux: Setting signal etk_clk.hsusb1_stp 0x001b -&gt; 0x0003
mux: Setting signal etk_ctl.hsusb1_clk 0x0013 -&gt; 0x0003
mux: Setting signal etk_d8.hsusb1_dir 0x0113 -&gt; 0x010b
mux: Setting signal etk_d9.hsusb1_nxt 0x0113 -&gt; 0x010b
mux: Setting signal etk_d0.hsusb1_data0 0x0113 -&gt; 0x010b
mux: Setting signal etk_d1.hsusb1_data1 0x0113 -&gt; 0x010b
mux: Setting signal etk_d2.hsusb1_data2 0x0113 -&gt; 0x010b
mux: Setting signal etk_d7.hsusb1_data3 0x0113 -&gt; 0x010b
mux: Setting signal etk_d4.hsusb1_data4 0x0113 -&gt; 0x010b
mux: Setting signal etk_d5.hsusb1_data5 0x0113 -&gt; 0x010b
mux: Setting signal etk_d6.hsusb1_data6 0x0113 -&gt; 0x010b
mux: Setting signal etk_d3.hsusb1_data7 0x0113 -&gt; 0x010b
mux: Setting signal etk_d11.hsusb2_stp 0x0013 -&gt; 0x0003
mux: Setting signal etk_d10.hsusb2_clk 0x0013 -&gt; 0x0003
mux: Setting signal etk_d12.hsusb2_dir 0x0113 -&gt; 0x010b
mux: Setting signal etk_d13.hsusb2_nxt 0x0113 -&gt; 0x010b
mux: Setting signal etk_d14.hsusb2_data0 0x0113 -&gt; 0x010b
mux: Setting signal etk_d15.hsusb2_data1 0x0113 -&gt; 0x010b
mux: Setting signal mcspi1_cs3.hsusb2_data2 0x0113 -&gt; 0x010b
mux: Setting signal mcspi2_cs1.hsusb2_data3 0x0113 -&gt; 0x010b
mux: Setting signal mcspi2_simo.hsusb2_data4 0x0113 -&gt; 0x010b
mux: Setting signal mcspi2_somi.hsusb2_data5 0x0113 -&gt; 0x010b
mux: Setting signal mcspi2_cs0.hsusb2_data6 0x0113 -&gt; 0x010b
mux: Setting signal mcspi2_clk.hsusb2_data7 0x0113 -&gt; 0x010b
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
regulator: VUSB1V5: 1500 mV normal standby
regulator: VUSB1V8: 1800 mV normal standby
regulator: VUSB3V1: 3100 mV normal standby
twl4030_usb twl4030_usb: Initialized TWL4030 USB module
musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb_hdrc: MHDRC RTL version 1.400 
musb_hdrc: setup fifo_mode 4
musb_hdrc: 28/31 max ep, 16384/16384 memory
musb_hdrc musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
usbcore: registered new interface driver kaweth
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
usbcore: registered new interface driver smsc75xx
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver MOSCHIP usb-ethernet driver
usbcore: registered new interface driver int51x1
ehci_hcd: USB 2.0 &apos;Enhanced&apos; Host Controller (EHCI) Driver
ehci-omap.0 supply hsusb0 not found, using dummy regulator
ehci-omap.0 supply hsusb1 not found, using dummy regulator
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver

root@beagleboard:~# lsusb 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@beagleboard:~# 
##################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12060</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-02-24 06:55:22 +0000</bug_when>
    <thetext>USB is notoriously fragile on the beagleboards. In the 2.6.34 
kernel even changing the USB hub could lead to failures.

As far as I know this tested fine for Darren when he was working
with the 2.6.37 kernel on the board, but I need him to confirm
this fact.

Have we tried a keyboard ? Just wondering if the right HID options
are on, and the keyboard provides a user-space event free way to
test the usb support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12100</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-02-24 18:21:36 +0000</bug_when>
    <thetext>I tried a keyboard, it does not work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12338</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-03-07 19:25:11 +0000</bug_when>
    <thetext>There are 2 USB port on the board. One is USB OTG port, another is USB Host port.

With the 20110305 build image from
http://autobuilder.yoctoproject.org/nightly/20110305-4/machines/beagleboard/arm/

The USB Host port can work, when I plug a USB stick:
###############
root@beagleboard:~# usb 1-2: new high speed USB device using ehci-omap and address 2
scsi0 : usb-storage 1-2:1.0
scsi 0:0:0:0: Direct-Access     Netac    OnlyDisk         1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 2009600 512-byte logical blocks: (1.02 GB/981 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda1): using internal journal
EXT3-fs (sda1): mounted filesystem with ordered data mode

root@beagleboard:~# 
root@beagleboard:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
proc on /proc type proc (rw,relatime)
tmpfs on /mnt/.psplash type tmpfs (rw,relatime,size=40k)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /media/ram type tmpfs (rw,relatime)
/dev/sda1 on /media/sda1 type ext3 (rw,sync,relatime,errors=continue,barrier=0,data=ordered)

###################

But if the filesystem format is fat in the USB stick, It can not be recognized and automatic mounted.

Unfortunately, The USB OTG port still does not work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12999</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-03-27 19:58:11 +0000</bug_when>
    <thetext>Changing the state to accepted, will add the vfat options ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13489</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-04-28 19:24:16 +0000</bug_when>
    <thetext>Note: the vfat options should be in place, or will be soon. There are no
plans to add OTG support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13552</commentid>
    <comment_count>6</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-05-03 12:27:38 +0000</bug_when>
    <thetext>should be fixed. changing state, adding whiteboard entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14216</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-06-07 19:31:07 +0000</bug_when>
    <thetext>With 1.1 M1 20110602 build sato-sdk image, the USB does not work again. When I plug a usb stick, it can not be found. There is no message print on the screen.

Branch: 1.1_M1
Commit: b4a215bd94cf1508782e49b1a3f8c6b1f7effbb9

With 20110506 build, the usb stick can be found:
##################
root@beagleboard:~# usb 1-2: new high speed USB device using ehci-omap and address 2
scsi0 : usb-storage 1-2:1.0
scsi 0:0:0:0: Direct-Access     Netac    OnlyDisk         1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 2009600 512-byte logical blocks: (1.02 GB/981 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
#######################

git info with 20110506 build:

commit 856a5e496b7ddd814f6a94552d02074f0ab30842
Author: Saul Wold &lt;sgw@linux.intel.com&gt;
Date:   Fri May 6 20:56:00 2011 -0700

    qemu: Set Broken bit for world build
    
    Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;


Reopen this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14218</commentid>
    <comment_count>8</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-06-07 21:07:22 +0000</bug_when>
    <thetext>Hmm. I can&apos;t think of anything off the top of my head that would have caused
this to happen. The meta changes we did recently wouldn&apos;t have hit this, or even
been in this build.

Luckily we are refreshing the BSP and will be able to re-test this as part of
that work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14343</commentid>
    <comment_count>9</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-17 16:28:27 +0000</bug_when>
    <thetext>Note the the EHCI port on the C4 is 2.0 only, so keyboards and mice do not work unless you connect a USB hub first. Revisions C1-C3 (if I recall correctly) had a flaky vbus line and I don&apos;t think there is a reliable fix for that hardware.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14446</commentid>
    <comment_count>10</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-28 09:06:51 +0000</bug_when>
    <thetext>Fixed with:

commit ee4dd303b6667a691ed6093b13c226a7466ee31e
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Wed Jun 22 16:00:01 2011 -0400

    linux-yocto/meta-yocto: update yocto/standard and beagleboard SRCREVs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14460</commentid>
    <comment_count>11</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-06-28 23:27:42 +0000</bug_when>
    <thetext>Verified it with 20110625 build on beagleboard C4

keyboards and mice can work with a self powered USB hub

Tree/Branch: Poky/Master
Poky Commit: a1f79a7896b6411669b3ccada6204d2695e80fc5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>