分享一下自用的 WNDR3700v4 / WNDR4300 openwrt 14.07 (barrier breaker) RC2 编译

2014-08-18 18:39:04 +08:00
 mind3x

本来是写在另一个主题下面的长回复,后来想想干脆单独发个主题算了,也许有人能用得上。

简单介绍一下我的编译版本的来源:

首先,主要是基于OpenWRT论坛上AdamK编译的版本( https://forum.openwrt.org/viewtopic.php?id=41094 下载在 http://www.mcservices.com.au/downloads/OpenWRT/ ),他在openwrt官方之前就集成了各种WNDR3700v4/4300需要的补丁,并且缺省enable了比较多的package,在14年7月以前他的编译版本一直是最靠谱的。不过他因为生病已经一个多月没有更新了。他的版本目前唯一的缺陷是没有解决3700v4/4300的128M flash全利用的问题,刷完以后可用的只有10几M——当然也基本够用。

后来openwrt论坛上有个叫zhouruixi的基友(一看ID就是同胞,也活跃于恩山)提出来了新的patch解决了128M flash的问题,他也提供了自己编译image的下载。

然后同样是openwrt论坛上的另一名基友Diffie,在AdamK的build基础上,集成了zhouruixi的patch,加了一些他需要的内容(例如XFS文件系统的支持)。Diffie编译的image下载在http://www.blazebox.homeip.net/~diffie/openwrt ,不过今天貌似连接已经失效。

而Diffie修改的版本主要的问题是他使用3.10.52的Linux内核,与官方3.10.49不一致,所以刷了他的image之后无法opkg install安装官方仓库上的内核模块。比如我需要多拨,要用到kmod-macvlan,就只好自己重新编译。

所以我目前用的是在Diffie的build基础上自己编译的版本,改动的地方只有把kernel改回用3.10.49,缺省编译了kmod-macvlan,fastd和n2n(你懂的)。

所以我的build主要内容就是AdamK + zhouruixi + Diffie + 修改kernel版本与主干一致。

我的image,sysupgrade和build config都在百度网盘上共享出来了,有兴趣的基友欢迎自行取用: http://pan.baidu.com/s/1qWuLWC0 当然你不放心的话也可以基于我的config自己重新编译啦~

目前我编译的版本是RC2 42096,只要你的版本是40859之后,应该都已经有sysupgrade支持,可以直接通过sysupgrade升级,无需重刷image。

80376 次点击
所在节点    分享创造
289 条回复
carbon
2014-09-16 15:28:59 +08:00
相当好用!!! 过来感谢一下!!!
kelso
2014-09-16 21:10:40 +08:00
遇到一个问题: 刷了42258的包以后,换成了src/gz barrier_breaker http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ar71xx/nand/packages的源,
但是在安装kmod-fs-hfsplus包的时候报错,说是kernel版本不对,代码:
kernel (= 3.10.49-1-c3c04b0870b5423e0c3af3dd9f95312a) *
opkg_install_cmd: Cannot install package kmod-fs-hfsplus.

难道它要求的 3.10.49-1 和 42258 包里的 3.10.49 不一样?但是我找了好久也没有找到网上有3.10.49支持的 ipk 可装……
mind3x
2014-09-16 22:22:15 +08:00
@kelso kernel module要和我的编译一致,不能从官网装。不过据说强制安装一般也可以用。
eskimolhr
2014-09-18 14:13:45 +08:00
楼主你好,我昨天刷了网盘下载的固件,可以正常上网,但是没有中文选项,按照网上的教程从System-Software–Actions里下载luci-i18n-chinese或者opkg install luci-i18n-chinese均不成功,提示Unknown package 'luci-i18n-chinese'.Collected errors:* opkg_install_cmd: Cannot install package luci-i18n-chinese.
请问楼主该如何处理才能显示中文?纯小白第一次用op,麻烦楼主了!
zhangjiao
2014-09-18 16:33:25 +08:00
没有中文版吗
mind3x
2014-09-18 22:20:56 +08:00
@eskimolhr 下次发布我会加入中文luci语言包。

你先在Software -> Configuration里确认"src/gz barrier_breaker"这一行的内容改成这样:

src/gz barrier_breaker http://downloads.openwrt.org/barrier_breaker/14.07-rc2/ar71xx/nand/packages

上面rc2或rc3基本上都可以。

然后在Software -> Actions 里先update lists再安装。
eskimolhr
2014-09-18 22:28:00 +08:00
@mind3x 非常感谢你的解答。请问单线多拨如何设置呢?网上搜了一天没有找到成功的方法。。。
mind3x
2014-09-18 23:08:39 +08:00
@eskimolhr 这个回头有空我再写一下...本身不复杂,但我都是ssh上去直接vi改配置的...
SkYoung
2014-09-19 13:52:45 +08:00
@mind3x 能不能除了中文也集成个ss并带图形界面来配置啊,门外汉想上个ss路由不得门而入
mind3x
2014-09-19 13:53:50 +08:00
@SkYoung 说真的,ss的配置已经很简单了...
SkYoung
2014-09-19 14:09:04 +08:00
@mind3x 那就请教吧,装好了ss,我就想最简单的,Google、推特等几个网站通过ss出,其它直通,要透明代理,省得每台客户端设置
如果chinadns之类的防dns欺骗是非必需的,就放弃了
只要上推特,Google啥的
能帮忙来个step by step么?万谢
mind3x
2014-09-19 14:28:51 +08:00
SkYoung
2014-09-19 15:03:05 +08:00
@mind3x 北落师门的另外一篇我照做了,居然所有网页都不能上了,但qq可以上。不知道哪里搞错了,我太失败了,准备再来按照这个来一遍,哈哈

再多问一句:搞来搞去,会不会把ppenwrt搞得很乱,如何恢复一个清爽干净的系统?
mind3x
2014-09-19 15:13:51 +08:00
@SkYoung 这个,你自己改过的配置文件不都心里有数的吗...ipset/dnsmasq要改的系统配置也很少。
SkYoung
2014-09-19 15:22:39 +08:00
@mind3x 恢复修改文件的没有问题,就是我为了自带ss和图形配置倒腾了几次,都是升级固件不保留配置,是不是这样就是一个干净系统了?!
mind3x
2014-09-19 16:04:01 +08:00
@SkYoung 干净得不能再干净
ptsa
2014-09-20 09:09:10 +08:00
@mind3x https连接总是按IP奇偶数均摊 这个要怎么设置的?
我之前 https的 指定wan1 万一wan1挂了 不会到wan2 .这样 一点不智能
我在想有没有默认wan1 没联网的话 wan2 这样
或者按你的 均摊
mind3x
2014-09-20 09:57:13 +08:00
@ptsa 这个不要改。mwan3知道处理有某个wan挂掉的情况。
zhangjiao
2014-09-20 14:55:40 +08:00
@mind3x 请问下为什么我新建的接口全部都接连接不上,而且我在MWAN3接口下有 some interfaces have no default route in the main routing table的提示,网上有人说是没有设跳跃点的原故,我已改跳跃点,是不是MACVLAN没有虚拟成功的原因啊,我已经把ETC/RC.LOCAL改为
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

ip link add link eth0.2 vth1 type macvlan
ifconfig vth1 hw ether 00:56:22:38:44:6E
ifconfig vth1 up

ip link add link eth0.2 vth2 type macvlan
ifconfig vth2 hw ether 00:87:22:33:44:3F
ifconfig vth2 up

ip link add link eth0.2 vth3 type macvlan
ifconfig vth3 hw ether 00:11:56:21:44:3A
ifconfig vth3 up

ip link add link eth0.2 vth4 type macvlan
ifconfig vth4 hw ether 00:24:38:33:44:3F
ifconfig vth4 up

ip link add link eth0.2 vth5 type macvlan
ifconfig vth5 hw ether 00:42:22:51:44:3A
ifconfig vth5 up


ip link add link eth0.2 vth6 type macvlan
ifconfig vth6 hw ether 00:58:22:51:91:3B
ifconfig vth6 up

ip link add link eth0.2 vth7 type macvlan
ifconfig vth7 hw ether 00:91:59:48:44:3C
ifconfig vth7 up

ip link add link eth0.2 vth8 type macvlan
ifconfig vth8 hw ether 00:62:27:51:35:3C
ifconfig vth8 up

ip link add link eth0.2 vth9 type macvlan
ifconfig vth9 hw ether 00:34:38:92:44:3F
ifconfig vth9 up


exit 0

但是在PUTTY里用 IP LINK LS
查到的信息如下,是不是没有虚拟成功啊
root@OpenWrt:~# ip link ls
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
3: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default
link/tunnel6 :: brd ::
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default
link/sit 0.0.0.0 brd 0.0.0.0
5: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32
link/ether 96:61:ff:85:1b:d6 brd ff:ff:ff:ff:ff:ff
6: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32
link/ether 22:b8:5c:43:95:a7 brd ff:ff:ff:ff:ff:ff
7: gre0: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT group default
link/gre 0.0.0.0 brd 0.0.0.0
8: gretap0: <BROADCAST,MULTICAST> mtu 1476 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
9: ip6gre0: <NOARP> mtu 1448 qdisc noop state DOWN mode DEFAULT group default
link/gre6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
10: ipddp0: <BROADCAST,MULTICAST,NOARP> mtu 585 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ip/ddp 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
11: teql0: <NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100
link/void
12: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 6c:b0:ce:11:c8:aa brd ff:ff:ff:ff:ff:ff
13: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 6c:b0:ce:11:c8:ac brd ff:ff:ff:ff:ff:ff
14: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether 6c:b0:ce:11:c8:aa brd ff:ff:ff:ff:ff:ff
15: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP mode DEFAULT group default
link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
16: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
17: pppoe-wan: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 3
link/ppp
root@OpenWrt:~# root@OpenWrt:~# ip link ls
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
3: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default
link/tunnel6 :: brd ::
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default
link/sit 0.0.0.0 brd 0.0.0.0
5: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32
link/ether 96:61:ff:85:1b:d6 brd ff:ff:ff:ff:ff:ff
-ash6: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32
: link/ether 22:b8:5c:43:95:a7 brd ff:ff:ff:ff:ff:ff
root@OpenWrt:~#7: gre0: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT group default
: link/gre 0.0.0.0 brd 0.0.0.0
not found8: gretap0: <BROADCAST,MULTICAST> mtu 1476 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff

9: ip6gre0: <NOARP> mtu 1448 qdisc noop state DOWN mode DEFAULT group default
root@OpenWrt:~# 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKN
OWN mode DEFAULT group default
-ash: can't open LOOPBACK,UP,LOWER_UP: no such file
-ash: 1:: not found
root@OpenWrt:~# link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
-ash: link/loopback: not found
root@OpenWrt:~# 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_cod
el state UP mode DEFAULT group default qlen 1000
-ash: can't open BROADCAST,MULTICAST,UP,LOWER_UP: no such file
-ash: 2:: not found
root@OpenWrt:~# link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
-ash: link/ether: not found
root@OpenWrt:~# 3: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT
group default
-ash: can't open NOARP: no such file
-ash: 3:: not found
root@OpenWrt:~# link/tunnel6 :: brd ::
-ash: link/tunnel6: not found
root@OpenWrt:~# 4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT gro
up default
-ash: can't open NOARP: no such file
-ash: 4:: not found
root@OpenWrt:~# link/sit 0.0.0.0 brd 0.0.0.0
-ash: link/sit: not found
root@OpenWrt:~# 5: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode D
EFAULT group default qlen 32
-ash: can't open BROADCAST,NOARP: no such file
-ash: 5:: not found
root@OpenWrt:~# link/ether 96:61:ff:85:1b:d6 brd ff:ff:ff:ff:ff:ff
-ash: link/ether: not found
root@OpenWrt:~# 6: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode D
EFAULT group default qlen 32
-ash: can't open BROADCAST,NOARP: no such file
-ash: 6:: not found
root@OpenWrt:~# link/ether 22:b8:5c:43:95:a7 brd ff:ff:ff:ff:ff:ff
-ash: link/ether: not found
root@OpenWrt:~# 7: gre0: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT gro
up default
-ash: can't open NOARP: no such file
-ash: 7:: not found
root@OpenWrt:~# link/gre 0.0.0.0 brd 0.0.0.0
-ash: link/gre: not found
root@OpenWrt:~# 8: gretap0: <BROADCAST,MULTICAST> mtu 1476 qdisc noop state DOWN
mode DEFAULT group default qlen 1000
-ash: can't open BROADCAST,MULTICAST: no such file
-ash: 8:: not found
root@OpenWrt:~# link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
-ash: link/ether: not found
root@OpenWrt:~# 9: ip6gre0: <NOARP> mtu 1448 qdisc noop state DOWN mode DEFAULT
group default
-ash: can't open NOARP: no such file
-ash: 9:: not found
root@OpenWrt:~# link/gre6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 br
d 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
-ash: link/gre6: not found
root@OpenWrt:~# 10: ipddp0: <BROADCAST,MULTICAST,NOARP> mtu 585 qdisc noop state
DOWN mode DEFAULT group default qlen 1000
-ash: can't open BROADCAST,MULTICAST,NOARP: no such file
-ash: 10:: not found
mind3x
2014-09-20 16:49:04 +08:00
@zhangjiao 请先只配双拨,弄好了再加,别一上来就这么猛。把你的ifconfig输出和/etc/config/network, /etc/config/firewall贴出来。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/128585

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX