[#4287] gadget storage harddisk based test failed on bf548-ezkit in 08r1 branch

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4287] gadget storage harddisk based test failed on bf548-ezkit in 08r1 branch

Submitted By: Vivi Li

Open Date

2008-07-28 07:37:11     Close Date

2008-07-29 05:59:23

Priority:

Medium High     Assignee:

Vivi Li

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

08r1.5-13

App binary format:

N/A     

Summary: gadget storage harddisk based test failed on bf548-ezkit in 08r1 branch

Details:

 

Gadget storage harddisk based test failed on bf548-ezkit in 08r1 branch.

It failed when execute mke2fs.

 

Bellow is the log:

--

************** STEP 3: Start testing.

 

ifconfig eth0 10.100.4.50^M

root:/> ^M

root:/> ifconfig^M

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B8:3D  ^M

          inet addr:10.100.4.50  Bcast:10.100.4.255  Mask:255.255.255.0^M

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1^M

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0^M

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0^M

          collisions:0 txqueuelen:1000 ^M

                    Interrupt:175 ^M

^M

lo        Link encap:Local Loopback  ^M

          inet addr:127.0.0.1  Mask:255.0.0.0^M

          UP LOOPBACK RUNNING  MTU:16436  Metric:1^M

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0^M

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0^M

          collisions:0 txqueuelen:0 ^M

          ^M

root:/>

Case 1 ...PASS

 

Case 1 ...PASS

dmesg^M

Linux version 2.6.22.19-ADI-2008R1.5-svn5051 (test@uclinux90-bf548-kernel) (gcc version 4.1.2 (ADI svn)) #11 Sun Jul 27 21:18:48 GMT 2008^M

early printk enabled on early_BFuart0^M

Hardware Trace Active and Enabled^M

Reset caused by Software reset^M

Blackfin support (C) 2004-2007 Analog Devices, Inc.^M

Compiled for ADSP-BF548 Rev 0.0^M

Warning: Compiled for Rev 0, but running on Rev 1^M

Blackfin Linux support by   blackfin.uclinux.org/^M

Processor Speed: 525 MHz core clock and 131 MHz System Clock^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

  text      = 0x00001000-0x00196f90^M

  rodata    = 0x00197000-0x00218b40^M

  data      = 0x00219000-0x00234000^M

    stack   = 0x0021a000-0x0021c000^M

  init      = 0x00234000-0x005d9000^M

  bss       = 0x005d9000-0x005eab30^M

  available = 0x005eab30-0x03dff000^M

  DMA Zone  = 0x03e00000-0x04000000^M

On node 0 totalpages: 15871^M

  DMA zone: 123 pages used for memmap^M

  DMA zone: 0 pages reserved^M

  DMA zone: 15748 pages, LIFO batch:3^M

  Normal zone: 0 pages used for memmap^M

Instruction Cache Enabled^M

Data Cache Enabled (write-through)^M

Built 1 zonelists.  Total pages: 15748^M

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf548-ezkit:eth0:off^M

Configuring Blackfin Priority Driven Interrupts^M

PID hash table entries: 256 (order: 8, 1024 bytes)^M

console handover: boot [early_BFuart0] -> real [ttyBF0]^M

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)^M

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)^M

Kernel managed physical pages: 15871^M

Memory available: 56848k/65536k RAM, (3732k init code, 1623k kernel code, 699k data, 2048k dma, 584k reserved)^M

Blackfin Scratchpad data SRAM: 4 KB^M

Blackfin Data A SRAM: 16 KB (15 KB free)^M

Blackfin Data B SRAM: 16 KB (16 KB free)^M

Blackfin Instruction SRAM: 48 KB (42 KB free)^M

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)^M

Security Framework v1.0.0 initialized^M

Mount-cache hash table entries: 512^M

NET: Registered protocol family 16^M

Blackfin GPIO Controller^M

Blackfin DMA Controller^M

ezkit_init(): registering device resources^M

SCSI subsystem initialized^M

libata version 2.21 loaded.^M

usbcore: registered new interface driver usbfs^M

usbcore: registered new interface driver hub^M

usbcore: registered new device driver usb^M

musb_hdrc: version 6.0, pio, peripheral, debug=0^M

