How can I setup NAND partitions for a s3c6410 CPU?
I am trying to use the Idea6410 board for developing SPI applications.
Unfortunately, the software was built using the s3c2410 SPI Drivers instead of the s3c6410 SPI drivers using linux_2.6.24. The problem is that this version doesn't contain a s3c6410 version of spidev. So I built a new kernel using linux-2.6.36-rc8. However, the arch/arm/plat-samsung directory does not contain equivalent methods of setting up NAND partitions.
The /arch/arm/plat-s3c24xx/common-smdk.c file contains the following code to setup NAND partitions:
struct mtd_partition s3c_partition_info[] = {
{
.name = "Bootloader",
.offset = 0,
.size = (1*SZ_1M),
.mask_flags = MTD_CAP_NANDFLASH,
},
{
.name = "Kernel",
.offset = (1*SZ_1M), /* Block number is 0x10 */
.size = (3*SZ_1M) - (1*SZ_1M),
.mask_flags = MTD_CAP_NANDFLASH,
},
{
.name = "Root-Cramfs",
.offset = (3*SZ_1M), /* Block number is 0x80 */
.size = (48*SZ_1M),
},
{
.name = "File System",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
}
};
My question is, how can I setup the NAND Partitions using the new linux build?
|