使用 Openwrt branch:master 官方源码 Build OpenWRT x86 ,添加第三方插件( passwall , ssr plus )到package,编译固件。(学习用,仅供参考,外行自研—–有bug)
插件包来自网络:(https://github.com/kenzok8/openwrt-packages)和lean源码(https://github.com/coolsnowwolf/lede),编译使用官方源码:(https://github.com/openwrt/openwrt)
package自定义树:
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
| csjtl@ubuntu:~/OpenWRT/openwrt/package/tl8517.com$ tree ├── luci-app-filetransfer ├── luci-app-netdata ├── luci-app-usb-printer ├── openwrt-packages │ ├── gost │ ├── luci-app-advancedsetting │ ├── luci-app-aliddns │ ├── luci-app-clash │ ├── luci-app-eqos │ ├── luci-app-gost │ ├── luci-app-openclash │ ├── luci-app-passwall │ ├── luci-app-smartdns │ ├── luci-app-ssr-plus │ ├── luci-theme-argon-dark-new │ ├── luci-theme-argon_new │ ├── luci-theme-atmaterial │ ├── luci-theme-opentomato │ ├── luci-theme-opentomcat ├── shadowsocksr-libev ├── small │ ├── brook │ ├── chinadns-ng │ ├── dns2socks │ ├── ipt2socks │ ├── kcptun │ ├── pdnsd-alt │ ├── README.md │ ├── simple-obfs │ ├── tcping │ └── v2ray-plugin ├── trojan └── v2ray
|
编译步骤:
1 2 3 4 5 6 7 8 9 10 11 12
| git clone https://github.com/openwrt/openwrt cd openwrt/package git clone https://github.com/kenzok8/openwrt-packages.git git clone https://github.com/kenzok8/small.git
还需要lean源码中的shadowsocksr-libev,Trojan,v2ray包,拷贝到当前目录。
./scripts/feeds update -a && ./scripts/feeds install -a make menuconfig make -j8 download make -j1 V=s
|
.config文件:解压复制到openwrt根目录,使用make menuconfig调整选择。
有部分插件提示uci没有权限,还需要解决。
待更。。。
Openwrt 默认配置编译(密码 语言 IP)
OpenWRT 编译报错