Notifications
Clear all

[Solved / Archived] Vivid Unit: network tun device for vpn (openvpn)

9 Posts
2 Users
0 Likes
181 Views
(@tampaflorida083)
Posts: 16
Eminent Member Customer
Topic starter
 

Hi,

Unfortunately vivid unit's kernel seems to be built without network tun device (/dev/net/tun), which I need for my vpn connection. According to /proc/config.gz the option was not set at compile time.

My Questions: Is it possible to build a driver module using a modified config tree? Shall I install the kernel headers I can get from the debian repository (5.10 if I find them) and try? Or, does that probably not work?

My Linux knowledges are from the past, I was using windows and android during the last years.

 

 
Posted : 23/02/2024 7:33 pm
Topic Tags
(@admin)
Posts: 319
Member Admin
 

I think the straightforward solution is to re-compile the kernel with modified configuration. You can find the source code of kernel here: https://github.com/vividunit/kernel

 
Posted : 24/02/2024 9:05 am
(@tampaflorida083)
Posts: 16
Eminent Member Customer
Topic starter
 

As we are crosscompiling, I have a question.

Is it sufficient to just write 'make menuconfig'? Or do we have to add something like 'arch=arm...' also later on, when compiling.

 
Posted : 24/02/2024 12:47 pm
(@tampaflorida083)
Posts: 16
Eminent Member Customer
Topic starter
 

I will do it the way it is described in your manifest readme.

 
 
Posted : 24/02/2024 1:55 pm
(@tampaflorida083)
Posts: 16
Eminent Member Customer
Topic starter
 

In the meantime I successfully compiled and flashed a new image according to your guidance on https://github.com/vividunit/vivid-manifest .

So, my vpn problem seems to be solved, finally, as the TUN network device is available now.

But I got a new problem:

There is no wifi available.

ifconfig -a reveals there is now wifif adapter at all, just ethernet and loopback.

 
Posted : 24/02/2024 9:08 pm
(@admin)
Posts: 319
Member Admin
 

@tampaflorida083 have you tried running "depmod -a" and then reboot?

 
Posted : 25/02/2024 11:26 am
(@tampaflorida083)
Posts: 16
Eminent Member Customer
Topic starter
 

"sudo depmod -a" says indeed, that it cannot open the modules directory. ("/lib/modules/5.10.110-..." - "No such File or directory")

 
Posted : 25/02/2024 12:00 pm
(@tampaflorida083)
Posts: 16
Eminent Member Customer
Topic starter
 

I now did manage to install the modules and load it up to the vivid unit computer.

Wifi is working as it should, and additionally my wifi usb stick is working, too, after modifying the kernel config.

Unfortunately my vpn software brings another error, so that I need to modify the kernel once more.

 
Posted : 25/02/2024 4:50 pm
(@tampaflorida083)
Posts: 16
Eminent Member Customer
Topic starter
 

I succeeded now in bringing up a vpn connection.

Thanks @uugear for the good documentation on building a new image. It is on https://github.com/vividunit/vivid-manifest

 
Posted : 26/02/2024 12:23 pm
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.