编译 lean openwrt 步骤记录

准备编译环境:

sudo apt-get update
sudo apt-get -y 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 libelf-dev autoconf automake libtool autopoint device-tree-compiler

Fork 源码,然后克隆:

cd ~
git clone https://github.com/eallion/lede.git

克隆 Aliddns :

如果是用阿里云解析的话,比 luci-app-ddns 好用太多。

cd ~/lede/package/lean
git clone https://github.com/chenhw2/luci-app-aliddns.git
pushd package/feeds/luci-app-aliddns/tools/po2lmo
make && sudo make install
popd
  • 建议用 git subtree 添加 Aliddns:

git subtree add --prefix=package/lean/luci-app-aliddns https://github.com/chenhw2/luci-app-aliddns.git master

克隆 Serverchan 微信推送:

cd ~/lede/package/lean
git clone https://github.com/tty228/luci-app-serverchan.git
  • 建议用 git subtree 添加 Serverchan:

下载 Openclash:

克隆 Shadowsocks-libev

Lean Openwrt 不建议用这个

克隆 v2ray-plugin

Lean Openwrt 不建议用这个

克隆 SmartDNS

Lean Openwrt 不建议用这个

Feeds :

配置选项:

LuCI - Collections :

  • luci-ssl-openssl

LuCI - Applications :

  • luci-app-accesscontrol

  • luci-app-aliddns

  • luci-app-aria2

  • luci-app-arpbind

  • luci-app-autoreboot

  • luci-app-ddns

  • luci-app-filetransfer

  • luci-app-firewall

  • luci-app-flowoffload

  • luci-app-hd-idle

  • luci-app-minidlna

  • luci-app-nlbwmon

  • luci-app-p910nd

  • luci-app-ramfree

  • luci-app-samba

  • luci-app-serverchan

  • luci-app-shadowsocks-libev

  • luci-app-smartdns

  • luci-app-sqm

  • luci-app-ssr-plus

  • luci-app-ttyd

  • luci-app-uhttpd

  • luci-app-upnp

  • luci-app-usb-printer

  • luci-app-verysync

  • luci-app-vlmcsd

  • luci-app-vsftpd

  • luci-app-wol

  • luci-app-xlnetacc

Network - Download Manager :

  • ariang

Network - File Transfer :

  • aria2

  • curl

  • vsftpd-alt

  • wget

Network - IP Addresses and Names

  • ddns-scripts

  • ddns-scripts_aliyun

  • drill

Network - Web Servers/Proxies :

  • pdnsd-alt

  • shadowsocks-client

  • shadowsocks-libev-config

  • shadowsocks-libev-ss-local

  • shadowsocks-libev-ss-redir

  • shadowsocks-libev-ss-rules

  • shadowsocks-libev-ss-erver

  • shadowsocks-libev-ss-tunnel

Network :

  • acme

  • acme-dnsapi

  • shadowsocks-libev

  • trojan

  • v2ray-plugin

  • 去掉 wpad

Extra packages :

  • ipv6helper

预下载:

开始编译:

如果是真机编译环境,-j 后面的参数可以设为实际CPU核心数的2倍。虚拟机还是老老实实用 -j1 。

摘取新源码:

编译新固件:

其他 make 参数:

L大的项目地址:

coolsnowwolf/lede

添加一些其他的APP:

shadowsocks/openwrt-shadowsocks

honwen/openwrt-v2ray-plugin

honwen/luci-app-aliddns

pymumu/luci-app-smartdns

tty228/luci-app-serverchan

最后更新于

这有帮助吗?