openwrt / openwrt
OpenWrt / OpenWrt
OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. OpenWrt 项目是一个面向嵌入式设备的 Linux 操作系统。OpenWrt 不会试图创建一个单一的、静态的固件,而是提供了一个带有软件包管理功能且完全可写的文件系统。这使你摆脱了厂商提供的应用程序选择和配置的限制,并允许你通过使用软件包来定制设备,以适应任何应用场景。
For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned. Sunshine! 对于开发者而言,OpenWrt 是一个构建应用程序的框架,无需围绕它构建完整的固件;对于用户而言,这意味着能够进行完全的定制,以从未设想过的方式使用设备。阳光明媚!
Download Built firmware images are available for many architectures and come with a package selection to be used as WiFi home router. To quickly find a factory image usable to migrate from a vendor stock firmware to OpenWrt, try the Firmware Selector. 下载 针对多种架构的预构建固件镜像均已提供,并附带了可作为 WiFi 家用路由器使用的软件包选择。若要快速找到可用于从厂商原厂固件迁移到 OpenWrt 的出厂镜像,请尝试使用“固件选择器”(Firmware Selector)。
OpenWrt Firmware Selector If your device is supported, please follow the Info link to see install instructions or consult the support resources listed below. An advanced user may require additional or specific package. (Toolchain, SDK, …) For everything else than simple firmware download, try the wiki download page: OpenWrt Wiki Download OpenWrt 固件选择器 如果你的设备受支持,请点击“信息”(Info)链接查看安装说明,或查阅下方列出的支持资源。高级用户可能需要额外或特定的软件包(如工具链、SDK 等)。对于除简单固件下载之外的所有需求,请尝试访问 Wiki 下载页面:OpenWrt Wiki 下载。
Development To build your own firmware you need a GNU/Linux, BSD or macOS system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system. 开发 要构建你自己的固件,你需要一个 GNU/Linux、BSD 或 macOS 系统(要求文件系统区分大小写)。由于缺乏区分大小写的文件系统,Cygwin 不受支持。
Requirements You need the following tools to compile OpenWrt, the package names vary between distributions. A complete list with distribution specific packages is found in the Build System Setup documentation. binutils, bzip2, diff, find, flex, gawk, gcc-6+, getopt, grep, install, libc-dev, libz-dev, make4.1+, perl, python3.7+, rsync, subversion, unzip, which 要求 你需要以下工具来编译 OpenWrt,软件包名称因发行版而异。包含各发行版特定软件包的完整列表可在“构建系统设置”(Build System Setup)文档中找到。 binutils, bzip2, diff, find, flex, gawk, gcc-6+, getopt, grep, install, libc-dev, libz-dev, make4.1+, perl, python3.7+, rsync, subversion, unzip, which
Quickstart
Run ./scripts/feeds update -a to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default
Run ./scripts/feeds install -a to install symlinks for all obtained packages into package/feeds/
Run make menuconfig to select your preferred configuration for the toolchain, target system & firmware packages.
Run make to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.
快速入门
运行 ./scripts/feeds update -a 以获取 feeds.conf / feeds.conf.default 中定义的所有最新软件包定义。
运行 ./scripts/feeds install -a 为所有获取的软件包安装符号链接到 package/feeds/ 目录。
运行 make menuconfig 为工具链、目标系统和固件包选择你偏好的配置。
运行 make 来构建你的固件。这将下载所有源代码,构建交叉编译工具链,然后为你的目标系统交叉编译 GNU/Linux 内核及所有选定的应用程序。
Related Repositories The main repository uses multiple sub-repositories to manage packages of different categories. All packages are installed via the OpenWrt package manager called opkg. If you’re looking to develop the web interface or port packages to OpenWrt, please find the fitting repository below. 相关仓库 主仓库使用多个子仓库来管理不同类别的软件包。所有软件包均通过名为 opkg 的 OpenWrt 软件包管理器进行安装。如果你希望开发 Web 界面或将软件包移植到 OpenWrt,请在下方找到合适的仓库。
- LuCI Web Interface: Modern and modular interface to control the device via a web browser.
- OpenWrt Packages: Community repository of ported packages.
- OpenWrt Routing: Packages specifically focused on (mesh) routing.
- OpenWrt Video: Packages specifically focused on display servers and clients (Xorg and Wayland).
- LuCI Web 界面:用于通过 Web 浏览器控制设备的现代化模块化界面。
- OpenWrt 软件包:社区移植软件包仓库。
- OpenWrt 路由:专门针对(网状)路由的软件包。
- OpenWrt 视频:专门针对显示服务器和客户端(Xorg 和 Wayland)的软件包。
Support Information For a list of supported devices see the OpenWrt Hardware Database Documentation: Quick Start Guide, User Guide, Developer Documentation, Technical Reference 支持信息 有关受支持设备的列表,请参阅 OpenWrt 硬件数据库。 文档:快速入门指南、用户指南、开发者文档、技术参考。
Support Community Forum: For usage, projects, discussions and hardware advise. Support Chat: Channel #openwrt on oftc.net. 支持 社区论坛:用于使用、项目、讨论和硬件建议。 支持聊天:oftc.net 上的 #openwrt 频道。
Developer Community Bug Reports: Report bugs in OpenWrt Dev Mailing List: Send patches Dev Chat: Channel #openwrt-devel on oftc.net. 开发者社区 错误报告:报告 OpenWrt 中的 Bug。 开发邮件列表:发送补丁。 开发聊天:oftc.net 上的 #openwrt-devel 频道。
License OpenWrt is licensed under GPL-2.0 许可证 OpenWrt 基于 GPL-2.0 协议授权。