Coder Social home page Coder Social logo

zhangzheming1996 / lede Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renfei/lede

0.0 0.0 0.0 267.87 MB

RenFei's OpenWrt source - x86_64 编译版本

License: Other

Shell 1.45% C++ 0.07% Python 0.08% Perl 0.53% C 92.22% Lua 0.12% Assembly 0.29% Awk 0.01% Makefile 3.79% HTML 0.18% CMake 0.01% Yacc 0.02% Lex 0.01% M4 0.21% Roff 1.02%

lede's Introduction

RenFei 的 OpenWRT 仓库

上游仓库来自Lean的LEDE:https://github.com/coolsnowwolf/lede

我的仓库会不定期同步Lean的LEDE仓库代码,并进行编译。

仓库地址

发布与下载

编译信息

这个仓库是为了我记录每次编译的版本,同时将我编译的固件也分享出来,以下是我编译时选择的内容。

目标平台

Generic x86/64

主分区大小设置为 512MB,所以你需要大于 512MB 的盘。

  • ext4
  • squashfs
  • GRUB EFI images
  • VMware Image

编译选项

除了默认选择的,我还选择以下内容,支持 IPv6、dnsmasq、ESXi Tool。

  • dnsmasq-full
  • ipv6helper
  • open-vm-tools

插件安装

除了默认选择的插件,我还选择了以下插件编译进固件中:

  • advanced-reboot
  • airplay2
  • frpc
  • frps
  • jd-dailybonus
  • openvpn
  • openvpn-server
  • qos
  • shadowsocks-libev
  • shairplay

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

注意:

  1. 要用 root 用户进行编译!!!
  2. 国内用户编译前最好准备好梯子
  3. 默认登陆IP 192.168.1.1 密码 password

编译命令如下:

  1. 首先装好 Ubuntu 64bit,推荐 Ubuntu 20.04 LTS x64

  2. 命令行输入 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

  3. 使用 git clone https://github.com/renfei/lede 命令下载好源代码,然后 cd lede 进入目录

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

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

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

二次编译

二次编译:

cd lede
git pull
./scripts/feeds update -a && ./scripts/feeds install -a
make defconfig
make -j8 download
make -j$(($(nproc) + 1)) V=s

如果需要重新配置:

rm -rf ./tmp && rm -rf .config
make menuconfig
make -j$(($(nproc) + 1)) V=s

编译完成后输出路径:bin/targets

如果你使用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

lede's People

Contributors

1715173329 avatar aakkll avatar aiamadeus avatar aooom avatar asushugo avatar beginner-go avatar bobppy avatar boos4721 avatar coolsnowwolf avatar dpy013 avatar elonh avatar ennawyang avatar fanck0605 avatar imbrolla avatar kfermercer avatar lga1150 avatar libc0607 avatar lpddr6-10000mhz avatar luckyyyyy avatar luxiaok avatar manyeechen avatar mattraks avatar nbd168 avatar ntlf9t avatar r3pl4c3r avatar renfei avatar ricksuzade-maker avatar saxon-sun avatar sharermax avatar tossp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.