假如我使用的是WR703N,改为8M内存:
1 修改openwrt/target/linux/ar71xx/image/Makefile文件
$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLMR3420V2,tl-mr3420-v2,TL-MR3420-v2,ttyS0,115200,0x34200002,1,4Mlzma)) #$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,8Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR710,tl-wr710n-v1,TL-WR710N,ttyATH0,115200,0x07100001,1,8Mlzma))
2 修改openwrt/tools/fireware-utils/src/mktplinkfw.c
}, { .id = "TL-WR2543Nv1", .hw_id = HWID_TL_WR2543N_V1, .hw_rev = 1, .layout_id = "8Mlzma", }, { .id = "TL-WR703Nv1", .hw_id = HWID_TL_WR703N_V1, .hw_rev = 1, // .layout_id = "4Mlzma", .layout_id = "8Mlzma", }, { .id = "TL-WR720Nv3", .hw_id = HWID_TL_WR720N_V3, .hw_rev = 1, .layout_id = "4Mlzma", }, {
如果没有你和型号,那么自行添加一个这样的结构就可以了。
然后编译就下载到对应的地址上就行了。