musb_hdrc: ConfigData=0x00 (UTMI-8)^M

musb_hdrc: hw_ep 0shared, max 64^M

musb_hdrc: hw_ep 1tx, max 128^M

musb_hdrc: hw_ep 1rx, max 128^M

musb_hdrc: hw_ep 2tx, max 128^M

musb_hdrc: hw_ep 2rx, max 128^M

musb_hdrc: hw_ep 3tx, max 128^M

musb_hdrc: hw_ep 3rx, max 128^M

musb_hdrc: hw_ep 4tx, max 128^M

musb_hdrc: hw_ep 4rx, max 128^M

musb_hdrc: hw_ep 5tx, max 1024^M

musb_hdrc: hw_ep 5rx, max 1024^M

musb_hdrc: hw_ep 6tx, max 1024^M

musb_hdrc: hw_ep 6rx, max 1024^M

musb_hdrc: hw_ep 7tx, max 1024^M

musb_hdrc: hw_ep 7rx, max 1024^M

musb_hdrc: USB Peripheral mode controller at ffc03c00 using PIO, IRQ 82^M

NET: Registered protocol family 2^M

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)^M

TCP established hash table entries: 2048 (order: 2, 16384 bytes)^M

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)^M

TCP: Hash tables configured (established 2048 bind 2048)^M

TCP reno registered^M

io scheduler noop registered^M

io scheduler anticipatory registered (default)^M

io scheduler cfq registered^M

bf54x-lq043: FrameBuffer initializing...^M

dma_alloc_init: dma_page @ 0x0313e000 - 512 pages at 0x03e00000^M

bfin-otp: initialized^M

bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M

Serial: Blackfin serial driver^M

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART^M

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize^M

smsc911x: Driver version 2007-07-13.^M

register bfin atapi driver^M

scsi0 : pata-bf54x^M

ata1: PATA max UDMA/66 cmd 0x00000000 ctl 0xffc03800 bmdma 0x00000000 irq 68^M

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100^M

ata1.00: 78140160 sectors, multi 16: LBA48 ^M

ata1.00: configured for UDMA/66^M

blk_queue_max_hw_segments: set to minimum 1^M

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5^M

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)^M

sd 0:0:0:0: [sda] Write Protect is off^M

sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00^M

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA^M

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)^M

sd 0:0:0:0: [sda] Write Protect is off^M

sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00^M

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA^M

sda: sda1^M

sd 0

Case 2 ...PASS

 

Case 2 ...PASS

:0:0:0: [sda] Attached SCSI disk^M

physmap platform flash device: 00400000 at 20000000^M

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank^M

NOR chip too large to fit in mapping. Attempting to cope...^M

Intel/Sharp Extended Query Table at 0x010A^M

  Unknown Intel/Sharp Extended Query version 1.5.^M

gen_probe: No supported Vendor Command Set found^M

physmap-flash physmap-flash.0: map_probe failed^M

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.^M

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3^M

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)^M

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":^M

0x00000000-0x00400000 : "Linux Kernel"^M

0x00400000-0x10000000 : "File System"^M

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@4^M

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc02300, dma channel@5^M

Initializing USB Mass Storage driver...^M

usbcore: registered new interface driver usb-storage^M

USB Mass Storage support registered.^M

input: bf54x-keys as /class/input/input0^M

bf54x-keys: Blackfin BF54x Keypad registered IRQ 76^M

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M

i2c /dev entries driver^M

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc02200^M

usbcore: registered new interface driver usbhid^M

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver^M

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).^M

ASoC version 0.13.1^M

dma rx:0 tx:1, err irq:10, regs:ffc00800^M

AD1980 SoC Audio Codec^M

asoc: AC97 <-> bf5xx-ac97 mapping ok^M

ALSA device list:^M

  #0: bf5xx-board (AD1980)^M

TCP cubic registered^M

NET: Registered protocol family 1^M

NET: Registered protocol family 17^M

Setting up Blackfin MMR debugfs^M

rtc-bfin rtc-bfin: setting the system clock to 1970-01-04 01:28:49 (264529)^M

eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175^M

eth0: SMSC911x MAC Address: 00:e0:22:fe:b8:3d^M

