Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 148978

Forum Post: RE: AM335x NAND Flash Tool or nandlib does not support BCH 16-bit ECC

$
0
0

Hi.

I'm facing the same problem using a Micron NAND flash (MT29F8G08ABABAWP) with an AM3352 on a custom board.

After multiples actions, I succeeded in flashing  u-boot, kernel and ubifs system images into the NAND.

The kernel starts booting when launching a "run nandboot" from the u-boot prompt. Unfortunatly, the boot sequence fails when the kernel try to mount the system file from the nand partition mtd7, with the following error message :

"UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes".

What I did :

  • I modified u-boot source code to configure BCH16 instead of initial BCH8.
  • I updated, in many places, page size from 2048 to 4096, and block size from 64 to 128 pages, and also mtd partitions with new block size.
  • I updated also the flash_cat_util utility to make it uses 4096 as page size (instead of 2048)
  • My system file has been made on a development machine, using mkfs.ubifs and ubinize tools with the following parameters :
1
2
mkfs.ubifs -r /export/rootfs/ -o ubifs.img -F -m 4096 -e 516096 -c 2016,
ubinize -o ubi.img -m 4096 -p 512KiB -s 4096 -O 4096 -v ubinize.cfg

I saw, in your post http://e2e.ti.com/support/arm/sitara_arm/f/791/t/214942.aspx?pi301021=3, that many patches should be applied to the kernel to enable it to work with BCH16. Unfortunatly it's not totally clear for me what I'm supposed to change (I'm not familar with forums like http://lists.infradead.org/pipermail/linux-mtd/2013-October and I didn't found the patch mentioned in it).

So I didn't make any change in the kernel yet

In http://arago-project.org/git/projects/linux-omap3.git, there is also several patches available, but I would appreciate some help to tell me which are related to my problem and which are not.

Does it exist something else, elsewhere, that may concatenate all changes together to simplify the modification process ? Are these patches still relevant for a situation like mine ?

To summarize, I need help to add support for my nand in the kernel (linux-3.2.0-psp04.06.00.10) I use. At least, some help about links above.

All comments are welcome.

Thank you in advance.


Viewing all articles
Browse latest Browse all 148978

Trending Articles