Hi,
I recently acquired a BPI-R4 and encountered some issues while trying to use it properly. First, I downloaded the Debian 11 image with Linux version 6.1, as found in the wiki: Banana Pi BPI-R4 - Banana Pi Wiki I then transferred it onto an SD card and inserted the SD card into the BananaPi-R4. In this case, it seems that I cannot use the SFP ports eth2 and eth1.
Secondly, I made an other test. I downloaded the Debian 11 image with Linux version 5.4, as found in the wiki: Banana Pi BPI-R4 - Banana Pi Wiki I succed in using SFP ports but there is no module installed allowing me to use openvpn or wireguard.
When I try to start openvpn, I get those logs :
Apr 3 14:33:35 LB-BURST ovpn-LB_BURST[54921]: ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Apr 3 14:33:35 LB-BURST ovpn-LB_BURST[54921]: Exiting due to fatal error
Apr 3 14:33:35 LB-BURST systemd[1]: openvpn@LB_BURST.service: Main process exited, code=exited, status=1/FAILURE
Apr 3 14:33:35 LB-BURST systemd[1]: openvpn@LB_BURST.service: Failed with result 'exit-code'.
So Finally, I’m trying to find a way to add the modules :
CONFIG_TUN=m
CONFIG_WIREGUARD=m
I have copied the BPI-R4-bsp-5.4-main.zip file to the BPI-R4 as found in the wiki : Banana Pi BPI-R4 - Banana Pi Wiki
unzip BPI-R4-bsp-5.4-main.zip -d /usr/src/
cd /usr/src/BPI-R4-bsp-5.4-main
./build.sh
I chose option 4 to find the modules and place “M” in the corresponding cases, then executed ./build.sh again and selected option 3.
[...]
CHK include/generated/compile.h
OBJCOPY arch/arm64/boot/Image
arch/arm64/boot/mkimage -E -B 0x1000 -p 0x1000 -f arch/arm64/boot/bpi_script arch/arm64/boot/uImage
arch/arm64/boot/mkimage: 1: Syntax error: "(" unexpected
make[2]: *** [arch/arm64/boot/Makefile:23 : arch/arm64/boot/Image] Erreur 2
make[2]: *** Suppression du fichier « arch/arm64/boot/Image »
make[1]: *** [arch/arm64/Makefile:142 : Image] Erreur 2
make[1] : on quitte le répertoire « /usr/src/BPI-R4-bsp-5.4-main/linux-mt »
make: *** [Makefile:76 : kernel] Erreur 2
Build success!
I received errors, but it’s saying that it’s a success. Could I get some help?
I am not sure if I really have to compile just to have a Debian 11 with the basic gateway/router modules. If I have to do it, could I get a notice or a tutorial to do it, please?
Thanks for your help.
Balou