|
发表于 2023-1-4 15:03:20
|
显示全部楼层
在/OK3568-linux-source/buildroot/output/OK3568 目录下 make menuconfig进行配置的话,在编译时需要./build buildroot 然后输入n
make: Leaving directory '/home/forlinx/work/OK3568-linux-source/buildroot'
1089c1089
< BR2_PACKAGE_LZ4=y
---
> # BR2_PACKAGE_LZ4 is not set
2981,2984c2981
< BR2_PACKAGE_OPENVPN=y
< BR2_PACKAGE_OPENVPN_LZ4=y
< BR2_PACKAGE_OPENVPN_LZO=y
< # BR2_PACKAGE_OPENVPN_SMALL is not set
---
> # BR2_PACKAGE_OPENVPN is not set
3047c3044
< BR2_PACKAGE_TUNCTL=y
---
> # BR2_PACKAGE_TUNCTL is not set
Found old config, override it? (y/n):n
2023-01-03T22:53:46 >>> lz4 v1.7.5 Building
2023-01-03T22:53:51 >>> lz4 v1.7.5 Installing to staging directory
2023-01-03T22:53:51 >>> lz4 v1.7.5 Fixing libtool files
2023-01-03T22:53:51 >>> lz4 v1.7.5 Installing to target
2023-01-03T22:53:51 >>> openvpn 2.4.4 Downloading
然后tun的话,既需要应用程序,也需要使内核支持。
在源码/kernel/arch/arm64/configs/OK3568-C-linux_defconfig中添加CONFIG_TUN=y再进行编译
或者在kernel内make menuconfig进行配置,但是需要由于每次编译都会使用OK3568-C-linux_defconfig覆盖.config,需要在源码/build.sh中去掉这个make 在532行左右 有一个make ARCH=$RK_ARCH $RK_KERNEL_DEFCONFIG.... 这一行需要注释掉。 |
|