首页 > 其他 > 详细

JZ2440 分区与烧写

时间:2019-04-21 17:55:45      阅读:126      评论:0      收藏:0      [点我收藏+]

 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 分区与烧写

原文:https://www.cnblogs.com/gaoyang3513/p/10745791.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!