openwrt无法生成sysupgrade.bin

原文地址:http://www.cnblogs.com/fastwave2004/p/4557049.html


1. make menuconfig 后编译没有生成openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin ,究其原因是因为image超出了flash定义的大小,实际的flash是8M的,编译703N的时候没有修改配置编译成4M的了 ,修改下面两个文件(trunk 版本)

1. 

vi tools/firmware-utils/src/mktplinkfw.c

.id = "TL-WR703Nv1",
.hw_id = HWID_TL_WR703N_V1,
.hw_rev = 1,
.layout_id = "4Mlzma",//将4Mlza改为8Mlzma保存即可。

 

2.

vi target/linux/ar71xx/image/Makefile

define Device/tl-wr703n-v1
$(Device/tplink-8mlzma)  //将4mIzma 修改为8mIzma
BOARDNAME := TL-WR703N
DEVICE_PROFILE := TLWR703
TPLINK_HWID := 0x07030101
CONSOLE := ttyATH0,115200
endef


你可能感兴趣的:(openwrt)