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
来自为知笔记(Wiz)

更多精彩