首先修改trunk/tools/firmware-utils/src/mktplinkfw.c只修改fw_max_len為0xfc0000,16M flash;只修改fw_max_len為0x7c0000,8M flash.id = "4M",.fw_max_len = 0xfc0000,.kernel_la = 0x80060000,.kernel_ep = 0x80060000,.rootfs_ofs = 0x140000,新版只用改fw的大小,分割槽表會自動認,不用像老版自己定義每個分割槽大小了。另外還需下面修改:Imagebuilder 目錄下,./target/linux/ar71xx/image/Makefile, 把703n最後的4Mlzma改成了8Mlzma或16Mlzma$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,8Mlzma))否則出現如下錯誤:[mktplinkfw] kernel length aligned to 914864[mktplinkfw] *** error: images are too bigmake[3]: [install] Error 255 (ignored)在openwrt中不能更新uboot時,需要做如下修改:target/linux/ar71xx/files/drivers/mtd/tplinkpart.cparts[0].mask_flags = MTD_WRITEABLE; //去除本行
首先修改trunk/tools/firmware-utils/src/mktplinkfw.c只修改fw_max_len為0xfc0000,16M flash;只修改fw_max_len為0x7c0000,8M flash.id = "4M",.fw_max_len = 0xfc0000,.kernel_la = 0x80060000,.kernel_ep = 0x80060000,.rootfs_ofs = 0x140000,新版只用改fw的大小,分割槽表會自動認,不用像老版自己定義每個分割槽大小了。另外還需下面修改:Imagebuilder 目錄下,./target/linux/ar71xx/image/Makefile, 把703n最後的4Mlzma改成了8Mlzma或16Mlzma$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,8Mlzma))否則出現如下錯誤:[mktplinkfw] kernel length aligned to 914864[mktplinkfw] *** error: images are too bigmake[3]: [install] Error 255 (ignored)在openwrt中不能更新uboot時,需要做如下修改:target/linux/ar71xx/files/drivers/mtd/tplinkpart.cparts[0].mask_flags = MTD_WRITEABLE; //去除本行