<?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>766</bug_id>
          
          <creation_ts>2011-02-23 23:47:33 +0000</creation_ts>
          <short_desc>[mpc8315e-rdb] USB does not work on mpc8315e-rdb</short_desc>
          <delta_ts>2011-07-28 00:37:49 +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>mpc8315e-rdb</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>waiting for verification of the fix (June 21, 2011)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>jingdong.lu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>sgw</cc>
    
    <cc>wenhuax.fan</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>12044</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-02-23 23:47:33 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.10 x86_64
Kernel: 2.6.35-25-generic

Mpc8315e-rdb kernel and rootfs from poky build
git commit information:
commit 974ea1a190167dcfd831ba1fc5f733e0dc9a6fda
Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Tue Feb 15 23:20:54 2011 +0000

    bitbake/runqueue: When we successfully fork off a task and there are more processes we can start do so immediately
    
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

When the board boot up, I insert the usb module.

####################
root@mpc8315e-rdb:~# modprobe fsl-mph-dr-of
/immr@e0000000/usb@23000: Invalid &apos;dr_mode&apos; property, fallback to host mode
root@mpc8315e-rdb:~# usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub 
usbcore: registered new device driver usb 
ehci_hcd: USB 2.0 &apos;Enhanced&apos; Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 38, io mem 0xe0023000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb 1-1: new full speed USB device using fsl-ehci and address 2

root@mpc8315e-rdb:~# modprobe usb-storage
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.

root@mpc8315e-rdb:~# lsmod
Module                  Size  Used by
fsl_mph_dr_of           3437  0
nls_base                6241  1 usbcore
ipv6                  272561  12
usbcore               132987  3 usb_storage,ehci_hcd
ehci_hcd               45787  0
usb_storage            39954  0
root@mpc8315e-rdb:~#
root@mpc8315e-rdb:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

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

But there is no response when I plug a usb stick.

I got some usb error message from dmesg
#########################
root@mpc8315e-rdb:~# dmesg |grep usb -i
/immr@e0000000/usb@23000: Invalid &apos;dr_mode&apos; property, fallback to host mode
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 &apos;Enhanced&apos; Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
usb 1-1: new full speed USB device using fsl-ehci and address 2
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new full speed USB device using fsl-ehci and address 3
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new full speed USB device using fsl-ehci and address 4
usb 1-1: device not accepting address 4, error -110
usb 1-1: new full speed USB device using fsl-ehci and address 5
usb 1-1: device not accepting address 5, error -110
hub 1-0:1.0: unable to enumerate USB device on port 1
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
#####################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12062</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-02-24 06:58:55 +0000</bug_when>
    <thetext>Looks like some missing options here. Did this same test work on the
2.6.34 kernel ?

I&apos;ll compare the 2.6.37 and 2.6.34 USB options to see if anything obvious
jumps out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12085</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-02-24 13:02:42 +0000</bug_when>
    <thetext>After some digging, this comes back to my question about the behaviour on 2.6.34.
I compared the USB options between 2.6.34 and 2.6.37, there are no significant
differences except 2.6.34 does *not* have CONFIG_USB_FSL_MPH_DR_OF enabled/available.

So if USB works in 2.6.34, it works without  fsl-mph-dr-of and we shouldn&apos;t
be using it in 2.6.37 either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12117</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-02-25 05:43:31 +0000</bug_when>
    <thetext>*** Bug 773 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12264</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-03-03 17:57:40 +0000</bug_when>
    <thetext>Attempted to fix this with the routerstation pro USB. I don&apos;t have hardware, so this
needs a retest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12288</commentid>
    <comment_count>5</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-03-04 00:43:43 +0000</bug_when>
    <thetext>use sato-sdk image of nightly build 20110301-4:
http://autobuilder.pokylinux.org/nightly/20110301-4/machines/mpc8315e-rdb/ppc/
the usb stick not supported by the image.

after these steps , the usb stick can be used:

