Bug 773

Summary: [routerstationpro] USB does not work on routerstationpro
Product: [Build System, Metadata & Runtime] BSPs Reporter: Liang Wang <liangliang.wang>
Component: bsps-configurationAssignee: Bruce Ashfield <bruce.ashfield>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jiajun.xu, liang.li2, liangliang.wang, sgw, yi.zhao, yp.bsp.watcher, yp.watcher
Version: 1.0   
Target Milestone: 1.0 M4   
Hardware: Routerstationpro   
OS: mips   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Liang Wang 2011-02-25 01:24:18 UTC
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.
Comment 1 Bruce Ashfield 2011-02-25 05:43:31 UTC
duping this with the other recent routerstation pro USB bug.

*** This bug has been marked as a duplicate of bug 766 ***
Comment 2 Bruce Ashfield 2011-02-25 08:05:00 UTC
duplicated this to the wrong defect.

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

That being said, there's no harm in updating the BSP with those
options.
Comment 3 Bruce Ashfield 2011-03-03 17:55:02 UTC
An attempted fix for this was merged. Can we have a retest ?
Comment 4 Liang Wang 2011-03-03 21:40:14 UTC
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'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:~#
Comment 5 Bruce Ashfield 2011-03-07 11:31:11 UTC
this is out for review now.
Comment 7 Liang Wang 2011-07-26 00:13:23 UTC
The fat format USB Flash can be mounted successfully, so i change the bug status to verified.
commit eea4bd731ef286516ee1fb934fe2222a09c06e70