注意:编译环境如果在gfw内必须编译机全局翻墙

七七用的是网件的r7000路由器,那就以bcm53xx为例,openwrt版本为18.16.04,其它路由器请自行查看处理器架构下载相应的openwrt sdk

bcm53xx用的处理器是armv7-a的架构,市面上很多高端路由器都用的此架构,原则上只要是对应openwrt版本的armv7a架构的处理器都是能运行此编译出来的ipk安装包的,附armv7常见路由器列表

品牌型号版本CPU
AsusRT-N18UA1Broadcom BCM47081A0
AsusRT-AC56UBroadcom BCM4708A0
AsusRT-AC68UBroadcom BCM4708A0
AsusRT-AC87UBroadcom BCM4709A0
BuffaloWZR-600DHP2Broadcom BCM47081
BuffaloWZR-1750DHP(D)Broadcom BCM4708A0
BuffaloWXR-1900DHPBroadcom BCM4709A0
BuffaloWZR-900DHPBroadcom BCM47081A0
D-LinkDIR-885LA1Broadcom BCM4709C0
LinksysEA62001.0Broadcom BCM47081
LinksysEA6300v1Broadcom BCM4708A0
LinksysEA64001.0Broadcom BCM4708A0
LinksysEA6500v2Broadcom BCM4708A0
LinksysEA6700Broadcom BCM4708A0
LinksysEA9500v1Broadcom BCM4709C0
MerakiMR32Broadcom BCM53016A1
NetgearR6250Broadcom BCM4708A0
NetgearR6300v2Broadcom BCM4708A0
NetgearR7000Broadcom BCM4709A0
NetgearR7900Broadcom BCM4709A0
NetgearR8000Broadcom BCM4709A0
PHICOMMK3A1Broadcom BCM4709C0
TendaAC9Broadcom BCM47189
TP-LinkArcher C5 AC1200v2Broadcom BCM47081
TP-LinkArcher C8v1.0Broadcom BCM4708
TP-LinkArcher C9v1Broadcom BCM4709

首先下载sdk:

wget https://downloads.openwrt.org/releases/18.06.4/targets/bcm53xx/generic/openwrt-sdk-18.06.4-bcm53xx_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz

解压下载的sdk,然后cd到解压的sdk目录中,先运行以下代码更新和安装feed包:

./scripts/feeds update -a
./scripts/feeds install -a

复制lean源码中的package目录中lean文件夹到当前sdk目录中的package目录下

cp ../lede/package/lean/ package/ -R

运行”make menuconfig” 选中luCI–>Applictions–>luci-app-ssr-plus

ssrplus依赖于luci中的一些工具,所以要先编译luci-base组件,不编译此组件直接编译ssrplus会出现类似”bash: po2lmo: command not found“的错误提示

make package/feeds/luci/luci-base/compile V=99

编译ssrplus:

make package/lean/luci-app-ssr-plus/compile V=99

喝杯咖啡去吧,等会编译完bin目录下就会有相应编译完的ipk包了,拖到路由器去安装吧,享受不受限制的网络吧。

01-21 22:12