[#7285] Gadget storage test fail on bf548-ezkit in latest trunk
Submitted By: Vivi Li
Open Date
2012-08-24 03:51:59 Close Date
2012-09-13 03:28:58
Priority:
Medium Assignee:
Bob Liu
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
EZKIT Lite
Processor:
BF548 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2012_Aug_09
App binary format:
N/A
Summary: Gadget storage test fail on bf548-ezkit in latest trunk
Details:
Gadget storage test fail on bf548-ezkit. It passed on bf527-ezkit.
Can not recognize bf548-ezkit as a storage device.
Last passed time is 2012_Aug_09_15_52:
--
kernel: Linux release 3.5.0-ADI-2012R1-pre-00807-gce77d0b, build #54 Thu Aug 9 16:30:59 CST 2012
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2012R1-RC2)
user-dist: release svn-10766, build #50 Thu Aug 9 16:30:11 CST 2012
--
First failed time is 2012_Aug_10_12_56:
--
kernel: Linux release 3.5.0-ADI-2012R1-pre-00811-g842eea3, build #60 Fri Aug 10 13:35:43 CST 2012
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2012R1-RC2)
user-dist: release svn-10768, build #56 Fri Aug 10 13:34:54 CST 2012
--
Bellow is the error log:
--
Linux version 3.5.0-ADI-2012R1-pre-00811-g842eea3 (test@uclinux62-548-usbdev) (gcc version 4.3.5 (ADI-2012R1-RC2) ) #60 Fri Aug 10 13:35:43 CST 2012
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart1] enabled
early printk enabled on early_BFuart1
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001e7c58
rodata = 0x001e7c58-0x0028b6ac
bss = 0x0028c000-0x0029ebf8
data = 0x0029ec00-0x002c4000
stack = 0x002c2000-0x002c4000
init = 0x002c4000-0x00a81000
available = 0x00a81000-0x03e00000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 1
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
L2 SRAM : uncacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-through) in data cache
L2 SRAM : uncacheable in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15748
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf548-ezkit: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: 52124k/65536k RAM, (7924k init code, 1947k kernel code, 881k data, 2048k dma, 612k reserved)
NR_IRQS:295
Configuring Blackfin Priority Driven Interrupts
start_kernel(): bug: interrupts were enabled early<8a>console [ttyBF1] enabled, bootconsole disabled
console [ttyBF1] enabled, bootconsole disabled
Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)
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 (41 KB free)
Blackfin L2 SRAM: 128 KB (128 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_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
spi spi0.2: Warning: SPI CPHA not set: Slave Select not under software control!
See Documentation/blackfin/bfin-spi-notes.txt
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@4
bfin-spi bfin-spi.1: master is unqueued, this is deprecated
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc02300, dma channel@5
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc00700
i2c-bfin-twi i2c-bfin-twi.1: Blackfin on-chip I2C TWI Contoller, regs_base@ffc02200
Advanced Linux Sound Architecture Driver Version 1.0.25.
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 101
io scheduler noop registered (default)
bf54x-lq043: FrameBuffer initializing...
dma_alloc_init: dma_page @ 0x02a5e000 - 512 pages at 0x03e00000
bfin-uart: Blackfin serial driver
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART
bfin-otp: initialized
brd: module loaded
register bfin atapi driver
scsi0 : pata-bf54x
ata1: PATA max UDMA/66 irq 68
physmap platform flash device: 02000000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x00881e
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
Creating 5 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000080000 : "bootloader(nor)"
0x000000080000-0x000000480000 : "linux kernel(nor)"
0x000000480000-0x000000fe0000 : "file system(nor)"
0x000000fe0000-0x000000ff8000 : "config(nor)"
0x000000ff8000-0x000001000000 : "u-boot env(nor)"
m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000080000 : "bootloader(spi)"
ata1.00: ATA-7: FUJITSU MHW2040AT, 0000000B, max UDMA/100
ata1.00: 78140160 sectors, multi 16: LBA
0x000000080000-0x000000200000 : "linux kernel(spi)"
BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.
ata1.00: configured for UDMA/66
scsi 0:0:0:0: Direct-Access ATA FUJITSU MHW2040A 0000 PQ: 0 ANSI: 5
bf5xx-nand bf5xx-nand.0: data_width=8, wr_dly=3, rd_dly=3
NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit), page size: 2048, OOB size: 64
sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000080000 : "bootloader(nand)"
0x000000080000-0x000000480000 : "linux kernel(nand)"
0x000000480000-0x000010000000 : "file system(nand)"
smsc911x: Driver version 2008-10-21
smsc911x-mdio: probed
smsc911x smsc911x.0: eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=smsc911x-0:01, irq=-1)
smsc911x smsc911x.0: eth0: MAC Address: 00:e0:22:fe:bd:09
musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
musb-hdrc musb-hdrc: USB OTG mode controller at ffc03c00 using DMA, IRQ 82
input: bf54x-keys as /devices/platform/bf54x-keys/input/input0
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
bfin-i2s bfin-i2s.0: dma rx:0 tx:1, err irq:10, regs:ffc00800
soc-audio soc-audio: ASoC machine bfin-ssm2602 should use snd_soc_register_card()
ssm2602 0-001b: Failed to issue reset: -5
ssm2602 0-001b: asoc: failed to probe CODEC ssm2602.0-001b: -5
asoc: failed to instantiate card bfin-ssm2602: -5
soc-audio soc-audio: Failed to register card
sda: sda1
soc-audio: probe of soc-audio failed with error -5
sd 0:0:0:0: [sda] Attached SCSI disk
TCP: cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1987-09-27 09:45:30 UTC (559734330)
mmc0: host does not support reading read-only switch. assuming write-enable.
smsc911x smsc911x.0: eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175
mmc0: new SD card at address e624
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174
host=bf548-ezkit, domain=, nis-domain=(none)
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
ALSA device list:
No soundcards found.
Freeing unused kernel memory: 7924k freed
_____________________________________
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 - https://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.18.4 (2012-08-10 13:09:50 CST) hush - the humble shell
root:/> version
kernel: Linux release 3.5.0-ADI-2012R1-pre-00811-g842eea3, build #60 Fri Aug 10 13:35:43 CST 2012
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2012R1-RC2)
user-dist: release svn-10768, build #56 Fri Aug 10 13:34:54 CST 2012
root:/> successful boot attempt
************** STEP 3: Start testing.
nifconfig eth0 10.100.4.50
root:/>
root:/> dd if=/dev/zero of=fsg.block bs=1M count=16
16+0 records in
16+0 records out
root:/>
Case 1 ...PASS
Case 1 ...PASS
modprobe g_file_storage file=/fsg.block stall=0
gadget: No serial-number string provided!
gadget: File-backed Storage Gadget, version: 1 September 2010
gadget: NOTE: This driver is deprecated. Consider using g_mass_storage instead.
gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, nofua=0, file: /fsg.block
musb-hdrc musb-hdrc: MUSB HDRC host driver
musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
root:/> gadget: high-speed config #1
lsmod
Module Size Used by
g_file_storage 20314 0
root:/>
Case 2 ...PASS
Case 2 ...PASS
spawn /bin/bash
su -
test@uclinux62-548-usbdev:~/work/cruise/checkouts/uclinux-dist/testsuites/usbdev>> su -
Password:
uclinux62-548-usbdev:~ #
Case 3 ...PASS
Case 3 ...PASS
mkdir -p /mnt/usb
uclinux62-548-usbdev:~ #
Case 4 ...PASS
Case 4 ...PASS
ls /dev/sdb
ls: cannot access /dev/sdb: No such file or directory
uclinux62-548-usbdev:~ #
--
Follow-ups
--- Bob Liu 2012-09-13 02:29:14
can't repeat.
host machine:
[82841.314357] usbcore: registered new interface driver usb-storage
[82841.314359] USB Mass Storage support registered.
[82841.354389] usbcore: registered new interface driver uas
[82842.312667] scsi 8:0:0:0: Direct-Access Linux File-Stor Gadget 0316
PQ: 0 ANSI: 2
[82842.313279] sd 8:0:0:0: Attached scsi generic sg3 type 0
[82842.316655] sd 8:0:0:0: [sdc] 32768 512-byte logical blocks: (16.7 MB/16.0
MiB)
[82842.317146] sd 8:0:0:0: [sdc] Write Protect is off
[82842.317150] sd 8:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[82842.317646] sd 8:0:0:0: [sdc] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[82842.321556] sdc: unknown partition table
[82842.323521] sd 8:0:0:0: [sdc] Attached SCSI disk
--- Vivi Li 2012-09-13 04:28:29
Not a bug. Test scripts need to be more flexible to find the gadget storage
device node. Fix test scripts and close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.linux.usbdev.dma application/octet-stream 54596 Vivi Li