首先修改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 big
make[3]: [install] Error 255 (ignored)
在openwrt中不能更新uboot时,需要做如下修改:
target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
parts[0].mask_flags = MTD_WRITEABLE; //去除本行
阅读(2002) | 评论(0) | 转发(0) |