对于以前IPQ系列想要使用OpenWrt系统只能放弃部分NSS功能,亦或者使用相对老旧的内核,在开源社区的努力下完善了这部分的支持。其中本仓库中融合了JiaY-shi和qosmio两位大佬NSS支持的代码实现了这一功能,以及使用了ImmortalWrt的LuCI和Packages作为插件的支持,在此感谢大佬们的付出!
Target | NSS Matrix |
2.4G WiFi NSS Offload |
5G WiFi NSS Offload |
---|---|---|---|
IPQ807X | ✅ | ✅ | ✅ |
IPQ60XX | ✅ | ✅ | ✅ |
IPQ50XX | ❌ | ❌ | ❌ |
功能 | IPQ807x | IPQ60xx | 功能 | IPQ807x | IPQ60xx |
---|---|---|---|---|---|
TUNIPIP6 | ✅ | ✅ | RMNET | 🟨1 | ⛔2 |
PPPOE | ✅ | ✅ | MIRROR | ✅ | ✅ |
L2TPV2 | ✅ | ✅ | WIFI (AP/STA) | ✅ | ✅ |
BRIDGE | ✅ | ✅ | WIFI (WDS) | 🟨1 | 🟨1 |
VLAN | ✅ | ✅ | WIFI (MESH) | 🟨1 | 🟨1 |
MAP_T | ✅ | ✅ | WIFI (AP VLAN) | ||
TUN6RD | ✅ | ✅ | IPSEC | ❌3 | ❌3 |
GRE | ✅ | ✅ | PVXLAN | ❌3 | ❌3 |
PPTP | ✅ | ✅ | CLMAP | ❌3 | ❌3 |
IGS | ✅ | ✅ | TLS | ❌3 | ❌3 |
VXLAN | ✅ | ✅ | CAPWAP | ❌3 | ❌3 |
MATCH | ✅ | ✅ | DTLS | ❌3 | ❌3 |
1 🟨 需要NSS固件11.4版本(CONFIG_NSS_FIRMWARE_VERSION_11_4=y)
2 ⛔ 在该平台上不可用
3 ❌ 在NSS固件(11.4–12.5)版本中不可用
4
- 不要用
root
用户进行编译⚠ - 国内用户编译前最好准备好梯子
- 至少需要4GB内存和25GB可用磁盘空间
- 默认登陆IP 192.168.1.1 密码 none
-
首先装好 Linux 系统,推荐使用Ubuntu 22.04 LTS 或 Debian 11
-
安装编译依赖
sudo apt update -y sudo apt full-upgrade -y sudo apt install -y ack antlr3 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 libfuse-dev libssl-dev libtool lrzsz \ genisoimage msmtp nano ninja-build p7zip p7zip-full patch pkgconf python3 python3-pip libpython3-dev qemu-utils \ rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
-
下载源代码,更新 feeds 并选择配置
git clone --depth 1 --single-branch https://github.com/LiBwrt-op/openwrt-6.x.git libwrt cd libwrt ./scripts/feeds update -a && ./scripts/feeds install -a make menuconfig
-
下载 dl 库,编译固件 (-j 后面是线程数,为便于排除错误推荐用单线程)
make download -j$(nproc) make -j1 V=s
-
二次编译:
cd libwrt git fetch && git reset --hard origin/k6.12-nss ./scripts/feeds update -a && ./scripts/feeds install -a make defconfig make -j$(nproc) V=s
-
如果需要重新配置:
rm -rf .config make menuconfig make -j$(nproc) V=s
-
编译完成后输出路径:bin/targets