Menu

#6 Fail to run mke2fs with usb sl811 in trunk and 2011 branch

2011R1
open
nobody
None
middle
none
BF537-STAMP
2015-02-09
2013-07-04
panmingquan
No

[#6863] Fail to run mke2fs with usb sl811 in trunk and 2011 branch
Move Item | Delete Item | Clone Item | Merge Item
Submitted By: Vivi Li
Open Date
2011-10-31 18:04:50
Priority:
Assignee:
Fixed In Release:
Status:
Found In Release:
Release:
Board:
Processor:

Silicon Revision:
Uboot version or rev.:
Toolchain version or rev.:
Is this bug repeatable?:
Resolution:
App binary format:
Summary:
Details: (Edit)

Fail to run mke2fs with usb sl811 in trunk and 2011 branch.

--
U-Boot 2010.06 (ADI-2010R1-RC1) (Sep 29 2010 - 17:49:40)

CPU: ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)
Board: ADI BF537 stamp board
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM: 64 MiB
Flash: 4 MiB
In: serial
Out: serial
Err: serial
KGDB: [on serial] ready
Net: bfin_mac
Hit any key to stop autoboot: 0
Using bfin_mac device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################
done
Bytes transferred = 5119490 (4e1e02 hex)

Booting kernel from Legacy Image at 01000000 ...

