飞凌6410 Nandflash 偏移设置
arch/arm/mach-s3c64xx/mach-smdk6410.c
/*
* Configuring Nandflash on SMDK6410
*/
struct mtd_partition ok6410_nand_part[] = {
{
.name = "Bootloader",
.offset = 0,
.size = (1 * SZ_1M),
.mask_flags = MTD_CAP_NANDFLASH,
},
{
.name = "Kernel",
.offset = (1 * SZ_1M),
.size = (5*SZ_1M) ,
.mask_flags = MTD_CAP_NANDFLASH,
},
{
.name = "User",
.offset = (6 * SZ_1M),
.size = (120*SZ_1M) ,
},
{
.name = "File System",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
}
};
SD卡下载命令
nand erase;
fatload mmc 0:1 0x50008000 u-boot.bin;
nand write.uboot 0x50008000 0 0x100000;
fatload mmc 0:1 0x50008000 zImage;
nand write.e 0x50008000 0x100000 0x500000;
fatload mmc 0:1 0x50008000 cramfs;
nand write.e 0x50008000 0x600000 0x7800000;