no tun in stock kernel?

Discussion about U-Boot and the kernel.

no tun in stock kernel?

Postby Socaltom » Wed Sep 14, 2016 2:22 pm

[root@Pogoserver tom]# modprobe tun
modprobe: FATAL: Module tun not found in directory /lib/modules/4.4.19-1-ARCH


This is on a fresh install on an NSA325, followed by -Syu

openvpn won't run and complains about lacking tap/tun device
Tom
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: no tun in stock kernel?

Postby WarheadsSE » Wed Sep 14, 2016 3:07 pm

That is not right.

That should have the linux-kirkwood package, and that is at 4.4.20-1, which I have also confirmed does have the tun modules and support in the kernel config.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6729
Joined: Mon Oct 18, 2010 2:12 pm

Re: no tun in stock kernel?

Postby Socaltom » Thu Sep 15, 2016 3:06 am

WarheadsSE wrote:That is not right.

That should have the linux-kirkwood package, and that is at 4.4.20-1, which I have also confirmed does have the tun modules and support in the kernel config.


I looked a little closer, and 4.4.20-1 is installed, so I created a link from 4.4.19-1 to 4.4.20-1 and it works, but something isn't right because modprobe thinks I'm on 4.4.19-1. Why would that happen? I only installed about a week ago, and everything was freshly downloaded, and I did an Syu immediately after it installed.
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: no tun in stock kernel?

Postby moonman » Thu Sep 15, 2016 4:28 am

That usually happens if you have a separate boot partition which is not linked in anyway to /boot on rootfs partition so you end up booting an old kernel with modules for the new kernel in the rootfs
Pogoplug V4 | GoFlex Home | Raspberry Pi B 512 | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | |[armv5] How to install my.pogoplug.com service | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3089
Joined: Sat Jan 15, 2011 3:36 am
Location: Calgary, Canada

Re: no tun in stock kernel?

Postby Socaltom » Thu Sep 15, 2016 12:57 pm

moonman wrote:That usually happens if you have a separate boot partition which is not linked in anyway to /boot on rootfs partition so you end up booting an old kernel with modules for the new kernel in the rootfs

I knew I forgot something!
I copied /boot to /dev/sda1
Created van fstab entry to mount /dev/sda1 as /boot and rebooted now all is good
Tom
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: no tun in stock kernel?

Postby summers » Thu Sep 15, 2016 1:05 pm

Note that if you are moving to a more recent uboot, then you don't need a separate boot partition. Stock needs a separate boot partition, because stock uboot can't read ext4. However when uboot is updated it does understand ext4, and so you can just have a single root partition. Long term that makes it easier to maintain.

Of course the hassle us you typically only update uboot, once you have arch already install, with a separate boot partition. I solved that by pulling the hdd, copying the file system off the disk (with tar), repartitioning the disk, then copying everything back again ...
summers
 
Posts: 176
Joined: Sat Sep 06, 2014 12:56 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 1 guest