Skip to content
forked from Boos4721/openwrt

Base on lede, merge with openwrt. btw, dont fork it, pls gib meme star.

License

Notifications You must be signed in to change notification settings

kiddin9/openwrt

This branch is 6 commits ahead of, 213 commits behind Boos4721/openwrt:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

185cb90 · May 30, 2022
Oct 19, 2021
Jun 17, 2021
May 28, 2022
May 30, 2022
May 30, 2022
May 26, 2022
May 30, 2022
May 26, 2022
May 27, 2022
Sep 11, 2017
Nov 20, 2021
Jun 14, 2021
Jun 14, 2021
Nov 2, 2021
Jan 19, 2022
Mar 17, 2022
May 1, 2022
Jan 28, 2022

Repository files navigation

如何编译自己需要的 OpenWrt 固件

注意:

  1. 不要root 用户进行编译!!! 非必要 请输入 export FORCE_UNSAFE_CONFIGURE=1&& exportFORCE=1
  2. 国内用户编译前最好准备好梯子
  3. 默认登陆IP 10.10.10.1 密码 boos

编译命令如下:

  1. 若你是 Ubuntu 20.04 LTS x64

    命令行输入 sudo apt-get update ,然后输入

    sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 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 libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync
    

    若你是 Ubuntu 21.10 LTS x64

    命令行输入 sudo apt-get update ,然后输入

    sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync
    
  2. 使用 git clone https://github.com/Boos4721/openwrt 命令下载好源代码,然后 cd openwrt 进入目录

  3. ./scripts/feeds update -a
    ./scripts/feeds install -a -f
    make menuconfig
  4. make -j8 download V=s 下载dl库(国内请尽量全局科学上网)

  5. 输入 make -j1 V=s (-j1 后面是线程数。第一次编译推荐用单线程)即可开始编译你要的固件了。

本套代码保证肯定可以编译成功。里面包括了 R22 所有源代码,包括 IPK 的。

你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作!

如果你使用WSL或WSL2进行编译:

由于wsl的PATH路径中包含带有空格的Windows路径,有可能会导致编译失败,请在将make -j1 V=s或make -j$(($(nproc) + 1)) V=s改为

首次编译:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make -j1 V=s 

二次编译:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make -j$(($(nproc) + 1)) V=s

About

Base on lede, merge with openwrt. btw, dont fork it, pls gib meme star.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.7%
  • Makefile 3.7%
  • Shell 1.4%
  • Roff 0.8%
  • Perl 0.5%
  • Assembly 0.3%
  • Other 0.6%