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 all,
My company spun an AM3358 board to increase its NAND size. The new NAND's specs:
– Page size x8: 8640 bytes (8192 + 448 bytes)
– Block size: 128 pages (1024K + 56K bytes)
– Plane size: 2 planes x 2048 blocks per plane
– Device size: 32Gb: 4096 blocks;
64Gb: 8192 blocks;
QUESTION 1:
During boot, Linux outputted this error:
omap-elm 48080000.elm: unsupported config ecc-step=16
So I dug into the kernel code and the TRM's section on the GPMC/ELM, and it looks like the issue is that the ELM only supports page sizes of 2KB or 4KB:
26.1.7.4.1 Features
• Uses GPMC as the communication interface
• Device from 512Mbit (64MByte)
• x8 and x16 bus width
• Support for large page size (2048 bytes + 64 spare bytes) or very large page size 4096 bytes + 128 /
218 spare bytes)
Is there any way around this so that we can use our new NAND part with its 8K page size?
QUESTION 2:
For NAND with total size of 8GB, I assume we need the NAND part to two LUNs (logical units) in it and then need to also configure the Linux device tree's GPMC node to tell the GPMC to use 2 chip select lines.
This is due to the device tree GPMC node's partition fields storing partition sizes and offsets in 32 bits, meaning that we could not have a single 8GB address space.
Thanks in advance!