openwrt 16M分区格式

内核启动信息

[    0.896079] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.902192] Creating 6 MTD partitions on "spi0.0":
[    0.907190] 0x000000000000-0x000000040000 : "u-boot"
[    0.920345] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.931422] 0x000000050000-0x000000e80000 : "rootfs"
[    0.942406] mtd: device 2 (rootfs) set to be root filesystem
[    0.948423] 1 squashfs-split partitions found on MTD device rootfs
[    0.954865] 0x000000470000-0x000000e80000 : "rootfs_data"
[    0.966421] 0x000000e80000-0x000000ff0000 : "kernel"
[    0.977442] 0x000000ff0000-0x000001000000 : "art"
[    0.988274] 0x000000050000-0x000000ff0000 : "firmware"


各个分区proc显示信息

root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00e30000 00010000 "rootfs"
mtd3: 00700000 00010000 "rootfs_data"
mtd4: 00170000 00010000 "kernel"
mtd5: 00010000 00010000 "art"
mtd6: 00fa0000 00010000 "firmware"


根据内核启动信息计算出的各个分区大小,单位字节

u-boot         262144
u-boot-env     65536
rootfs         14876672
kernel         1507328
art            65536

一共16MB  =  16777216字节


openwrt使用firmware表示文件系统和内核


你可能感兴趣的:(openwrt)