Tun.ko please? (A5E)

As cubie a5e is a dual eth board perfect for networking use case,
could the support offer a kind help to compile a tun.ko file for us?
Without it no VPN application can be used!

Thank you!

I have tried building it myself, ( using a527_cubie_a5e_bullseye_beta_20250303_raw_disk image)
but I have no luck with the linux-modules-extra-5.15.147 and linux-headers-5.15.147

Should I first install Allwinner’s kernel header? like
sudo apt install linux-headers-sunxi http://ppa.linuxfactory.or.kr

This is a Hardkernel repository?

Just for example… not really

It’s because I saw Radxa support replied in an old thread suggest similar step (but on rockchip apparently no applicable to Allwinner) How to load a tun module - Operating system distributions / Debian/Ubuntu - Radxa Community

Hey @upsangel
I had a similar need for UVC kernel module and had to compile the module myself. It wasn’t enough and I had to compile and install some other depencedies to be functional. Not sure if it’s the case for this module or not.
Anyway, You can compile kernel module using menuconfig
-> Device Drivers
-> Network device support
-> Network core driver support
-> Universal TUN/TAP device driver support (CONFIG_TUN)

set M because you want a kerner module. I also compiled the kernel module using the setup, and it’s attached. but be aware that I don’t have access to the board now and haven’t tested it yet.
https://mega.nz/file/LsYlzBpR#hoKCml63oLuWmkpbSnUIzZQJJVBirFXPDfQ9CtyYn4k

I just found another A5E board lying around and tested it, turns out only tun.ko was needed

Hi Ali,
Great thanks for your sharing and efforts. Let me try your file sometime today or tmr and report back.

May I ask how do you get the “folder” to run the menuconfig? That’s sth I wanted to do but have no clue how to start.
I am not a trained IT guy, from my very limited experience (on other linux/board), I git clone a repo to a local folder, then cd into that folder, then do the “menuconfig” thing. But I have no idea how to get that “folder” of A5E. I tried the Armbian’s repo, but the kernel from Armbian (version 6.x) is not the same version of radxa’s factory firmware (version 5.x).

TIA

works like a charm!

Hey I advise you to go through the official documentation either https://linux sunxi.org/Radxa_Cubie_A5E or docs.
After having a proper build system setup, inside tina directory you can run ./build.sh menuconfig