Hi,
I have a custom AM3354 board with STNAND256A. I am getting a all blocks are bad whenever I issue nand bad command
U-Boot# nand bad
Device 0 bad blocks:
00000000
00004000
00008000
...
Where I am wrong ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I have a custom AM3354 board with STNAND256A. I am getting a all blocks are bad whenever I issue nand bad command
U-Boot# nand bad
Device 0 bad blocks:
00000000
00004000
00008000
...
Where I am wrong ?
Hi,
Can you post the exact NAND part number?
Thanks for so quick reply
NAND part number : NAND256W3A2BNE
Datasheet is attached.
This NAND is 32MB - 256Mb, 8 bit interface, 512+16 bytes page size, as far as I can see. You cannot boot from this device as it's not supported by AM335X. Also the 16 byte spare area will not support the default ECC used, which is BCH8.
Hi,
if I modify the file include/configs/am335x_evm.h as below ,then whether I will be able to boot.
#define CONFIG_SYS_NAND_PAGE_SIZE (512+16)
#define CONFIG_SYS_NAND_OOBSIZE 16
#define CONFIG_SYS_NAND_BLOCK_SIZE (32*512)
If there are any way so that it should work,can you please suggest.
thanks,
tapas
Please read carefully the whole section 26.1.7.4 in the AM335X Technical Reference Manual Rev. K. 256Mb NAND memories are not supported by AM335X ROM code.
Thanks for the details and i verified the same in TRM also. i d'ont want to use XIP.
we had provisioned
1) NOR flash (M25P80-VMW6TGBA) (8Mbit) interfaced to the AM3354 through SPI, where i want to store MLO (SPL.bin) and uBoot (image).
2) The NAND256W3A2BNE (256 Mbit) is provisioned for kernel image and file system.
On power up, i want to run uboot from SPI NOR flash and then copy the kernel & filesystem from NAND to RAM.
while board bringing up, i'm attempting to write kernel image from RAM to NAND.
When i read kernel image from NAND to RAM, ECC "uncorrectable error" is what i get.
Is it still feasible for me to use the NAND256W3A2BNE with AM3354BZCZA100 for storing kernel image and filesystem?
I was already contacted by your FAE about this. I responded as below:
This NAND has 512 bytes page size + 16 bytes spare area. This will fit exactly into what BCH8 needs, if the filesystem does not use spare area for its own metadata. See this wiki for details:
Hi Wolfgang,
I tried different pages as follows:
U-Boot# nand dump any_address_of_NAND_flash
I am getting always ff for first two byte of spare area for every page.
How do i write this flash and then read the data without "ECC uncorrectable" error!
Should replace the nand flash?
reagards,
Tapas Maji