安装 OpenWrt 前的常见问题解答
硬件
该购买何种路由器?
- Please see the buyerguide for features you could be looking for.
- Please decide yourself which ones are important to you.
- Then ask in the OpenWrt Forum (or anywhere else) for personal recommendations.
OpenWrt 可运行于哪些设备?
查阅 current TableOfHardware 此支持设备列表页。
软件
初学者该如何着手?
参 beginner's guide页。
怎样才能获得 OpenWrt 的镜像?
What is the difference between the different image formats?
- a factory image is one built for the bootloader flasher or stock software flasher
- a sysupgrade image (previously named trx image) is designed to be flashed from within openwrt itself
The two have the same content, but a factory image would have extra header information or whatever the platform needs. Generally speaking, the factory image is to be used with the OEM GUI or OEM flashing utilities to convert the device to OpenWrt. After that, use the sysupgrade images.
- a uImage is a tagged linux image expected by the u-boot loader
- a tftp image is XXX
- a vmlinux.bin image is XXX
- a vmlinux.elf “image” is XXX
我该选择哪个版本的 OpenWrt?
如何刷 OpenWrt?
写闪存芯片上到底需要耗时多久?
Flash devices can be written to, at minimum, anywhere between 100,000 and 1,000,000 times (according to the manufacturers). Keep in mind we have a normal distribution and also, that Flash never ever just stops working, but merely distinct blocks do. I.e. you won't be able to write to them any longer, but you should be able to still read them.
如何编译 OpenWrt
Start here → toolchain
如何将 OpenWrt 所有的 packages 均编译进去?
CONFIG_ALL=y + make V=99 IGNORE_ERRORS=m
其他问题
为什么一切都是模块化的?
我不喜欢命令行界面(CLI)
网上到处都是这样的说法,称OpenWrt只能通过命令行操作。这是谎言。事实上,针对OpenWrt有3个(three)WebUI可用:LuCI, X-Wrt和Gargoyle
尽管实际上没有必要害怕 CLI。
另外,请注意,OpenWrt也支持X Window System!
`brcm-2.4` 和 `brcm47xx` 之间的区别
- `brcm-2.4`: 修改过的 Linux 内核版本 2.4,使用专有驱动 `wl`(或 `wl-mimo`),网络接入认证器 `nas`,控制实用程序 `wlc` - `brcm47xx`: 原生的 Linux 内核版本 2.6/3,反向工程的开源驱动 `b43`,WPA 路由器配置文件(hostapd + wpa_supplicant),标准 Linux 实用程序(`iw`,`iwconfig`等)
据报道,关于哪个无线驱动更适合稳定性与性能仍存在争议。`brcm-2.4` 在最新的 OpenWrt 稳定版本中仍然可用,但自 Rxxxxx 版本起已被弃置于 trunk 中。
如何启用 athdebug 和调试 madwifi
在 package/madwifi/Makefile
:
ifdef CONFIG_MADWIFI_DEBUG MADWIFI_APPLETS += athdebug 80211debug endif
因此,首先启用 “Advanced configuration options (for developers)” 项,然后浏览到 kmod-madwifi 子菜单并勾选 “Enable compilation of debugging features” 或在 .config 中手动添加/替换 “CONFIG_DEVEL=y” 加上 “CONFIG_MADWIFI_DEBUG=y”