Wind River Support Network

HomeDefectsLIN6-10291
Fixed

LIN6-10291 : CLONE - Kernl oops occurs by detaching USB memory device

Created: Sep 6, 2015    Updated: Dec 3, 2018
Resolved Date: Sep 15, 2015
Previous ID: LIN5-20749
Found In Version: 6.0.0.23
Fix Version: 6.0.0.25
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel

Description

Kernl oops occurs by detaching USB memory device.

Steps to Reproduce

Target board: Kontron KM2M806 (Intel Atom E6xx, EG20T chipset)

1. Create a new platform project.
$WIND_LINUX_CONFIGURE --enable-board=intel-atom \
--enable-build=production --enable-kernel=preempt-rt \
--enable-rootfs=glibc_std+debug \
--enable-jobs=6 --enable-parallel-pkgbuilds=6 \ 
--with-sstate-dir=/home/wrs/Build/sstate \
--with-rcpl-version=0028

2. Change kernel configuration.
CONFIG_USB_GADGET    (y -> m)
CONFIG_USB_ETH       (n -> m)

3. Build project.
make

4. Boot WRL5.0.1.28 on target.

<< By repeating below 5 and 6, kernel oops occurs >>

5. Attach USB memory device to the board.

  (a) Attach to USB 2.0 (Type A) Port.
       The issue does not occur on MicroUSB Port

  (b) Do not use USB hub, and directly attach to USB port.

6. Detach USB memory device.

By attaching USB memory,

  usb 2-1: new high-speed USB device number 2 using ehci_hcd
  scsi2 : usb-storage 2-1:1.0

the above 2 lines are displayed, and the below message is displayed about 2 seconds later.

Detach USB memory device just after the log "scsi 2:0:0:0: Direct-Access ~" is displayed.

   scsi 2:0:0:0: Direct-Access     ELECOM   MF-HMU2          PMAP PQ: 0 ANSI: 4
   usb 2-1: USB disconnect, device number 50
   sd 2:0:0:0: [sdb] 15141504 512-byte logical blocks: (7.75 GB/7.21 GiB)
   sd 2:0:0:0: [sdb] Write Protect is off
   sd 2:0:0:0: [sdb] No Caching mode page found
   sd 2:0:0:0: [sdb] Assuming drive cache: write through
   sd 2:0:0:0: [sdb] No Caching mode page found
   sd 2:0:0:0: [sdb] Assuming drive cache: write through
    sdb: sdb1
   sd 2:0:0:0: [sdb] No Caching mode page found
   sd 2:0:0:0: [sdb] Assuming drive cache: write through
   sd 2:0:0:0: [sdb] Attached SCSI removable disk


This issue occurs 5 times out of 500 times attaching and detaching USB memory device.

Other Downloads


Live chat
Online