[U-Boot] [AT91] Questions about AT91 architecture in u-boot

Hi, all!
I have 2 questions about AT91 architecture in u-boot. 1. In file include/dataflash.h there is setting #define NB_DATAFLASH_AREA 5 What is its real meaning? What if I need to change number of DataFlash partitions? Probably it should be made board-specific?
2. What is current state with hardware ECC for NAND on at91 CPUs? And, is there some ideas on how could I make such an image using mtd-tools' mkfs.jffs2? When I flashed normal image and used hardware ECC in kernel I have got lots of ECC errors and kernel not mounting rootfs. BTW, will hardware ECC help me with big NAND (1GB) and lots of system logging to speed-up stuff?
Thanks a lot, S.

On 15:40 Mon 11 Aug , Sergey Lapin wrote:
Hi, all!
I have 2 questions about AT91 architecture in u-boot.
- In file include/dataflash.h there is setting
#define NB_DATAFLASH_AREA 5 What is its real meaning? What if I need to change number of DataFlash partitions? Probably it should be made board-specific?
Yes you update the code to allow a board to overwrite the default value.
Best Regards, J.
participants (2)
-
Jean-Christophe PLAGNIOL-VILLARD
-
Sergey Lapin