Hi
I use Macronix MX60LF8G28AB for NAND booting.
In U-boot, it can be detected and get correct size (1024 MiB ) and read/write normally.
But in kernel, it only get 512MiB size.
Here is my MTD partition table and kernel message.
-------------------------------------------------------------------------------------------------------------
----- board-am335xevm.c
static struct mtd_partition am335x_nand_partitions[] = {
/* All the partition sizes are listed in terms of NAND block size */
{
.name = "SPL",
.offset = 0,
.size = SZ_128K,
},
{
.name = "Env",
.offset = MTDPART_OFS_APPEND,
.size = SZ_128K,
},
{
.name = "U-Boot",
.offset = MTDPART_OFS_APPEND,
.size = 4 * SZ_128K,
},
{
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
.size = 40 * SZ_128K,
},
{
.name = "rootfs",
.offset = MTDPART_OFS_APPEND,
.size = 880 * SZ_128K,
},
{
.name = "test1",
.offset = MTDPART_OFS_APPEND,
.size = 80 * SZ_128K,
},
{
.name = "test2",
.offset = MTDPART_OFS_APPEND,
.size = 80 * SZ_128K,
},
{
.name = "test3",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
},
};
-------------------------------------------------------------------------------------------------------------
----- kernel message
omap2-nand driver initializing
ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0xc2, Chip ID: 0xd3 (Macronix MX60LF8G28AB)
Creating 8 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000020000 : "SPL"
0x000000020000-0x000000040000 : "Env"
0x000000040000-0x0000000c0000 : "U-Boot"
0x0000000c0000-0x0000005c0000 : "kernel"
0x0000005c0000-0x0000073c0000 : "rootfs"
0x0000073c0000-0x000007dc0000 : "test1"
0x000007dc0000-0x0000087c0000 : "test2"
0x0000087c0000-0x000020000000 : "test3"
OneNAND driver initializing
-------------------------------------------------------------------------------------------------------------
The mtd7 should be 0x0000087c0000-0x000040000000.
If I change MTDPART_SIZ_FULL to 0x40000000, it will show error as below
" mtd: partition "test3" extends beyond the end of device "omap2-nand.0" -- size truncated to 0x17840000 "
How to fix this problem to get correct flash size?
Thanks and Regards
Kiros