forked from coolsnowwolf/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
OpenWrt Stable Version
License
lomiga/openwrt
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Welcome to Lean's git source of OpenWrt and packages 中文:如何编译自己需要的 OpenWrt 固件 注意: 1. 不要用 root 用户 git 和编译!!! 2. 国内用户编译前最好准备好梯子 3. 默认登陆IP 192.168.1.1, 密码 password 编译命令如下: 1. 首先装好 Ubuntu 64bit,推荐 Ubuntu 14 LTS x64 2. 命令行输入 2.1 更新系统 2.1.1 sudo apt-get update 2.1.2 sudo apt-get upgrade 2.2 安装必需包: 2.2.1 Ubuntu x65 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 xmlto qemu-utils upx 2.2.2 Ubuntu x86,则不用lib32gcc1 libc6-dev-i386,既: sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx 2.3 编译amule 需要安装额外的包 sudo apt-get install autoconf automake libtool autopoint 3. 命令下载好源代码 ,然后进入openwrt目录 3.1 git clone https://github.com/coolsnowwolf/openwrt 3.2 cd openwrt 4. ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig 5. 最后选好你要的路由(用空格键选择),Target System 选择平台,Subtarget 选择芯片类型,Target Profile 选择路由器型号,其他选项自定义,保存后输入 make -j1 V=s (-j1 后面是线程数。第一次编译推荐用单线程,国内请尽量全局科学上网)即可开始编译你要的固件了。 6. 第二次编译: 6.1 跳过1和2,第3步改成: cd openwrt git pull 6.2 重复第4/5步 6.3 make -j4 V=s 本套代码保证肯定可以编译成功。里面包括了 R8 所有源代码,包括 IPK 的。 你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作! 特别提示: 1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件,SSL 安全是互联网最后的壁垒。安全干净才是固件应该做到的。 2.如果你自认为 Koolshare 论坛或者其固件的脑残粉,本人不欢迎你使用本源代码。所以如果你是,那么使用过程中遇到任何问题本人概不回应。 3.如有问题需要讨论,欢迎加入 QQ 讨论群:Gargoyle OpenWrt 编译大群 ,号码 610530025 ,加群链接 https://jq.qq.com/?_wv=1027&k=5eA89Wv _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- This is the buildsystem for the OpenWrt Linux distribution. To build your own firmware you need a Linux, BSD or MacOSX system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system. You need gcc, binutils, bzip2, flex, python, perl, make, find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers installed. 1. Run "./scripts/feeds update -a" to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default 2. Run "./scripts/feeds install -a" to install symlinks for all obtained packages into package/feeds/ 3. Run "make menuconfig" to select your preferred configuration for the toolchain, target system & firmware packages. 4. Run "make" to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the Linux kernel & all chosen applications for your target system. Sunshine! Your OpenWrt Community http://www.openwrt.org
About
OpenWrt Stable Version
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C 56.5%
- Makefile 15.5%
- Shell 9.5%
- C++ 6.5%
- Roff 3.2%
- Python 3.1%
- Other 5.7%