MTD 分区问题
static struct mtd_partition partitions[] = {{
.name = "Linux Section", // for system usage
.offset = 0xD6000,
.size = 0xDC0000 // 13.75MB
},
{
.name = "User Section", // free for use
.offset = 0xE96000,
.size = MTDPART_SIZ_FULL},
{
.name = "Loader Section",
.offset = 0x1000,
.size = 0x5000},
{
.name = "BurnIn Section", // for system usage
.offset = 0x6000, // Burn-in ,start addr MTD_PA_BASE
.size = 0xA0000},
{
.name = "UBoot Section", // for system usage
.offset = 0xA6000, // start addr MTD_PA_BASE + 0x200000
.size = 0x30000},
{
.name = "CFG Section", // for MAC usage
.offset = 0x6E0000,
.size = 0x20000},
};
最后一个配置分区好象是从内核分区划出来的由于我重新编译了新的文件系统 文件系统和内核是一起编译 最后把配置分区覆盖了是不是我更改下配置分区位置就不会覆盖了 谁能告诉我还需要改些什么东西 请各位大虾指点下 回复 1# 三无小将
static struct mtd_partition partitions[] = {
{
.name = "Loader Section",
.offset = 0x1000,
.size = 0x5000},
{
.name = "BurnIn Section", // for system usage
.offset = 0x6000, // Burn-in ,start addr MTD_PA_BASE
.size = 0xA0000},
{
.name = "UBoot Section", // for system usage
.offset = 0xA6000, // start addr MTD_PA_BASE + 0x200000
.size = 0x30000},
{
.name = "Linux Section", // for system usage
.offset = 0xD6000,
.size = 0xDC0000}, // 13M
{
.name = "CFG Section", // for MAC usage
.offset = 0xE96000,
.size = 0x20000},
{
.name = "User Section", // free for use
.offset = 0xEB6000,
.size = MTDPART_SIZ_FULL}, // MTDPART_SIZ_FULL?
};
回复 1# 三无小将
建议分区的大小最好在初始化的时候动动态创建。
页:
[1]