1.download the modules file of that build:
modules-2.6.37.2-yocto-standard+-r16-mpc8315e-rdb.tgz 
2. decompress the modules file 
3. replace the kernel modules dir of the image by the above modules file.
4. cd /lib/modules/2.6.37.2-yocto-standard+/kernel/drivers/usb/host
5.insmod ./fsl-mph-dr-of.ko
the output the command below: 
/immr@e0000000/usb@23000: Invalid &apos;dr_mode&apos; property, fallback to host mode
root@mpc8315e-rdb:/lib/modules/2.6.37.2-yocto-standard+/kernel/drivers/usb/host# usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 &apos;Enhanced&apos; Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 38, io mem 0xe0023000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb 1-1: new high speed USB device using fsl-ehci and address 2
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
6.insert the usb stick, output below:
root@mpc8315e-rdb:/lib/modules/2.6.37.2-yocto-standard+/kernel/drivers/usb/host# usb 1-1.3: new high speed USB device using fsl-ehci and 3
Initializing USB Mass Storage driver...
scsi2 : usb-storage 1-1.3:1.0
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
scsi 2:0:0:0: Direct-Access     Lenovo   USB Flash Drive  1100 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: [sdb] 7831552 512-byte logical blocks: (4.00 GB/3.73 GiB)
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
7.can mount the /dev/sdb (usb stick device) , can write and read file from the usb device.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14073</commentid>
    <comment_count>6</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-05-31 04:23:30 +0000</bug_when>
    <thetext>use sato-sdk images and modules images from nightly build (20110527-1):
http://autobuilder.pokylinux.org/nightly/20110527-1/machines/mpc8315e-rdb/ppc/
steps:
insert a usb disk to the board.
1.boot the sato-sdk images .
2.extract modules images to /lib/modules
3.depmod -a
4.modprobe ehci-hcd
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 &apos;Enhanced&apos; Host Controller (EHCI) Driver
5.modprobe usb-storage
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
modprobe usb-storage

6.modprobe  fsl-mph-dr-of

/immr@e0000000/usb@23000: Invalid &apos;dr_mode&apos; property, fallback to host mode

fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller

fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1

fsl-ehci fsl-ehci.0: irq 38, io mem 0xe0023000

fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

/usb/host# 
hub 1-1:1.0: USB hub found

hub 1-1:1.0: 4 ports detected

usb 1-1.2: new high speed USB device using fsl-ehci and address 3

scsi2 : usb-storage 1-1.2:1.0

scsi 2:0:0:0: Direct-Access     USB      Flash Disk       0.11 PQ: 0 ANSI: 2

sd 2:0:0:0: [sdb] 7900336 512-byte logical blocks: (4.04 GB/3.76 GiB)

sd 2:0:0:0: Attached scsi generic sg1 type 0

sd 2:0:0:0: [sdb] Write Protect is off

sd 2:0:0:0: [sdb] Assuming drive cache: write through

sd 2:0:0:0: [sdb] Assuming drive cache: write through

 sdb: sdb1 sdb2 sdb3 sdb4

sd 2:0:0:0: [sdb] Assuming drive cache: write through

sd 2:0:0:0: [sdb] Attached SCSI disk
7.lsmod 
Module                  Size  Used by

fsl_mph_dr_of           3481  0 

ipv6                  270232  12 

usbcore               132661  3 usb_storage,ehci_hcd

ehci_hcd               47561  0 

usb_storage            40180  0 
8. ls /dev/sdb 
ls: cannot access /dev/sdb: No such file or directory

usb stick can not mount and read,write.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14074</commentid>
    <comment_count>7</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-05-31 04:28:11 +0000</bug_when>
    <thetext>git info:
commit 4ff7af11ef69849ef9c16f585eae58ac920b222b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14075</commentid>
    <comment_count>8</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-05-31 04:31:18 +0000</bug_when>
    <thetext>git tree/branch: poky/1.1_M1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14082</commentid>
    <comment_count>9</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-05-31 08:16:51 +0000</bug_when>
    <thetext>If you run the new kernel, against the last known working rootfs, do we see /dev/sdb ?
Since the dmesg looks the same between the working and non-working case, I suspect udev isn&apos;t working properly. What if the device nodes are created manually ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14104</commentid>
    <comment_count>10</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-05-31 21:28:35 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; If you run the new kernel, against the last known working rootfs, do we see
&gt; /dev/sdb ?
&gt; Since the dmesg looks the same between the working and non-working case, I
&gt; suspect udev isn&apos;t working properly. What if the device nodes are created
&gt; manually ?

tried the newest git master , also can not find /dev/sdb.
tried manually create device node /dev/sdb:
mknod /dev/sdb b 8 16 

and modprobe usb related modules , can fdisk /dev/sdb and get partitons info. 
root@mpc8315e-rdb:/lib/modules/2.6.37.6-yocto-standard+/kernel/drivers/usb/host
 fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It&apos;s strongly recommended to
         switch off the mode (command &apos;c&apos;) and change display units to
         sectors (command &apos;u&apos;).

Command (m for help): p

Disk /dev/sdb: 4044 MB, 4044972032 bytes
255 heads, 63 sectors/track, 491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8c6968c0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         133     1068291   83  Linux
/dev/sdb2             134         246      907672+   6  FAT16
/dev/sdb3             247         377     1052257+  82  Linux swap / Solaris
/dev/sdb4             378         491      915705   83  Linux

when mount ,it failed:
mount /dev/sdb /mnt
FAT: invalid media value (0x01)
VFS: Can&apos;t find a valid FAT filesystem on dev sdb.
mount: you must specify the filesystem type</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14105</commentid>
    <comment_count>11</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-05-31 22:04:23 +0000</bug_when>
    <thetext>after manually mknod /dev/sdb1 :
mknod /dev/sdb1 b 8 17
can mount /dev/sdb1 and read and write.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14135</commentid>
    <comment_count>12</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-06-02 11:04:02 +0000</bug_when>
    <thetext>So this is basically u-dev not creating the device node
properly for the device. 

Who&apos;s familiar with the udev changes (if any) that have
occurred. I can&apos;t see anything obvious, but the kernel is
unchanged in this area.

Is this the minimal image ? If so, do we have mdev enabled
in busybox ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14147</commentid>
    <comment_count>13</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-06-02 19:09:34 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; So this is basically u-dev not creating the device node
&gt; properly for the device. 
&gt; 
&gt; Who&apos;s familiar with the udev changes (if any) that have
&gt; occurred. I can&apos;t see anything obvious, but the kernel is
&gt; unchanged in this area.
&gt; 
&gt; Is this the minimal image ? If so, do we have mdev enabled
&gt; in busybox ?

no this is sato-sdk image.
found in minimal images project built manually, from tmp/work/ppc603e-poky-linux/busybox-1.18.4-r1/busybox-1.18.4, the MDEV option in the .config file is not set :
....
# CONFIG_MDEV is not set
# CONFIG_FEATURE_MDEV_CONF is not set
# CONFIG_FEATURE_MDEV_RENAME is not set
# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set
# CONFIG_FEATURE_MDEV_EXEC is not set
# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set
....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14154</commentid>
    <comment_count>14</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-06-03 08:49:46 +0000</bug_when>
    <thetext>ok. so mdev shouldn&apos;t be the problem if we are booting
the sato image. Can you attach a copy of the udev rules
in play here ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14198</commentid>
    <comment_count>15</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-06-06 18:35:53 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; ok. so mdev shouldn&apos;t be the problem if we are booting
&gt; the sato image. Can you attach a copy of the udev rules
&gt; in play here ?

two files in dir &quot;/etc/udev/rules.d&quot; :
60-sysprof.rules and local.rules.

