JZ2440 分区与烧写
Posted gaoyang3513
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JZ2440 分区与烧写相关的知识,希望对你有一定的参考价值。
static struct mtd_partition smdk_default_nand_part[] = {
[0] = {
+ .name = "bootloader",
+ .size = 0x00040000, // size = 0x40000 = 4*2^20 = 4M
.offset = 0, // offset = 0x00
},
[1] = {
+ .name = "params",
+ .offset = MTDPART_OFS_APPEND, // offset = 0x40000
+ .size = 0x00020000, // size = 0x20000(2*2^16) = 128KB)
},
[2] = {
+ .name = "kernel",
+ .offset = MTDPART_OFS_APPEND, // offset = 0x60000(0x40000(bootloader) + 0x20000(params))
+ .size = 0x00200000, // size = 0x200000(2*2^20 = 2M)
},
[3] = {
+ .name = "root",
+ .offset = MTDPART_OFS_APPEND, // offset = 0x260000(0x6000(kernel) + 0x200000)
+ .size = MTDPART_SIZ_FULL, // size = FULL
}
};
uboot
tftp 0x30000000 u-boot.bin
nand erase 0x00 0x40000
nand write 0x30000000 0x00 0x40000
kernel
tftp 0x30000000 uImage
nand erase 0x60000 0x200000
nand write 0x30000000 0x60000 0x200000
以上是关于JZ2440 分区与烧写的主要内容,如果未能解决你的问题,请参考以下文章
移植u-boot-2015.10到JZ2440开发板——设置nand分区,环境变量保存地址和其它默认参数
jz2440烧写开发板uboot,内核和文件系统等的相关命令