编译TPLINK WR703Nv1 8M trunk固件
(2013-01-09 17:29:15)
标签:
杂谈 |
分类: python/GAE/android[转] |
1.
2.
3.
4.
5.
5.a.
5.b.
注:我这里是偷懒的办法,实际上还有其他修改方法。就不一一列举了。另外这是trunk版本的修改法,如果各位编译的是老版本或者dreambox的版本,修改的方法不一样。
dreambox修改如下:
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c修改如下:
static struct mtd_partition tl_wr703n_parts[] = {
};
################################################
tools/firmware-utils/src/mktplinkfw.c修改如下:
5.c.
I.添加
/feeds/packages/net/ddns-scripts/files/usr/lib/ddns/services
添加
"3322.org"
II.
/feeds/packages/net/ddns-scripts/files/etc/config/ddns
config service "myddns"
III.
/package/firewall/files/firewall.config
添加内容:
config 'rule'
config 'rule'
IV.
/package/mac80211/files/lib/wifi/mac80211.sh
修改内容:注意对齐,参考修改
在文件最后修改以下内容:
config
wifi-device
$ht_capab
config wifi-iface
EOF
}
V.
/package/base-files/files/etc/config/system
修改内容:
config system
VI.
/feeds/packages/net/transmission/files/transmission.config
修改内容自己根据需要修改吧
VII.
路径:./openwrt/trunk/package/base-files/files/etc/config
文件:network
修改内容:
# Copyright (C) 2006 OpenWrt.org
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
config interface lan
option type bridge
option proto static
option ipaddr 192.168.10.1
option netmask 255.255.255.0
config interface wan
option ifname eth0
option _orig_ifname eth0
option _orig_bridge false
option proto dhcp
VIII.
/package/dnsmasq/files/dhcp.conf
config dhcp lan
IX.
在如下位置新建4个文件,在保存后,请修改权限为777
/target/linux/ar71xx/base-files/etc/hotplug.d/button/00-button
. /etc/functions.sh
do_button () {
}
config_load system
config_foreach do_button button
/target/linux/ar71xx/base-files/etc/hotplug.d/button/change2ap
#!/bin/sh
uci delete network.wan
uci delete network.lan
uci set network.lan=interface
uci set network.lan.ifname=eth0
uci set network.lan.type=bridge
uci set network.lan.proto=static
uci set network.lan.ipaddr=192.168.1.2
uci set network.lan.netmask=255.255.255.0
uci set network.lan.gateway=192.168.1.1
uci set network.lan.dns=192.168.1.1
uci commit network
uci set dhcp.lan.ignore=1
uci commit dhcp
reboot
/target/linux/ar71xx/base-files/etc/hotplug.d/button/change23dhcp
#!/bin/sh
uci delete network.wan
uci delete network.lan
uci set network.lan=interface
uci set network.lan.type=bridge
uci set network.lan.proto=static
uci set network.lan.ipaddr=192.168.10.1
uci set network.lan.netmask=255.255.255.0
uci set network.wan=interface
uci set network.wan.ifname=eth0
uci set network.wan.proto=dhcp
uci set network.wan._orig_ifname=eth0
uci set network.wan._orig_bridge=false
uci commit network
uci delete dhcp.lan.ignore
uci commit dhcp
reboot
/target/linux/ar71xx/base-files/etc/hotplug.d/button/change23g
#!/bin/sh
uci delete network.wan
uci delete network.lan
uci set network.lan=interface
uci set network.lan.ifname=eth0
uci set network.lan.type=bridge
uci set network.lan.proto=static
uci set network.lan.ipaddr=192.168.1.1
uci set network.lan.netmask=255.255.255.0
uci set network.wan=interface
uci set network.wan.ifname=ppp0
uci set network.wan.proto=3g
uci set network.wan.maxwait=0
uci set network.wan.service=evdo
uci set network.wan.device=/dev/ttyUSB0
uci set network.wan.username=ctnet@mycdma.cn
uci set network.wan.password=vnet.mobi
uci set network.wan.auto=1
uci commit network
uci delete dhcp.lan.ignore
uci commit dhcp
reboot
修改/package/base-files/files/etc/config/system,在尾部添加
config button
config button
config button
这样以后按住reset2秒内,
按住reset0-2秒放开,切换到3g配置,
按住reset3-8秒放开,切换到ap模式,
reset 9秒以上放开,切换到二级路由dhcp模式。
路径:./openwrt/trunk/package/block-mount/files
修改
6.
7.