eth0: link down^M

IP-Config: Complete:^M

      device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,^M

     host=bf548-ezkit, domain=, nis-domain=(none),^M

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=^M

Freeing unused kernel memory: 3732k freed^M

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1^M

root:/> modprobe g_file_storage file=/dev/sda1 stall=0^M

g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005^M

g_file_storage gadget: Number of LUNs=1^M

g_file_storage gadget-lun0: ro=0, file: /dev/sda1^M

root:/> g_file_storage gadget: high speed config #1^M

lsmod^M

Module                  Size  Used by^M

g_file_storage         20424  0 ^M

root:/>

Case 3 ...PASS

 

Case 3 ...PASS

su -^M

^[]0;test@adam-desktop2: ~/work/cruise/checkouts/uclinux-dist/testsuites/usbdev^Gtest@adam-desktop2:~/work/cruise/checkouts/uclinux-dist/testsuites/usbdev> su -^M

Password: ^M

^[]0;root@adam-desktop2: ~^Groot@adam-desktop2:~#

Case 4 ...PASS

 

Case 4 ...PASS

mkdir -p /mnt/usb^M

^[]0;root@adam-desktop2: ~^Groot@adam-desktop2:~#

Case 5 ...PASS

 

Case 5 ...PASS

ls /dev/sdc^M

^[[00m^[[40;33;01m/dev/sdc^[[00m^M

^[[m^[]0;root@adam-desktop2: ~^Groot@adam-desktop2:~#

Case 6 ...PASS

 

Case 6 ...PASS

fdisk /dev/sdc^M

^M

The number of cylinders for this disk is set to 37652.^M

There is nothing wrong with that, but this is larger than 1024,^M

and could in certain setups cause problems with:^M

1) software that runs at boot time (e.g., old versions of LILO)^M

2) booting and partitioning software from other OSs^M

   (e.g., DOS FDISK, OS/2 FDISK)^M

^M

Command (m for help): d^M

Selected partition 1^M

^M

Command (m for help): n^M

Command action^M

   e   extended^M

   p   primary partition (1-4)^M

p^M

Partition number (1-4): 1^M

First cylinder (1-37652, default 1): ^M

Using default value 1^M

Last cylinder or +size or +sizeM or +sizeK (1-37652, default 37652): ^M

Using default value 37652^M

^M

Command (m for help): w^M

The partition table has been altered!^M

^M

Calling ioctl() to re-read partition table.^M

Syncing disks.^M

^[]0;root@adam-desktop2: ~^Groot@adam-desktop2:~#

Case 7 ...PASS

 

Case 7 ...PASS

mke2fs /dev/sdc1^M

mke2fs 1.40.2 (12-Jul-2007)^M

Filesystem label=^M

OS type: Linux^M

Block size=4096 (log=2)^M

Fragment size=4096 (log=2)^M

4823840 inodes, 9638908 blocks^M

481945 blocks (5.00%) reserved for the super user^M

First data block=0^M

Maximum filesystem blocks=4294967296^M

295 block groups^M

32768 blocks per group, 32768 fragments per group^M

16352 inodes per group^M

Superblock backups stored on blocks: ^M

        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, ^M

        4096000, 7962624^M

ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir^M^M

^[]0;root@adam-desktop2: ~^Groot@adam-desktop2:~#

Case 8 ...FAIL

 

Case 8 ...FAIL

 

GADGET STORAGE HD TEST FAIL

GADGET STORAGE HD TEST ............[FAIL]

 

--

 

Follow-ups

 

--- Sonic Zhang                                              2008-07-29 04:47:19

Not a bug. When format a partition, which is created in another partition,

mke2fs reports warning "had trouble writing out superblock". To

emulator a usb disk by bf548 harddisk, it is better to use the entire disk or a

large file on the disk instead of a parition.

 

Vivi will update the test suite.

 

--- Vivi Li                                                  2008-07-29 05:59:20

This is the problem of test script and has been fixed.

Now we use the whole disk as the file-backed storage and use only a small part

of it from PC side. Then mke2fs works fine.

Close it.

 

Anyway, some bug still exists in gadget. Please refer to "[#4291] MUSB

peripheral bulk transfer issues".

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes