[#7077] ide harddisk test now fails at bonnie ++ for can't read data
Submitted By: Mingquan Pan
Open Date
2012-04-26 23:02:05
Priority:
Low Assignee:
Bob Liu
Status:
Open Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
ADI-trunk/svn-5764
App binary format:
N/A
Summary: ide harddisk test now fails at bonnie ++ for can't read data
Details:
ide cdrom fails to be recognized on trunk head now.
scsi0 : pata_platform^M
ata1: PATA max PIO0 mmio cmd 0x20314020 ctl 0x2031401c irq 55^M
bfin_mii_bus: probed^M
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)^M
bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M
bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M
TCP cubic registered^M
NET: Registered protocol family 17^M
rtc-bfin rtc-bfin: setting system clock to 1970-11-03 03:16:53 UTC (26450213)^M
IP-Config: Gateway not on directly connected network.^M
dma_alloc_init: dma_page @ 0x027f1000 - 256 pages at 0x03f00000^M
ata1.00: ATA-6: WDC WD800BB-00JHC0, 05.01C05, max UDMA/100^M
ata1.00: 156301488 sectors, multi 0: LBA ^M
ata1.01: ATAPI: TSSTcorpDVD-ROM TS-H352C, CH01, max UDMA/33^M
ata1.00: configured for PIO^M
ata1.01: configured for PIO^M
scsi 0:0:0:0: Direct-Access ATA WDC WD800BB-00JH 05.0 PQ: 0 ANSI: 5^M
ata1: WARNING: synchronous SCSI scan failed without making any progress, switching to async^M
Freeing unused kernel memory: 7404k freed^M
PHY: bfin_mii_bus-0:01 - Link is Up - 100/Full^M
scsi scan: INQUIRY result too short (5), using 36^M
root:/> ^[[6n
Case 1 ...PASS
Case 1 ...PASS
mount -t iso9660 /dev/sr0 /mnt^M
mount: mounting /dev/sr0 on /mnt failed: No such
Last passed time: 2012_Apr_19_10_15.
Uclinux-dist version: 10654.
Kernel verion: , Git-id is not found!
Follow-ups
--- Mingquan Pan 2012-06-05 06:41:23
This issue looks gone now and ide cdrom case is passed.
But instead ide harddisk fails for no device found frequently.
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf537-0.2-3.3.0-ADI-2012R1-pre-0
Created: 2012-06-03 21:21:02 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5100756 Bytes = 4.9 MiB
Load Address: 00001000
Entry Point: 00209c70
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 00209c70
Linux version 3.3.0-ADI-2012R1-pre-00705-g385282d (test@uclinux55-bf537-cf)
(gcc version 4.3.5 (ADI-trunk/svn-5764) ) #444 Mon Jun 4 05:20:41 CST 2012
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-0x001648e8
rodata = 0x001648e8-0x001dc150
bss = 0x001dd000-0x001edf4c
data = 0x001edf4c-0x00202000
stack = 0x00200000-0x00202000
init = 0x00202000-0x0096b000
available = 0x0096b000-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: 350 MHz core clock and 70 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:192.168.0.1: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: 47092k/65536k RAM, (7588k init code, 1422k kernel code, 630k
data, 1024k dma, 7780k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
start_kernel(): bug: interrupts were enabled early
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 697.34 BogoMIPS (lpj=1394688)
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
gpiochip_add: registered GPIOs 0 to 47 on device: BFIN-GPIO
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
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
scsi0 : pata_platform
ata1: PATA max PIO0 mmio cmd 0x20314020 ctl 0x2031401c irq 55
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=13)@sclk=70MHz)
bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-10-13 04:52:05 UTC (24641525)
IP-Config: Gateway not on directly connected network.
dma_alloc_init: dma_page @ 0x028a3000 - 256 pages at 0x03f00000ata1.00:
ATA-6: WDC WD800BB-00JHC0, 05.01C05, max UDMA/100
ata1.00: 156301488 sectors, multi 0: LBA
ata1.01: ATAPI: TSSTcorpDVD-ROM TS-H352C, CH01, max UDMA/33
ata1.00: configured for PIO
ata1.01: configured for PIO
scsi 0:0:0:0: Direct-Access ATA WDC WD800BB-00JH 05.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
scsi 0:0:1:0: CD-ROM TSSTcorp DVD-ROM TS-H352C CH01 PQ: 0 ANSI: 5
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
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
Freeing unused kernel memory: 7588k 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 - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.18.4 (2012-06-03 12:13:20 CST) hush - the humble shell
root:/> verPHY: bfin_mii_bus-0:01 - Link is Up - 100/Full
sion
kernel: Linux release 3.3.0-ADI-2012R1-pre-00705-g385282d, build #444 Mon
Jun 4 05:20:41 CST 2012
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5764)
user-dist: release svn-10692, build #5932 Mon Jun 4 05:18:46 CST 2012
root:/> successful boot attempt
************** STEP 3: Start testing
dmesg|grep sd
sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support
DPO or FUA
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
root:/>
Case 1 ...PASS
Case 1 ...PASS
fdisk /dev/sda
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 64 514048+ 83 Linux
/dev/sda2 91 120 240975 83 Linux
Command (m for help): d
Partition number (1-4): 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-9729, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-90, default 90): +500M
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
sda: sda1 sda2
sda: sda1 sda2
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
Case 2 ...PASS
Case 2 ...PASS
root:/> mke2fs /dev/sda1
mke2fs 1.41.12 (17-May-2010)
Could not stat /dev/sda1 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
root:/>
Last passed time: 2012_May_31_13_28.
Uclinux-dist version: 10688.
Kernel verion: , Git-id is not found!
Case 3 ...FAIL
And cf card is not found also:
bfin_cf_pcmcia bfin_cf_pcmcia: Blackfin CompactFlash/PCMCIA Socket Driver
bfin_cf_pcmcia bfin_cf_pcmcia: : on irq 54
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1971-01-12 07:47:33 UTC (32514453)
IP-Config: Gateway not on directly connected network.
dma_alloc_init: dma_page @ 0x028d8000 - 256 pages at 0x03f00000Freeing unused
kernel memory: 8324k freed
pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0
pcmcia 0.0: pcmcia: registering new device pcmcia0.0 (IRQ: 54)
scsi0 : pata_pcmcia
ata1: PATA max PIO0 cmd 0x20310000 ctl 0x2031000e irq 54
_____________________________________
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...PHY: bfin_mii_bus-0:01 - Link is Up - 100/Full
BusyBox v1.18.4 (2012-06-03 12:13:20 CST) hush - the humble shell
root:/> version
kernel: Linux release 3.3.0-ADI-2012R1-pre-00705-g385282d, build #447 Sun
Jun 3 20:25:10 CST 2012
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5764)
user-dist: release svn-10692, build #5905 Sun Jun 3 20:22:28 CST 2012
root:/> successful boot attempt
************** STEP 3: Start testing
dmesg|grep pcmcia
bfin_cf_pcmcia bfin_cf_pcmcia: Blackfin CompactFlash/PCMCIA Socket Driver
bfin_cf_pcmcia bfin_cf_pcmcia: : on irq 54
pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0
pcmcia 0.0: pcmcia: registering new device pcmcia0.0 (IRQ: 54)
scsi0 : pata_pcmcia
root:/>
Case 1 ...PASS
Case 1 ...PASS
pccardctl ident
Socket 0:
product info: "SanDisk", "SDP", "5/3 0.6",
""
manfid: 0x0045, 0x0401
function: 4 (fixed disk)
root:/>
Case 2 ...PASS
Case 2 ...PASS
pccardctl status
Socket 0:
3.3V 16-bit PC Card
Subdevice 0 (function 0) bound to driver "pata_pcmcia"
root:/>
Case 3 ...PASS
Case 3 ...PASS
fdisk /dev/sda
Unable to open /dev/sda
root:/>
Last passed time: 2012_May_25_15_47.
Uclinux-dist version: 10685.
Kernel verion: , Git-id is not found!
Case 4 ...FAIL
--- Mingquan Pan 2012-10-18 06:06:27
ide harddisk test now fails at bonnie ++ timeout.
root:/> time bonnie++ -u root -d /mnt -s 200M^M
Using uid:0, gid:0.^M
Writing a byte at a time...done^M
Writing intelligently...done^M
Rewriting...done^M
Reading a byte at a time...done^M
Reading intelligently...done^M
start 'em...done...done...done...done...done...^M
Create files in sequential order...done.^M
Stat files in sequential order...Can't read data.^M
Cleaning up test directory after error.^M
Command exited with non-zero status 1^M
real 7m 20.91s^M
user 0m 17.44s^M
sys 5m 14.04s^M
root:/> ^[[6nbonnie++ timeout
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found