Image Name: bf537-0.2-3.1.0-ADI-2012R1-pre-s
Created: 2011-10-27 16:52:23 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5119426 Bytes = 4.9 MiB
Load Address: 00001000
Entry Point: 00203c58
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 00203c58
Linux version 3.1.0-ADI-2012R1-pre-svn10106 (test@54-7393-1362-sl811-jtag) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #258 Fri Oct 281
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00160210
rodata = 0x00160210-0x001d4bf4
bss = 0x001d5000-0x001e5268
data = 0x001e5268-0x001fc000
stack = 0x001fa000-0x001fc000
init = 0x001fc000-0x0096c000
available = 0x0096c000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 47088k/65536k RAM, (7616k init code, 1404k kernel code, 624k data, 1024k dma, 7780k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (34 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
SCSI subsystem initialized
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 91
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
driver isp1362-hcd, 2005-04-04
isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller
isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1
isp1362_hc_reset:
isp1362-hcd isp1362-hcd.0: irq 53, io mem 0x20360000
isp1362_hc_start:
isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:
isp1362-hcd isp1362-hcd.0: ISTL: 2 * 256: 512 @ $0000:$0100
isp1362-hcd isp1362-hcd.0: INTL: 16 * ( 64+8): 1152 @ $0200
isp1362-hcd isp1362-hcd.0: ATL : 32 * ( 64+8): 2304 @ $0680
isp1362-hcd isp1362-hcd.0: USED/FREE: 3968 128
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ISP1362 Host Controller, irq 53
sl811: driver sl811-hcd, 19 May 2005
sl811-hcd sl811-hcd.0: SL811HS v1.5
sl811-hcd sl811-hcd.0: new USB bus registered, assigned bus number 2
sl811-hcd sl811-hcd.0: irq 54, io mem 0x20340000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-03 23:53:07 UTC (258787)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf537-stamp, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
dma_alloc_init: dma_page @ 0x02999000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 7616k freed
usb 2-1: new full speed USB device number 2 using sl811-hcd
usb 2-1: device descriptor read/64, error -62
scsi0 : usb-storage 2-1:1.0
_____
a8888b. / Welcome to the uClinux distribution \ d888888b. / _ _ \ 8P"YP"Y88 / | | |_|
(TM) |
8|o||o|88 __/ | | _ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8._.' Y8. \ | |__ | | | | | |_| | / \ | d/8b. \ _|||| |_|_|/
/_\ |
dP . Y8b. \ For embedded processors including |
d8:' " ::88b \ the Analog Devices Blackfin / d8" 'Y88b \___________________________________/ :8P ' :888 8a. : _a88P For further information, check out: ._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/ \ YP"| 8P . - http://docs.blackfin.uclinux.org/ / \.___.d| .' - http://www.uclinux.org/--..
)8888P`._.' jgs/a:f - http://www.analog.com/blackfin

Have a lot of fun...

BusyBox v1.18.4 (2011-10-27 22:36:54 CST) hush - the humble shell

root:/> scsi 0:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 1952768 512-byte logical blocks: (999 MB/953 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
PHY: 0:01 - Link is Up - 100/Full

root:/>
root:/> ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2
root:/> mkdosfs -F 32 /dev/sda1
mkdosfs 3.0.5 (27 Jul 2009)
root:/> mke2fs /dev/sda2
mke2fs 1.41.12 (17-May-2010)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/sda2 is moun.
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
124440 inodes, 495876 blocks
24793 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
61 block groups
8192 blocks per group, 8192 fragments per group
2040 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

Writing inode tables: done
Writing superblocks and filesystem accounting information: usb 2-1: reset full speed USB device number 2 using sl811-hcd
usb 2-1: device descriptor read/64, error -110
usb 2-1: device descriptor read/64, error -110
usb 2-1: reset full speed USB device number 2 using sl811-hcd
usb 2-1: device descriptor read/64, error -110
usb 2-1: device descriptor read/64, error -110
usb 2-1: reset full speed USB device number 2 using sl811-hcd
usb 2-1: device not accepting address 2, error -110
usb 2-1: reset full speed USB device number 2 using sl811-hcd
usb 2-1: device not accepting address 2, error -110
usb 2-1: USB disconnect, device number 2
sd 0:0:0:0: Device offlined - not ready after error recovery
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 14 eb f0 00 00 08 00
end_request: I/O error, dev sda, sector 1371120
Buffer I/O error on device sda2, logical block 51265
lost page write due to I/O error on sda2
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 15 29 e8 00 00 08 00
end_request: I/O error, dev sda, sector 1386984
Buffer I/O error on device sda2, logical block 53248
lost page write due to I/O error on sda2
sd 0:0:0:0: rejecting I/O to offline device
done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root:/>
--

Follow-ups

--- Sonic Zhang 2011-11-09 15:07:44
exists in 2010R1 as well.

--- Sonic Zhang 2011-11-09 15:19:29
and 2009R1.1 as well.

--- Vivi Li 2012-12-21 18:07:38
Still exists in latest buildroot.

--- Mingquan Pan 2013-02-27 15:24:21
similar error is found on trunk head now.

Booting kernel from Legacy Image at 02000000 ...

Image Name: bf537-0.2-3.7.0-ADI-2012R2-pre-0
Created: 2013-02-26 2:52:43 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4038302 Bytes = 3.9 MiB
Load Address: 00001000
Entry Point: 00237b08
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 00237b08
Linux version 3.7.0-ADI-2012R2-pre-00022-gaaf7f86-dirty
(test@54-7393-1362-sl811-jtag) (gcc version 4.3.5 (ADI-2012R2-RC2) ) #4 Tue Feb
26 10:52:36 CST 2013
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0017c6f8
rodata = 0x0017c6f8-0x001ff0f4
bss = 0x00200000-0x002110cc
data = 0x002110e0-0x00230000
stack = 0x0022e000-0x00230000
init = 0x00230000-0x004ec000
available = 0x004ec000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50
earlyprintk=serial,uart0,57600 console=ttyBF0,57600
ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 51696k/65536k RAM, (2800k init code, 1517k kernel code, 719k
data, 1024k dma, 7780k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (34 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
SCSI subsystem initialized
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs@ffc00500, dma channel@7
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 100
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
libphy: bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY]
(mii_bus:phy_addr=bfin_mii_bus-0:01, irq=-1,
mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0 eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
sl811-hcd sl811-hcd.0: SL811HS v1.5
sl811-hcd sl811-hcd.0: new USB bus registered, assigned bus number 1
sl811-hcd sl811-hcd.0: irq 54, io mem 0x20340000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-16 10:58:28 UTC (1335508)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174
host=bf537-stamp, domain=, nis-domain=(none)
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
dma_alloc_init: dma_page @ 0x02762000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 2800k freed
usb 1-1: new full-speed USB device number 2 using sl811-hcd
scsi0 : usb-storage 1-1:1.0

BusyBox v1.20.2 (2013-02-26 10:45:05 CST) hush - the humble shell

root:/>successful boot attempt iscsi 0:0:0:0: Direct-Access SanDisk
Cruzer 7.01 PQ: 0 ANSI: 0 CCS
fsd 0:0:0:0: [sda] 1957887 512-byte logical blocks: (1.00 GB/955 MiB)
scsi 0:0:0:1: CD-ROM SanDisk Cruzer 7.01 PQ: 0 ANSI: 0
sd 0:0:0:0: [sda] Write Protect is off
libphy: bfin_mii_bus-0:01 - Link is Up - 100/Full
csd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
osd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
n sda: sda1 sda2
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
fig eth0 10.100.4.50
root:/> Ethernet may has been activated already!
version
kernel: Linux release 3.7.0-ADI-2012R2-pre-00022-gaaf7f86-dirty, build #4
Tue Feb 26 10:52:36 CST 2013
toolchain:
/home/test/workspace/src/kernel/label/BF537-STAMP-ADV7393/output/host/usr/bin/bfin-uclinux-gcc
release gcc version 4.3.5 (ADI-2012R2-RC2)
user-dist: release git-373f191, build #1 Mon Feb 25 18:06:14 CST 2013
root:/>
Linux version: 3.7.0-ADI-2012R2-pre-00022-gaaf7f86-dirty
GCC version: 4.3.5 (ADI-2012R2-RC2)
user-dist version: git-373f191

** STEP 3: Start testing

root:/> dmesg|grep -i sd
sd 0:0:0:0: [sda] 1957887 512-byte logical blocks: (1.00 GB/955 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 45 00 00 08
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
root:/> 
Case 1 ...PASS

Case 1 ...PASS
[6nmke2fs /dev/sda1
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
120832 inodes, 481918 blocks
24095 blocks (5%) reserved for the super user
First data block=1
Maximum filesystem blocks=524288
59 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
root:/>
Case 2 ...PASS

Case 2 ...PASS
mount -t ext2 /dev/sda1 /mnt
root:/>
Case 3 ...PASS

Case 3 ...PASS
mount
rootfs on / type rootfs (rw)
devtmpfs on /dev type devtmpfs (rw,relatime,mode=0755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
mdev on /dev type tmpfs (rw,nosuid,relatime,mode=0755,size=10M)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
var on /var type tmpfs (rw,relatime)
tmp on /tmp type tmpfs (rw,nosuid,nodev,relatime,mode=777)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda1 on /mnt type ext2 (rw,relatime,errors=continue)
root:/>
Case 4 ...PASS

Case 4 ...PASS
echo teststring > /mnt/usbhost_testfile; cat /mnt/usbhost_testfile
teststring
root:/>
Case 5 ...PASS

Case 5 ...PASS
time dd conv=fsync if=/dev/zero of=/mnt/10m.bin bs=1M count=10
10+0 records in
10+0 records out
real 0m 40.92s
user 0m 0.00s
sys 0m 0.52s
root:/>
Case 6 ...PASS

Case 6 ...PASS
rm /mnt/usbhost_testfile; rm /mnt/*.bin
root:/>
Case 7 ...PASS

Case 7 ...PASS
ls /mnt/
lost+found
root:/> 
Case 7 ...PASS

Case 7 ...PASS
[6numount /mnt
root:/> mount
rootfs on / type rootfs (rw)
devtmpfs on /dev type devtmpfs (rw,relatime,mode=0755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
mdev on /dev type tmpfs (rw,nosuid,relatime,mode=0755,size=10M)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
var on /var type tmpfs (rw,relatime)
tmp on /tmp type tmpfs (rw,nosuid,nodev,relatime,mode=777)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
root:/>
ase 8 ...PASS

Case 8 ...PASS
6nmkdosfs -F 32 /dev/sda2
root:/>
Case 9 ...PASS

Case 9 ...PASS
mount /dev/sda2 /mnt
root:/>
Case 10 ...PASS

Case 10 ...PASS
mount
rootfs on / type rootfs (rw)
devtmpfs on /dev type devtmpfs (rw,relatime,mode=0755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
mdev on /dev type tmpfs (rw,nosuid,relatime,mode=0755,size=10M)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
var on /var type tmpfs (rw,relatime)
tmp on /tmp type tmpfs (rw,nosuid,nodev,relatime,mode=777)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda2 on /mnt type vfat
(rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root:/>
Case 11 ...PASS

Case 11 ...PASS
echo teststring > /mnt/usbhost_testfile; cat /mnt/usbhost_testfile
teststring
root:/>
Case 12 ...PASS

Case 12 ...PASS
time dd conv=fsync if=/dev/zero of=/mnt/10m.bin bs=1M count=10
usb 1-1: reset full-speed USB device number 2 using sl811-hcd
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: reset full-speed USB device number 2 using sl811-hcd
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: reset full-speed USB device number 2 using sl811-hcd
usb 1-1: device descriptor read/8, error -110
usb 1-1: device descriptor read/8, error -110
usb 1-1: reset full-speed USB device number 2 using sl811-hcd
usb 1-1: device descriptor read/8, error -110
usb 1-1: device descriptor read/8, error -110
usb 1-1: USB disconnect, device number 2
sd 0:0:0:0: Device offlined - not ready after error recovery
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]
Result: hostbyte=0x05 driverbyte=0x00
sd 0:0:0:0: [sda] CDB:
cdb[0]=0x2a: 2a 00 00 0e d0 8a 00 00 f0 00
end_request: I/O error, dev sda, sector 970890
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: [sda] killing request
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]
Result: hostbyte=0x01 driverbyte=0x00
sd 0:0:0:0: [sda] CDB:
cdb[0]=0x2a: 2a 00 00 0e d1 7a 00 00 f0 00
end_request: I/O error, dev sda, sector 971130
dd: /mnt/10m.bin: Input/output error
Command exited with non-zero status 1
real 2m 1.24s
user 0m 0.00s
sys 0m 0.18s
root:/> Generate a 10M file timeout, test fail

Last passed test result is not found!!

Case 13 ...FAIL

Case 13 ...FAIL

2 Attachments

Discussion

  • panmingquan

    panmingquan - 2013-07-04
     
  • Sonic Zhang

    Sonic Zhang - 2013-07-09
    • Priority: 3 --> middle
     

Log in to post a comment.