找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 15062|回复: 16

7231-4P 上 OpenWrt

[复制链接]
发表于 2007-11-21 13:44 | 显示全部楼层 |阅读模式
好像大家还是在用 DD-Wrt 啥的. 俺在这儿介绍一下用 OpenWrt 的经验吧.

俺在买 7231-4P 前已经有三套 OpenWrt 无线设备, 分布在相距300公里的两个城市(缪办法,谋生不易啊). WL-500G + WL-HDD 为主服务集群,提供一堆邪恶的服务(昨天俺贴了 ps),WRT54G远程 vtund 到主服务集群,这样在两个城市实现了一个 virtual**. 因为 WRT54G 没有 USB (俺电路很弱,不会动手焊),远程 shfs 也不稳,所以 WRT54G 没提供啥服务。

7231-4P 俺是寄予厚望啊. 前两天给搞死后,在客服的帮助下又刷回了 DD-WRT mini 。现在看来 DD-WRT 也是有特点的,UI 漂亮,WPA, WDS 支持比较好。曾经 lsmod 比了一下,发现 DD-WRT 用的 wl (2.4.35, 700多k)比 OpenWRT 的(White Russian 2.4.30, 400 多 k; Kamikaze,2.4.35, 600多 k),后来发现是有好处的。可是对于在把路由器当服务器的情况下,DD-WRT 就差远了,ipkg 依赖 OpenWRT White Russian, 而且支持不好;kernel 新,但有的 kmod 不兼容,如 NFS ;init 也不太好,没怎么用 rc.d ,我自己做的 USB/IDE rootfs 很难搞上去。所以仗着 64MB 号称刷不死,我昨天回去又刷了 OpenWRT White Russian 和 Kamikaze 两个版本上去。

White Russian 刷得很顺,上去没搞两下发现有问题,WPA 不行(WEP正常)。nvrame 正确,nas 进程开了,参数正确,可 iwconfig 还是 Encryption keyff 。比较了几台机器的 nvram ,没发现啥问题,于是怀疑是 wl module 版本或 nas 版本不行。可网上也没处下独立的 wl module 和 nas。于是心一横刷 Kamikaze (其他三台都是跑 White Russian)。可是试了好几次都没抓到 192.168.2.1 ,干脆直接从 White Russian Web 刷 firmware,运气很好,Kamikaze 跑起来了。虽然 kernel 是新的,可 WPA 还是不行。于是想再刷 DD-WRT 再比较一下。可是 Kamikaze 没有 Web Update (其实是根本没 Web),试了十来遍也没抓到 192.168.2.1 ,今天回去继续抓。

最坏的打算就是自己给 White Russian 重新 build kernel , 那个,会相当痛苦。
我的恩山、我的无线 The best wifi forum is right here.
发表于 2007-11-21 13:52 | 显示全部楼层
编译内核对于我这样的Gentoo用户来说是一件很惬意的事情
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-11-21 14:11 | 显示全部楼层
x86 kernel build 当年也是天天搞, 我还有个编译机群呢, 完整 build 不用 cache 也就6分钟. 那可是4年前, 一堆 C 1.6G搞出来的

给 WRT build 又要 configure 半天, 完了还不能直接 boot, 要 build firmware image , 搞不好 kmod ipkg 还不兼容,这还不烦啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-11-21 14:11 | 显示全部楼层
sorry, 上面的应该是编译集群
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-11-21 15:36 | 显示全部楼层
再汇报一下

刷了 DD-WRT std, 有几个小发现:

* 加电时 RESET 按 5 秒就好,我昨天抓不到 192.168.2.1 是因为按得太久了,半分钟,人太老实啊
* DD-WRT 的没有用 wifi daemon, 而是用了 wland

准备把 DD-WRT 的东西抓到 openwrt 下试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-11-21 15:41 | 显示全部楼层
nas 和 wland 都不能用, Segmentation fault

只有 wl 这一条指望了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-11-21 16:19 | 显示全部楼层
wl 也 load 不了,只好拿 7231-4p 当有线服务器用了

root@OpenWrt:~# insmod wl.o
Using wl.o
insmod: unresolved symbol sb_gpiotimerval
insmod: unresolved symbol sb_war16165
insmod: unresolved symbol sb_clkctl_clk
insmod: unresolved symbol osl_delay
insmod: unresolved symbol sb_deviceremoved
insmod: unresolved symbol sb_war32414_forceHT
insmod: unresolved symbol sb_clkctl_init
insmod: unresolved symbol sb_btcgpiowar
insmod: unresolved symbol sb_gpioled
insmod: unresolved symbol sb_clkctl_xtal
insmod: unresolved symbol sb_clkctl_fast_pwrup_delay
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-11-22 09:15 | 显示全部楼层
你刷的是什么版本的KAMIKAZE,2.6内核是不支持WIFI的,2.4内核的修改/etc/config/wireless文件后支持WIFI。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-11-22 09:22 | 显示全部楼层
2.4 的, wifi 支持的挺好啊,也没改 /etc/config/wireless , 就是 WPA 不行
楼上的能试一下 WPA 通报下结果吗?
我无奈之下刷回 White Russian 了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-11-22 14:00 | 显示全部楼层
WPA好像有点麻烦,要装个软件包,麻烦。
4) "option type broadcom": If you get an error about 'broadcom unsupported', make sure you have the wlc and kmod-brcm-wl packages installed. You will probably also need nas for WPA.

5) hostapd: For WPA you may need hostapd. The kamikaze 7.07 does not include hostapd and must be installed to support WPA (at least when using madwifi).
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-11-22 16:42 | 显示全部楼层
nas 我是装了的, 没看见那个 error , wl 肯定是有的 wlc 没注意
hostapd 的确是没留意, white russian 是没这东西的

过几天有空再试试 kamikaze 吧,不过今天查了一下几个 svn ,发现 dd-wrt 用的 makefile 是有点不一样, 怀疑 openwrt build kernel 时省了几个 option
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-11-23 00:03 | 显示全部楼层
稀里糊涂的升了下级,居然就好了,wds 也一起用起来了,我甚至怀疑我前两天就全做错了

简单的说是这样的,先装 x-wrt, 然后 ipkg upgrade,装 nas,wl
就这样

所以,俺的第4台 OpenWrt 也融入 WPA 网络啦
周末拿回去就要迁移 service 了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-11-23 10:10 | 显示全部楼层
对了,X-WRT有KAMIKAZE的WEBIF,我装了还不错。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-11-23 21:32 | 显示全部楼层
分布在相距300公里的两个城市(缪办法,谋生不易啊)

想问一下楼主是怎样实现的?帖一下硬件配置啊,大哥
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-1-30 22:46 | 显示全部楼层
楼主,你的7231-4p刷的是什么版本的openwrt?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 09:58

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表