ericwoud / buildR64arch

Build script for image for BananaPi R64 / R3 (R4) running Arch Linux
21 stars 5 forks source link

Set CONFIG_TUN=m in kernel config to make tun.ko #8

Closed ostrich closed 1 year ago

ostrich commented 1 year ago

Please consider setting CONFIG_TUN=m in your kernel config so we get the tun.ko module. Thanks!

$ zcat /proc/config.gz | grep CONFIG_TUN
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set
gurudvlp commented 1 year ago

@ostrich I agree that it would be great to have this compiled in. I have started playing with building another kernel that has this feature, FUSE, and various file system support added. The build is automated but it is not to the point of having its own repo set up yet.

You can see the build scripts at https://github.com/Gurumode/kernel-get. I built a kernel this morning with:

CONFIG_TUN=y CONFIG_TUN_VNET_CROSS_LE=y

I have not tested this build, but you are free to download and try it at https://gurumode.net/kernel/linux-6.3.9-bpi-gurumode/. I think it can be used by replacing the Image file in /boot, and running sudo bpir-writefip. It will be overwritten the next time you update though.

ostrich commented 1 year ago

Thanks @gurudvlp, I gave it a shot. It boots and Tailscale works with tunl0. Unfortunately wlan0 and wlan1 are no longer being created.

gurudvlp commented 1 year ago

Well that is not good. Can you provide the steps that you took to install the new kernel? Like I said, I had not yet tested it but would have though the most likely thing would be a failure to boot. I'll install and see if I can find what is going wrong.

ericwoud commented 1 year ago

It is set and build. Update the linux-bpir64-git package and reboot.

You're all set.

But it is quite easy to edit a package from the aur.

First install if not already:

pacman -Syu base-devel git

Check the following package:

https://aur.archlinux.org/packages/linux-bpir64-git

So as non-root user:

git clone https://aur.archlinux.org/linux-bpir64-git.git

cd linux-bpir64-git

nano defconfig

Edit the defconfig file, save and exit

makepkg -fsi