Wind River Support Network

HomeDefectsLIN6-8295
Fixed

LIN6-8295 : ubi issue when format nand flash on xlp8 target

Created: Sep 1, 2014    Updated: Dec 3, 2018
Resolved Date: Oct 19, 2014
Found In Version: 6.0.0.5
Fix Version: 6.0.0.12
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: BSP

Description

When customer format nand flash with ubiformat, it meet error:
/************************************/
root@localhost:~# ubiformat /dev/mtd8
ubiformat: mtd8 (nand), size 536870912 bytes (512.0 MiB), 4096 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scCPU 5 Unable to handle kernel paging request at virtual address 0000000000000000, epc == 0000000000000000, ra == ffffffffc071c304
aOops[#1]:
nCPU: 5 PID: 970 Comm: ubiformat Not tainted 3.10.19-WR6.0.0.5_standard #13
ntask: c0000000f3477788 ti: c0000000f3ea0000 task.ti: c0000000f3ea0000
i$ 0 : 0000000000000000n ffffffffc071c658g 0000000000000000 000000000000000d
$ 4 : c0000000f8e52b10 0000000000000001 0000000000000000 c0000000f8882004
$ 8 : c0000000f8c04500 0000000000000000 0000000000000080 0000000000000000
$12 : c0000000f3eafb70 ffffffffc0657f1c 0000000000000000 c0000000f8c04500
$16 : 0000000000000000 c0000000f8c04000 c0000000f8c04500 c0000000f8c04d00
$20 : c0000000f8e52b10 0000000000000200 c0000000f8e52818 0000000000000010
$24 : 0000000000000000 ffffffffc071e320 
$28 : c0000000f3ea0000 c0000000f3eafae8 c0000000f3eafae8 ffffffffc071c304
Hi : 0000000000000000
Lo : 0000000000000010
epc : 0000000000000000 (null)
Not tainted
ra : ffffffffc071c304 nand_write_subpage_hwecc+0x11c/0x238
Status: 5400f8e3 KX SX UX KERNEL EXL IE 
Cause : 00800008
BadVA : 0000000000000000
PrId : 000c1202 (Broadcom XLPII)
Modules linked in:
Process ubiformat (pid: 970, threadinfo=c0000000f3ea0000, task=c0000000f3477788, tls=0000006ccb07dc00)
Stack : 000000000000000d 0000000000000000 c0000000f8882004 0000000000000000
0000000000000000 00000004c0262f18 0000000000000003 c0000000f3eafb28
c0000000f8e52818 c0000000f8e52b10 0000000000000080 0000000000000000
0000000000000200 0000000000000000 c0000000f8e52818 0000000000000080
c0000000f3eafb78 ffffffffc071c658 c0000000f8c04500 0000000000000000
c0000000f8e52b10 0000000000000200 c0000000f2b7b000 0000000000000080
0000000000000200 c0000000f3eafc88 c0000000f3eafbc8 ffffffffc071df84
0000000000000000 0000000000000000 0000000000000000 0000000000000000
0000000000000040 0000000000000000 000000000000003f 0000000000000000
0000000000000200 c0000000f3eafcb0 0000000000000000 0000000000000000
...
Call Trace:
[<ffffffffc071c658>] nand_write_page+0x188/0x1b8
[<ffffffffc071df84>] nand_do_write_ops+0x26c/0x470
[<ffffffffc071e390>] nand_write+0x70/0xb0
[<ffffffffc034f850>] __kmalloc+0xb8/0x370
[<ffffffffc06fd1c4>] mtdchar_write+0x14c/0x2e0
[<ffffffffc0362500>] vfs_write+0xd0/0x208
[<ffffffffc0362f98>] SyS_write+0x68/0xd8
[<ffffffffc0200844>] handle_sys64+0x44/0x68
Code: (Bad address in epc)
e---[ end trace 6eaad9975aadf941 ]---
libscan: scanning eraseblock 4095 -- 100 % complete 
ubiformat: 4094 eraseblocks are supposedly empty
ubiformat: 2 bad eraseblocks found, numbers: 469, 1807
ubiformat: formatting eraseblock 2 -- 0 % complete  
/************************************/

Steps to Reproduce

1, config project with:
configure --enable-board=bcm-xlp --enable-build=production --enable-kernel=standard --enable-rootfs=glibc_std+debug --with-rcpl-version=0005

2, after boot the system, on the target of our VLM, it will have nand flash on target, we format flash with:
#ubiformat /dev/mtd13

3, then we will see the same issue

Other Downloads


Live chat
Online