Debian latest kernel 4.9.241 - no tun module

Hi there!

I have been using debian image for khadas vim3 for over the year and today updated kernel to 4.9.241 and suddenly my tailscale client won’t start.
The reason is that there is no tun module in kernel!?!?

modprobe tun returns this → Module tun not found in directory /lib/modules/4.9.241

Any chance to enable module in kernel config and build kernel again?
I see it is commented # CONFIG_TUN is not set

Best regards,
Sinisa

I found this problem too (/dev/net/tun not found).
I set CONFIG_TUN=y and recompile kernel 4.9, It’s work.

Yes I know maybe @numbqq can enable it again. I have created pull request on github :wink:

Okay, merged, thanks for your PR. :grinning:

Great! Thanks.

When will new kernel image be ready to download?

Best regards,
S:

Hello @ssehovic

For Ubuntu focal image you can upgrade the kernel to fix this issue.

sudo apt update
sudo apt full-upgrade
sync
sudo reboot
1 Like

Hi @numbqq,

and what about Debian? Is it the same?

Just to inform you I have this error:

dpkg-deb: error: archive 'linux-dtb-amlogic-4.9_1.3.1_arm64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive linux-dtb-amlogic-4.9_1.3.1_arm64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
dpkg-deb: error: archive 'linux-headers-amlogic-4.9_1.3.1_arm64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive linux-headers-amlogic-4.9_1.3.1_arm64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
dpkg-deb: error: archive 'linux-image-amlogic-4.9_1.3.1_arm64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive linux-image-amlogic-4.9_1.3.1_arm64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Selecting previously unselected package linux-libc-dev-amlogic-4.9.
(Reading database ... 67997 files and directories currently installed.)
Preparing to unpack linux-libc-dev-amlogic-4.9_1.1.1_arm64.deb ...
Unpacking linux-libc-dev-amlogic-4.9 (1.1.1) ...
dpkg: error processing archive linux-libc-dev-amlogic-4.9_1.1.1_arm64.deb (--install):
 trying to overwrite '/usr/include/asm-generic/auxvec.h', which is also in package linux-libc-dev:arm64 4.19.260-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 linux-dtb-amlogic-4.9_1.3.1_arm64.deb
 linux-headers-amlogic-4.9_1.3.1_arm64.deb
 linux-image-amlogic-4.9_1.3.1_arm64.deb
 linux-libc-dev-amlogic-4.9_1.1.1_arm64.deb

Until it is fixed I have found this “fix”.

Best regards,
S.

The debian package is zst compressed and debian buster doesn’t support it.

I have rebuilt the packages, you can install under Debian Buster.

cd /tmp
wget https://dl.khadas.com/.test/1.3.1/linux-dtb-amlogic-4.9_1.3.1_arm64.deb
wget https://dl.khadas.com/.test/1.3.1/linux-image-amlogic-4.9_1.3.1_arm64.deb
wget https://dl.khadas.com/.test/1.3.1/linux-headers-amlogic-4.9_1.3.1_arm64.deb
sudo dpkg -i *.deb
sync
sudo reboot
1 Like

Hi @numbqq,

is there a way to upgrade existing debian buster to debian bullseye on vim3?

Best regards,
S.

@ssehovic It seems infeasible.

Hi @numbqq,

I just created a simple shell script to repack deb package.
So if anyone stumble on this “zst” problem a simple script is here.
Repack script

1 Like