=====================================================================
修改分区:
这里是分区的txt文件选择;
这里是分区的划分,我这里回车了,方便看
FIRMWARE_VER: 8.1
MACHINE_MODEL: RV1126
MACHINE_ID: 007
MANUFACTURER: RV1126
MAGIC: 0x5041524B
ATAG: 0x00200800
MACHINE: 0xffffffff
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
TYPE: GPT
CMDLINE: mtdparts=rk29xxnand:
0x00000800@0x00001000(vnvm),
0x00004000@0x00001800(uboot),
0x00004000@0x00005800(boot),
0x0003C000@0x00009800(rootfs),
0x00000800@0x00045800(lbcmd),
0x00000800@0x00046000(lbflash),
0x00000800@0x00046800(lbflash2),
0x00000800@0x00047000(lbcfg),
0x00000800@0x00047800(lbcfg2),
0x00002800@0x00048000(backup),
0x0001E000@0x0004A800(dataro),
0x0000F800@0x00068800(datarw),
-@0x00078000(factory:grow)
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
然后后面几个就是我的新增分区;lbcmd、lbflash、lbflash2、lbcfg、lbcfg2、backup、dataro、datarw、factory
编译之后可以看到分区的形成:cat proc/mtd
========================================================================
制作所需挂载点
diff --git a/buildroot/fs/common.mk b/buildroot/fs/common.mk
old mode 100644
new mode 100755
index 4b107ea36..25ce3cbed
--- a/buildroot/fs/common.mk
+++ b/buildroot/fs/common.mk
@@ -167,6 +167,12 @@ $$(BINARIES_DIR)/$$(ROOTFS_$(2)_FINAL_IMAGE_NAME): $$(ROOTFS_$(2)_DEPENDENCIES)
mkdir -p $$(@D)
rm -rf $$(ROOTFS_$(2)_DIR)
mkdir -p $$(ROOTFS_$(2)_DIR)
+#add by lm>>>start
+ mkdir -p $(TARGET_DIR)/mnt
+ mkdir -p $(TARGET_DIR)/mnt/ro
+ mkdir -p $(TARGET_DIR)/mnt/rw
+ mkdir -p $(TARGET_DIR)/mnt/rwfs
+#add by lm<<<end
rsync -auH \
--exclude=/$$(notdir $$(TARGET_DIR_WARNING_FILE)) \
$$(BASE_TARGET_DIR)/ \
编译之后可以看到mnt下面生成挂载点:ro、rw、rwfs
=========================================================================
添加config
diff --