[#5121] pnormtd test fails on bf518-ezbrd trunk and makes board fail to boot up
Submitted By: Vivi Li
Open Date
2009-05-12 04:30:21 Close Date
2009-08-05 22:23:46
Priority:
Medium High Assignee:
Graf Yang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
Tests Board:
N/A
Processor:
BF518 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
toolchain-09r1-rc6
App binary format:
N/A
Summary: pnormtd test fails on bf518-ezbrd trunk and makes board fail to boot up
Details:
Pnormtd test fails on bf518-ezbrd trunk. When execute flash_eraseall, message \"Input/output error\" will show up, then it fails to mount jffs2 filesystem. After that, board can not boot up until we burn a new u-boot.
Bellow is the log:
--
Linux version 2.6.28.9-ADI-2009R1-pre-svn6313 (test@uclinux80-518f) (gcc version 4.1.2 (ADI svn)) #4 Wed May 6 00:16:17 GMT 2009^M
console [early_BFuart0] enabled^M
early printk enabled on early_BFuart0^M
Board Memory: 64MB^M
Kernel Managed Memory: 64MB^M
Memory map:^M
fixedcode = 0x00000400-0x00000490^M
text = 0x00001000-0x00110c30^M
rodata = 0x00110c30-0x00163160^M
bss = 0x00164000-0x00175300^M
data = 0x00175300-0x00186000^M
stack = 0x00184000-0x00186000^M
init = 0x00186000-0x00429000^M
available = 0x00429000-0x03eff000^M
DMA Zone = 0x03f00000-0x04000000^M
Hardware Trace Active and Enabled^M
Boot Mode: 1^M
Blackfin support (C) 2004-2009 Analog Devices, Inc.^M
Compiled for ADSP-BF518 Rev 0.0^M
Blackfin Linux support by http://blackfin.uclinux.org/^M
Processor Speed: 400 MHz core clock and 80 MHz System Clock^M
NOMPU: setting up cplb tables^M
Instruction Cache Enabled for CPU0^M
Data Cache Enabled for CPU0 (write-back)^M
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001^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:bf518f-ezbrd: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
Memory available: 59680k/65536k RAM, (2700k init code, 1087k kernel code, 469k data, 1024k dma, 572k reserved)^M
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)^M
Security Framework initialized^M
Mount-cache hash table entries: 512^M
Blackfin Scratchpad data SRAM: 4 KB^M
Blackfin L1 Data A SRAM: 16 KB (15 KB free)^M
Blackfin L1 Data B SRAM: 16 KB (16 KB free)^M
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)^M
PDA for CPU0 reserved at 00166000^M
net_namespace: 288 bytes^M
NET: Registered protocol family 16^M
Blackfin DMA Controller^M
ezbrd_init(): registering device resources^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
NET: Registered protocol family 1^M
JFFS2 version 2.2. (NAND) Â 2001-2006 Red Hat, Inc.^M
msgmni has been set to 116^M
io scheduler noop registered (default)^M
Serial: Blackfin serial driver^M
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART^M
brd: module loaded^M
bfin_mii_bus: probed^M
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)^M
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M
physmap platform flash device: 00400000 at 20000000^M
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank^M
Amd/Fujitsu Extended Query Table at 0x0040^M
number of CFI chips: 1^M
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.^M
cmdlinepart partition parsing not available^M
RedBoot partition parsing not available^M
Using physmap partition information^M
Creating 3 MTD partitions on \"physmap-flash.0\":^M
0x00000000-0x00040000 : \"bootloader(nor)\"^M
0x00040000-0x00200000 : \"linux kernel(nor)\"^M
0x00200000-0x00400000 : \"file system(nor)\"^M
i2c /dev entries driver^M
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400^M
TCP cubic registered^M
NET: Registered protocol family 17^M
dma_alloc_init: dma_page @ 0x00694000 - 256 pages at 0x03f00000^M
IP-Config: Complete:^M
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,^M
host=bf518f-ezbrd, domain=, nis-domain=(none),^M
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=^M
Freeing unused kernel memory: 2700k freed^M
_____________________________________^M
a8888b. / Welcome to the uClinux distribution \\^M
d888888b. / _ _ \\^M
8P\"YP\"Y88 / | | |_| __ __ (TM) |^M
8|o||o|88 _____/ | | _ ____ _ _ \\ \\/ / |^M
8\' .88 \\ | | | | _ \\| | | | \\ / |^M
8`._.\' Y8. \\ | |__ | | | | | |_| | / \\ |^M
d/ `8b. \\ \\____||_|_| |_|\\____|/_/\\_\\ |^M
dP . Y8b. \\ For embedded processors including |^M
d8:\' \" `::88b \\ the Analog Devices Blackfin /^M
d8\" \'Y88b \\___________________________________/^M
:8P \' :888^M
8a. : _a88P For further information, check out:^M
._/\"Yaa_: .| 88P| - http://blackfin.uclinux.org/^M
\\ YP\" `| 8P `. - http://docs.blackfin.uclinux.org/^M
/ \\.___.d| .\' - http://www.uclinux.org/^M
`--..__)8888P`._.\' jgs/a:f - http://www.analog.com/blackfin^M
Have a lot of fun...^M
BusyBox v1.13.4 (2009-05-05 19:07:33 GMT) built-in shell (msh)^M
Enter \'help\' for a list of built-in commands.^M
root:/>
root:/> cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 \"bootloader(nor)\"
mtd1: 001c0000 00010000 \"linux kernel(nor)\"
mtd2: 00200000 00010000 \"file system(nor)\"
root:/> flash_eraseall -j /dev/mtd2
Erasing 64 Kibyte @ 0 -- 0 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 10000 -- 3 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 20000 -- 6 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 30000 -- 9 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 40000 -- 12 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 50000 -- 15 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 60000 -- 18 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 70000 -- 21 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 80000 -- 25 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 90000 -- 28 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ a0000 -- 31 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ b0000 -- 34 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ c0000 -- 37 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ d0000 -- 40 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ e0000 -- 43 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ f0000 -- 46 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 100000 -- 50 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 110000 -- 53 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 120000 -- 56 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 130000 -- 59 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 140000 -- 62 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 150000 -- 65 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 160000 -- 68 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 170000 -- 71 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 180000 -- 75 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 190000 -- 78 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 1a0000 -- 81 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 1b0000 -- 84 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 1c0000 -- 87 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 1d0000 -- 90 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 1e0000 -- 93 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 1f0000 -- 96 % complete.
flash_eraseall: /dev/mtd2: MTD Erase failure: Input/output error
Erasing 64 Kibyte @ 200000 -- 100 % complete.
root:/> mkdir -p rootfs
root:/> echo \"This is test for mtd driver\" > rootfs/test
root:/> mkfs.jffs2 -r rootfs -o mtd.img
root:/> cp mtd.img /dev/mtd2
root:/> mount -t jffs2 /dev/mtdblock2 /mnt
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x6c42 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000044: 0xe6b8 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000048: 0xe6b8 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 0xe6b8 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 0xe6b8 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000054: 0xe6b8 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000058: 0xe6b8 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000005c: 0xe6b8 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000060: 0xe6b8 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000064: 0x1866 instead^M
Further such events for this erase block will not be printed^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0xe3ca instead^M
Further such events for this erase block will not be printed^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x0003 instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x0003 instead^M
Further such events for this erase block will not be printed^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0xe3ca instead^M
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0xe3ca instead^M
...
Empty flash at 0x001e0940 ends at 0x001e0944
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0000: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0004: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0008: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f000c: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0010: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0014: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0018: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f001c: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0020: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0024: 0x0003 instead
Further such events for this erase block will not be printed
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 32
root:/>
--
Follow-ups
--- Graf Yang 2009-05-20 02:11:26
The AMS bus pin AMS2/3 is shared with SPI0, and is not set as AMS2/3 by
default.
Now I have setting it for Nor flash, and when testing Nor flash, please turn
off SPI driver and DSA driver(it uses SPI0).
--- Vivi Li 2009-08-06 03:23:46
OK now.
Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found