60-sysprof.rules:
KERNEL==&quot;sysprof-trace&quot;,                  MODE=&quot;0644&quot;

local.rules:
# There are a number of modifiers that are allowed to be used in some
# of the different fields. They provide the following subsitutions:
#
# %n the &quot;kernel number&quot; of the device.
#    For example, &apos;sda3&apos; has a &quot;kernel number&quot; of &apos;3&apos;
# %e the smallest number for that name which does not matches an existing node
# %k the kernel name for the device
# %M the kernel major number for the device
# %m the kernel minor number for the device
# %b the bus id for the device
# %c the string returned by the PROGRAM
# %s{filename} the content of a sysfs attribute
# %% the &apos;%&apos; char itself
#

# Media automounting
SUBSYSTEM==&quot;block&quot;, ACTION==&quot;add&quot;    RUN+=&quot;/etc/udev/scripts/mount.sh&quot;
SUBSYSTEM==&quot;block&quot;, ACTION==&quot;remove&quot; RUN+=&quot;/etc/udev/scripts/mount.sh&quot;

# Handle network interface setup
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot; RUN+=&quot;/etc/udev/scripts/network.sh&quot;
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;remove&quot; RUN+=&quot;/etc/udev/scripts/network.sh&quot;

# The first framebuffer is symlinked to /dev/fb                       
KERNEL==&quot;fb0&quot;, SYMLINK+=&quot;fb&quot;

# The first rtc device is symlinked to /dev/rtc
KERNEL==&quot;rtc0&quot;, SYMLINK+=&quot;rtc&quot;

# Try and modprobe for drivers for new hardware
ACTION==&quot;add&quot;, DEVPATH==&quot;/devices/*&quot;, ENV{MODALIAS}==&quot;?*&quot;, RUN+=&quot;/sbin/modprobe $env{MODALIAS}&quot;

# Create a symlink to any touchscreen input device
SUBSYSTEM==&quot;input&quot;, KERNEL==&quot;event[0-9]*&quot;, ATTRS{modalias}==&quot;input:*-e0*,3,*a0,1,*18,*&quot;, SYMLINK+=&quot;input/touchscreen0&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14217</commentid>
    <comment_count>16</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-06-07 19:38:23 +0000</bug_when>
    <thetext>This should be a udev issue. udevd daemon doesn&apos;t start up since second boot. There is a bug 1146 report it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14360</commentid>
    <comment_count>17</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-06-20 20:36:55 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; use sato-sdk images and modules images from nightly build (20110527-1):
&gt; http://autobuilder.pokylinux.org/nightly/20110527-1/machines/mpc8315e-rdb/ppc/
&gt; steps:
&gt; insert a usb disk to the board.
&gt; 1.boot the sato-sdk images .
&gt; 2.extract modules images to /lib/modules
&gt; 3.depmod -a
&gt; 4.modprobe ehci-hcd
&gt; usbcore: registered new interface driver usbfs
&gt; usbcore: registered new interface driver hub
&gt; usbcore: registered new device driver usb
&gt; ehci_hcd: USB 2.0 &apos;Enhanced&apos; Host Controller (EHCI) Driver
&gt; 5.modprobe usb-storage
&gt; Initializing USB Mass Storage driver...
&gt; usbcore: registered new interface driver usb-storage
&gt; USB Mass Storage support registered.
&gt; modprobe usb-storage
&gt; 
&gt; 6.modprobe  fsl-mph-dr-of
&gt; 
&gt; /immr@e0000000/usb@23000: Invalid &apos;dr_mode&apos; property, fallback to host mode
&gt; 
&gt; fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
&gt; 
&gt; fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
&gt; 
&gt; fsl-ehci fsl-ehci.0: irq 38, io mem 0xe0023000
&gt; 
&gt; fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
&gt; 
&gt; hub 1-0:1.0: USB hub found
&gt; 
&gt; hub 1-0:1.0: 1 port detected
&gt; 
&gt; /usb/host# 
&gt; hub 1-1:1.0: USB hub found
&gt; 
&gt; hub 1-1:1.0: 4 ports detected
&gt; 
&gt; usb 1-1.2: new high speed USB device using fsl-ehci and address 3
&gt; 
&gt; scsi2 : usb-storage 1-1.2:1.0
&gt; 
&gt; scsi 2:0:0:0: Direct-Access     USB      Flash Disk       0.11 PQ: 0 ANSI: 2
&gt; 
&gt; sd 2:0:0:0: [sdb] 7900336 512-byte logical blocks: (4.04 GB/3.76 GiB)
&gt; 
&gt; sd 2:0:0:0: Attached scsi generic sg1 type 0
&gt; 
&gt; sd 2:0:0:0: [sdb] Write Protect is off
&gt; 
&gt; sd 2:0:0:0: [sdb] Assuming drive cache: write through
&gt; 
&gt; sd 2:0:0:0: [sdb] Assuming drive cache: write through
&gt; 
&gt;  sdb: sdb1 sdb2 sdb3 sdb4
&gt; 
&gt; sd 2:0:0:0: [sdb] Assuming drive cache: write through
&gt; 
&gt; sd 2:0:0:0: [sdb] Attached SCSI disk
&gt; 7.lsmod 
&gt; Module                  Size  Used by
&gt; 
&gt; fsl_mph_dr_of           3481  0 
&gt; 
&gt; ipv6                  270232  12 
&gt; 
&gt; usbcore               132661  3 usb_storage,ehci_hcd
&gt; 
&gt; ehci_hcd               47561  0 
&gt; 
&gt; usb_storage            40180  0 
&gt; 8. ls /dev/sdb 
&gt; ls: cannot access /dev/sdb: No such file or directory
&gt; 
&gt; usb stick can not mount and read,write.

No such error using sato-sdk images from nightly build 20110617-4:
http://autobuilder.pokylinux.org/nightly/20110617-4/machines/mpc8315e-rdb/ppc/
/dev/sdb can be found and can mount,read,write,umount the usb stick.

git info : 2163461ec94528ecf046a04edc5db3d2dd3a6b8b
git branch : master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14371</commentid>
    <comment_count>18</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-06-21 10:46:07 +0000</bug_when>
    <thetext>I changed the state to accepted. Can we have the submitter confirm that this is fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14810</commentid>
    <comment_count>19</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-07-20 02:37:15 +0000</bug_when>
    <thetext>(In reply to comment #17)
&gt; (In reply to comment #6)
&gt; &gt; use sato-sdk images and modules images from nightly build (20110527-1):
&gt; &gt; http://autobuilder.pokylinux.org/nightly/20110527-1/machines/mpc8315e-rdb/ppc/
&gt; &gt; steps:
&gt; &gt; insert a usb disk to the board.
&gt; &gt; 1.boot the sato-sdk images .
&gt; &gt; 2.extract modules images to /lib/modules
&gt; &gt; 3.depmod -a
&gt; &gt; 4.modprobe ehci-hcd
&gt; &gt; usbcore: registered new interface driver usbfs
&gt; &gt; usbcore: registered new interface driver hub
&gt; &gt; usbcore: registered new device driver usb
&gt; &gt; ehci_hcd: USB 2.0 &apos;Enhanced&apos; Host Controller (EHCI) Driver
&gt; &gt; 5.modprobe usb-storage
&gt; &gt; Initializing USB Mass Storage driver...
&gt; &gt; usbcore: registered new interface driver usb-storage
&gt; &gt; USB Mass Storage support registered.
&gt; &gt; modprobe usb-storage
&gt; &gt; 
&gt; &gt; 6.modprobe  fsl-mph-dr-of
&gt; &gt; 
&gt; &gt; /immr@e0000000/usb@23000: Invalid &apos;dr_mode&apos; property, fallback to host mode
&gt; &gt; 
&gt; &gt; fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
&gt; &gt; 
&gt; &gt; fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
&gt; &gt; 
&gt; &gt; fsl-ehci fsl-ehci.0: irq 38, io mem 0xe0023000
&gt; &gt; 
&gt; &gt; fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
&gt; &gt; 
&gt; &gt; hub 1-0:1.0: USB hub found
&gt; &gt; 
&gt; &gt; hub 1-0:1.0: 1 port detected
&gt; &gt; 
&gt; &gt; /usb/host# 
&gt; &gt; hub 1-1:1.0: USB hub found
&gt; &gt; 
&gt; &gt; hub 1-1:1.0: 4 ports detected
&gt; &gt; 
&gt; &gt; usb 1-1.2: new high speed USB device using fsl-ehci and address 3
&gt; &gt; 
&gt; &gt; scsi2 : usb-storage 1-1.2:1.0
&gt; &gt; 
&gt; &gt; scsi 2:0:0:0: Direct-Access     USB      Flash Disk       0.11 PQ: 0 ANSI: 2
&gt; &gt; 
&gt; &gt; sd 2:0:0:0: [sdb] 7900336 512-byte logical blocks: (4.04 GB/3.76 GiB)
&gt; &gt; 
&gt; &gt; sd 2:0:0:0: Attached scsi generic sg1 type 0
&gt; &gt; 
&gt; &gt; sd 2:0:0:0: [sdb] Write Protect is off
&gt; &gt; 
&gt; &gt; sd 2:0:0:0: [sdb] Assuming drive cache: write through
&gt; &gt; 
&gt; &gt; sd 2:0:0:0: [sdb] Assuming drive cache: write through
&gt; &gt; 
&gt; &gt;  sdb: sdb1 sdb2 sdb3 sdb4
&gt; &gt; 
&gt; &gt; sd 2:0:0:0: [sdb] Assuming drive cache: write through
&gt; &gt; 
&gt; &gt; sd 2:0:0:0: [sdb] Attached SCSI disk
&gt; &gt; 7.lsmod 
&gt; &gt; Module                  Size  Used by
&gt; &gt; 
&gt; &gt; fsl_mph_dr_of           3481  0 
&gt; &gt; 
&gt; &gt; ipv6                  270232  12 
&gt; &gt; 
&gt; &gt; usbcore               132661  3 usb_storage,ehci_hcd
&gt; &gt; 
&gt; &gt; ehci_hcd               47561  0 
&gt; &gt; 
&gt; &gt; usb_storage            40180  0 
&gt; &gt; 8. ls /dev/sdb 
&gt; &gt; ls: cannot access /dev/sdb: No such file or directory
&gt; &gt; 
&gt; &gt; usb stick can not mount and read,write.
&gt; 
&gt; No such error using sato-sdk images from nightly build 20110617-4:
&gt; http://autobuilder.pokylinux.org/nightly/20110617-4/machines/mpc8315e-rdb/ppc/
&gt; /dev/sdb can be found and can mount,read,write,umount the usb stick.
&gt; 
&gt; git info : 2163461ec94528ecf046a04edc5db3d2dd3a6b8b
&gt; git branch : master

also no such error using sato-sdk images from nightly build 20110715-1:
http://autobuilder.pokylinux.org/nightly/20110715-1/machines/mpc8315e-rdb/ppc/
git info :93a2ca70482f09e93469481936302e7b6847156e
git branch :Poky/1.1_M2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15050</commentid>
    <comment_count>20</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-07-27 10:52:00 +0000</bug_when>
    <thetext>from the comments in the case, this is fixed, so marking this as resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15059</commentid>
    <comment_count>21</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-07-28 00:37:49 +0000</bug_when>
    <thetext>verified on nightly-build 20110723-2:
http://autobuilder.pokylinux.org/nightly/20110723-2/
git info:eea4bd731ef286516ee1fb934fe2222a09c06e70
git branch: poky/master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>