BlueXIII's Blog

热爱技术,持续学习

0%

OpenWRT编译

参考文档

教程

LEDE源码

openwrt.cc项目

过程

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## 安装依赖
sudo apt update -y
sudo apt full-upgrade -y
sudo apt install -y ack antlr3 aria2 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pip libpython3-dev qemu-utils \
rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev

# 下载源代码
git clone https://github.com/coolsnowwolf/lede
cd lede

# 缝合其他插件
vi feeds.conf.default
src-git kenzo https://github.com/kenzok8/openwrt-packages
src-git small https://github.com/kenzok8/small

# 配置
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig

# 下载并编译
make download -j8 && make V=s -j1

# 二次编译
cd lede
git pull
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make download -j8
make V=s -j$(nproc)

# 重新配置
rm -rf ./tmp && rm -rf .config
make menuconfig
make V=s -j$(nproc)

常用包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
passwall ** 
全能推送
OpenClash
动态DNS luci-app-ddns
迅雷快鸟 luci-app-xlnetacc
Frpc luci-app-frpc
Frps luci-app-frps
Docker luci-app-dockerman
OpenVPN服务器 luci-app-openvpn-server
静态路由
IP/MAC绑定
Turbo ACC网络加速 luci-app-turboacc
宽带监控
UPnp
ip限速 luci-app-eqos
Qos流量控制 luci-app-sqm
磁盘管理 luci-app-diskman
USB打印机 luci-app-usb-printer
网页命令行 luci-app-ttyd
KMS服务器 luci-app-vlmcsd
流量监控 luci-app-wrtbwmon
释放内存 luci-app-ramfree
负载均衡 luci-app-mwan3
多播 luci-app-syncdial
wireguard luci-app-wireguard
网络唤醒 luci-app-wolplus

## 虚拟机
qemu-ga
open-vm-tools

# 其它
luci-app-ddns
luci-app-xlnetacc
luci-app-frpc
luci-app-frps
luci-app-dockerman **
luci-app-openvpn-server
luci-app-turboacc
luci-app-eqos
luci-app-sqm
luci-app-diskman
luci-app-usb-printer
luci-app-ttyd
luci-app-vlmcsd
luci-app-wrtbwmon
luci-app-ramfree
luci-app-mwan3
luci-app-syncdial
luci-app-wireguard
luci-app-wolplus
qemu-ga
open-vm-tools