1 Star 0 Fork 0

zhq1/openwrt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
zhq 提交于 2018-06-08 16:27 . Update README
This is the buildsystem for the OpenWrt Linux distribution.
中文:如何编译自己需要的 OpenWrt 固件
编译命令如下:
1. 首先装好 Ubuntu 64bit,推荐 Ubuntu 14 LTS x64 磁盘空间>20G
2. 新建非root用户
adduser username
赋予新用户root权限
adduser username sudo
重启服务器
shutdown -r now
命令行输入 sudo apt-get update ,然后输入
sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev
3. git clone https://github.com/coolsnowwolf/lede 命令下载好源代码,然后 cd lede 进入目录
4. ./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
5. 最后选好你要的路由,输入 make -j1 V=s (-j1 后面是线程数。第一次编译推荐用单线程,国内请尽量全局科学上网)即可开始编译你要的固件了。
Please use "make menuconfig" to choose your preferred
configuration for the toolchain and firmware.
You need to have installed gcc, binutils, bzip2, flex, python, perl, make,
find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers.
Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.
Use "make menuconfig" to configure your image.
Simply running "make" will build your firmware.
It will download all sources, build the cross-compile toolchain,
the kernel and all choosen applications.
To build your own firmware you need to have access to a Linux, BSD or MacOSX system
(case-sensitive filesystem required). Cygwin will not be supported because of
the lack of case sensitiveness in the file system.
Sunshine!
Your OpenWrt Community
http://www.openwrt.org
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/zhq1_admin/openwrt.git
git@gitee.com:zhq1_admin/openwrt.git
zhq1_admin
openwrt
openwrt
master

搜索帮助