- 论坛徽章:
- 0
|
如下:
static struct mtd_partition nand_partitions[] = {
/* bootloader (U-Boot, etc) in first sector */
{
.name = "bootloader",
.offset = 0,
.size = SZ_256K,
.mask_flags = MTD_WRITEABLE, /* force read-only */
},
/* bootloader params in the next sector */
{
.name = "params",
.offset = MTDPART_OFS_APPEND,
.size = SZ_128K,
.mask_flags = MTD_WRITEABLE, /* force read-only */
},
/* kernel */
{
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
.size = SZ_4M,
.mask_flags = 0
},
/* file system */
{
.name = "filesystem",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
.mask_flags = 0
}
};
按道理是
uboot:0-40000,参数占用20000,即40000-60000
kernel:占用400000,即60000 - 460000
文件系统:剩下的。
不知道对不?现在想通过uboot烧写kernel和文件系统,搞不清其实地址,例如:
nand erase 140000 20000
nand write 80800000 140000 20000
大侠请教! |
|