UBIFS: problems writing to the partition

Alemao xcarandiru at gmail.com
Thu Nov 26 14:04:22 EST 2009


On Thu, Nov 26, 2009 at 1:32 PM, Alemao <xcarandiru at gmail.com> wrote:
> On Thu, Nov 26, 2009 at 5:32 AM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
>> On Wed, 2009-11-25 at 10:03 -0200, Alemao wrote:
>>> Hi all,
>>>
>>> I have de following scenario:
>>>
>>> - Freescale MPC8541
>>> - U-Boot-2009.03
>>> - Linux-2.6.26
>>> - NAND flash 512Mbit (64MB), page: 512 bytes, erase block: 16KB
>>>
>>>
>>> And Im creating UBI image with this parameters:
>>>
>>> mkfs.ubifs -r rootfs/ -m 512 -c 3897 -e 15872 -o ubi.temp
>>> ubinize -o rootfs.ubifs -m 512 -p 16384 -s 256 ubinize.cfg
>>
>> Please, start with validating your NAND flash/driver using the mtd
>> tests:
>> http://www.linux-mtd.infradead.org/doc/general.html#L_mtd_tests
>
>
> Im using JFFS2 with no problem. My NAND driver is OK.
>

I used mtd tests, here the results:

# insmod oobtest.ko dev=3
oobtest: oobtest finished with 0

# insmod pagetest.ko dev=3
pagetest: pagetest finished with 0 errors

# insmod scantest.ko dev=3
scantest: Size=67108864  EB size=16384  Write size=512  EB count=4096
Pages per EB=32  Page size=512  Oob size=16
scantest: scanning for bad blocks
scantest: found 0 bad
scantest: Testing page read
scantest: scantest finished

# insmod speedtest.ko dev=3
speedtest: Testing eraseblock write speed
eraseblock write speed is 2039 KiB/s
speedtest: Testing eraseblock read speed
eraseblock read speed is 3102 KiB/s
speedtest: Testing page write speed
page write speed is 2025 KiB/s
speedtest: Testing page read speed
page read speed is 3087 KiB/s
speedtest: Testing 2 page write speed
2 page write speed is 2033 KiB/s
speedtest: Testing 2 page read speed
2 page read speed is 3094 KiB/s
speedtest: Testing erase speed
erase speed is 9073 KiB/s

# insmod stresstest.ko dev=3 count=10000
stresstest: Doing operations
stresstest: 0 operations
stresstest: 4096 operations
stresstest: 8192 operations
stresstest: 10000 operations
stresstest: stresstest finished

# insmod subpagetest.ko dev=3
subpagetest: dev = 3
sub-page size is: 256
subpagetest: subpagetest finished with 0 errors


Seems there is no problem with my NAND driver. Im using Freescale
Local Bus UPM driver.

Any other hints or anything else should I check?

Cheers,

--
Alemao



More information about the linux-mtd mailing list