<?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>773</bug_id>
          
          <creation_ts>2011-02-25 01:24:18 +0000</creation_ts>
          <short_desc>[routerstationpro] USB does not work on routerstationpro</short_desc>
          <delta_ts>2011-07-26 00:13:23 +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>Routerstationpro</rep_platform>
          <op_sys>mips</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Liang Wang">liangliang.wang</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <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>12110</commentid>
    <comment_count>0</comment_count>
    <who name="Liang Wang">liangliang.wang</who>
    <bug_when>2011-02-25 01:24:18 +0000</bug_when>
    <thetext>Host: routerstationpro
Kernel: Linux version 2.6.37-yocto-standard-00034-g0efe4ff
Image location: build on local machine

I use the commit 6cb8fd6def4912e4aa76330649ba42a9ed2694fd and default config to build the images. And when i plug an USB device to target, it can *not* be recognized.

When i compare the kernel config to the USB_Host document that use on wrlinux, i found the below configs are disabled.

     CONFIG_SCSI
     CONFIG_BLK_DEV_SD
     CONFIG_USB_STORAGE
     CONFIG_VFAT_FS/CONFIG_FAT_FS/CONFIG_MSDOS_FS

So i enable these configs and rebuild the kernel, and then it can be recognized, and can be mount to target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12116</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-02-25 05:43:31 +0000</bug_when>
    <thetext>duping this with the other recent routerstation pro USB bug.

*** This bug has been marked as a duplicate of bug 766 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12122</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-02-25 08:05:00 +0000</bug_when>
    <thetext>duplicated this to the wrong defect.

FYI: this isn&apos;t working on purpose, since USB wasn&apos;t in the BSP
&quot;requirements&quot; and hasn&apos;t been tested to date. So those missing
config options are not unexpected.

That being said, there&apos;s no harm in updating the BSP with those
options.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12261</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-03-03 17:55:02 +0000</bug_when>
    <thetext>An attempted fix for this was merged. Can we have a retest ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12274</commentid>
    <comment_count>4</comment_count>
    <who name="Liang Wang">liangliang.wang</who>
    <bug_when>2011-03-03 21:40:14 +0000</bug_when>
    <thetext>Retest on http://autobuilder.pokylinux.org/nightly/20110301-4/machines/routerstationpro/mips/ sato-sdk image.
commit 3a39d969286a2b2abb81c9d055ad558c258bbea2

Now the USB Flash can be recognized, and can read/write files from/to usb flash. But when i plug a vfat format USB Flash device to Routerstationpro, it can *not* be recognized, please see below for more info.

root@routerstationpro:~# usb 1-1: new high speed USB device using ar71xx-ehci and address 6
usb 1-1: New USB device found, idVendor=0dd8, idProduct=0c00
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: USB Flash Disk
usb 1-1: Manufacturer: Netac
usb 1-1: SerialNumber: 0BAED69720D153BD
scsi4 : usb-storage 1-1:1.0
scsi 4:0:0:0: Direct-Access     Netac    OnlyDisk         1.00 PQ: 0 ANSI: 2
sd 4:0:0:0: [sdb] 2009600 512-byte logical blocks: (1.02 GB/981 MiB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sd 4:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sd 4:0:0:0: [sdb] Attached SCSI removable disk
FAT: invalid media value (0x01)
VFS: Can&apos;t find a valid FAT filesystem on dev sdb.
FAT: IO charset iso8859-1 not found

root@routerstationpro:~# 
root@routerstationpro:~# 
root@routerstationpro:~# mount
rootfs on / type rootfs (rw)
128.224.162.142:/home/charles/nfshare/routerstation/rootfs on / type nfs (rw,relatime,vers=3,rsize=262144,wsize=)
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,ptmxmode=000)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /media/ram type tmpfs (rw,relatime)
root@routerstationpro:~# usb 1-1: USB disconnect, address 6

root@routerstationpro:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12328</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-03-07 11:31:11 +0000</bug_when>
    <thetext>this is out for review now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14835</commentid>
    <comment_count>6</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-07-20 17:34:52 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=daad28c2a60d441d055c621f3ff2a08e2289ba09</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15016</commentid>
    <comment_count>7</comment_count>
    <who name="Liang Wang">liangliang.wang</who>
    <bug_when>2011-07-26 00:13:23 +0000</bug_when>
    <thetext>The fat format USB Flash can be mounted successfully, so i change the bug status to verified.
commit eea4bd731ef286516ee1fb934fe2222a09c06e70</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>