momo zone

调核人的blog

open-wrt,dd-wrt ,opt-ware,x-wrt 晕了

开源固件可真多, open-wrt,dd-wrt ,opt-ware,x-wrt   ,这些不仅可以用于路由器,只要是CPU对上号的都可以用。本来就用了DD-wrt 然后加了usb (后悔没改8MBflash 和加64MB内存), 就要上脱机BT,本以为dd-wrt自带的程序包够用了,没想到完全是一堆残废,然后又去ipkg update 然后出错,重新mkfs,reboot 可以了,折腾了半天ipkg库建立好了,但装软件包仍然不行,说依赖找不到,但文件却都copy 过去了,当然这样想卸载是用ipkg卸不掉了。 继续折腾,经历了XXX not found , segment fault 等一系列问题之后我终于意识到了dd-wrt 上安装的ipkg 包属于openwrt ,但同样也是垃圾,因为:
 
1. dd-wrt 除/jffs ,/mmc 之外的目录不可写,而openwrt 基本就是和debian一样要访问各个目录,所以杯具了。
2. openwrt 用的uClibc 和 ddwrt 自带的不兼容,如果用export 指定/opt/lib ,/opt/usr/lib 那么ls 等常用命令就杯具了。
 
x-wrt 和open-wrt 因为都要刷机所以不打算折腾。 难道ddwrt 除了web访问的特性其他都杯具了吗?
 
继续google 了一下,发现了oleg-for-mss-base (挂在google上的项目地址 http://code.google.com/p/oleg-for-mss-base/ ,官方FAQhttp://www.nslu2-linux.org/wiki/FAQ/Optware-uClibcBuild ),
看介绍说这个就是基于uClibc 编译的一个根目录系统 。 而参照google的结果来看,这个根目录克服了openwrt 在ddwrt  上出现的问题,而且还支持其他固件平台:
 
At present the following target firmwares are supported:
oleg –
http://wl500g.dyndns.org
ddwrt – http://www.dd-wrt.com and dd-wrt wiki on Optware
OpenWrt whiterussian –
http://www.openwrt.org/ using ddwrt package feed
Xwrt –
http://xwrt.berlios.de/xwrt.asp using ddwrt package feed
Asus WL-700gE custom firmware using oleg package feed -PDF install guide
 
更重要的是它有以下特性:
 
The main feature of this packages is that it installs all required files under /opt with 1000+ ported applications. With buildroot toolchain and patched uClibc search paths feed also added system library indenpendence. This means that packages now depends on /opt/lib/uClibc.so and dynamic loader also in /opt/lib with separate /opt/etc/ld-opt.so.conf for custom .so cache.
 
不用翻译了,一看就明白了, 泪流满面啊。
 
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: