飞凌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;

 

posted @ 2012-12-23 19:01  ahuo  阅读(225)  评论(0编辑  收藏  举报