UBI errors when "ls -l"
Yan Kong
ykong at sierrawireless.com
Sun Dec 14 19:30:24 PST 2014
Hi Richard,
The FAE tell me that now mtd driver doesn't support only write OOB area, but not write data area. So mtd_oobtest.
But they are not sure if it is related to the UBI error. What do you think about it?
Another thing is that, I tried to enable nandsim in my Kernel, but saw that "Sub-page size" and "OOB size" of nandsim partition are different from local mtd partition's.
The parameter of nandsim are as follows, which is copied from boot up logs.
Command of insmod nandsim is:
modprobe nandsim first_id_byte=0x2c second_id_byte=0xac third_id_byte=0x90 fourth_id_byte=0x26
Is the parameter I used wrong?
Thank you very much!
boot up logs:
[ 2.004425] msm_nand_probe: phys addr 0x1b400000
[ 2.008332] msm_nand_probe: dmac 0x3
[ 2.011994] msm_nand_probe: allocated dma buffer at d0074000, dma_addr 4f078000
[ 2.019807] status: c00020
[ 2.021852] nandid: 2690ac2c maker 2c device ac
[ 2.026369] ONFI probe : Found an ONFI compliant device MT29F4G08ABBEA3W ,
[ 2.033541] Setting mtd->writebufsize to 0x1000
[ 2.038028] Found supported NAND device for 8bit ECC
[ 2.042972] NAND Controller ID : 0x4030
[ 2.046757] NAND Device ID : 0x2690ac2c ------------------------------------------------------------------------> I use it as nandsim input parameters, these logs are came from boot up
[ 2.050694] Buswidth : 8 Bits
[ 2.053624] Density : 512 MByte
[ 2.056828] Pagesize : 4096 Bytes
[ 2.060155] Erasesize: 262144 Bytes
[ 2.063604] Oobsize : 224 Bytes
[ 2.066809] CFG0 Init : 0xa95409c0
[ 2.070318] CFG1 Init : 0x08045d5c
[ 2.073767] ECCBUFCFG : 0x00000203
[ 2.077765] Creating 7 MTD partitions on "msm_nand":
[ 2.082313] 0x00000ea00000-0x00000eb00000 : "bootloader"
[ 2.089577] 0x00000eb00000-0x00000ff40000 : "kernel"
Mtdinfo:
mtd6
Name: user3
Type: nand
Eraseblock size: 262144 bytes, 256.0 KiB
Amount of eraseblocks: 9 (2359296 bytes, 2.2 MiB)
Minimum input/output unit size: 4096 bytes
Sub-page size: 4096 bytes ----------------------------------------------> local mtd6, sub-page size
OOB size: 224 bytes -----------------------------------------------> local mtd6, OOB size
Character device major/minor: 90:12
Bad blocks are allowed: true
Device is writable: true
mtd7
Name: NAND simulator partition 0
Type: nand
Eraseblock size: 262144 bytes, 256.0 KiB
Amount of eraseblocks: 2048 (536870912 bytes, 512.0 MiB)
Minimum input/output unit size: 4096 bytes
Sub-page size: 1024 bytes ----------------------------------------------------------------> nandsim partition, Sub-page size is different from local mtd6
OOB size: 128 bytes ----------------------------------------------------------------> nandsim partition, OOB size is different from local mtd6
Character device major/minor: 90:14
Bad blocks are allowed: true
Device is writable: true
-----Original Message-----
From: Richard Weinberger [mailto:richard at nod.at]
Sent: 2014年12月12日 16:22
To: Yan Kong
Cc: linux-mtd at lists.infradead.org
Subject: Re: UBI errors when "ls -l"
Hi!
Am 12.12.2014 um 09:03 schrieb Yan Kong:
> Hi Richard,
>
> I have ran "mtd_oobtest" for mtd3, failed.....
> (I erase mtd3 before I run the test, by "flash_erase /dev/mtd3 0 0 -N").
> Do you know is it the mtd driver issue or hardware issue?
mtd_oobtest is failing because this test cannot work with your driver as it does not implement all MTD functions.
Thanks,
//richard
More information about the linux-mtd
mailing list