up-to-date entware (and wireguard!)

1,032 views
Skip to first unread message

hell...@free.fr

unread,
Apr 25, 2021, 8:11:12 AM4/25/21
to Alt-F
As much as I love the project(s), Entware is a confusing mess after all the merging =)

Current state, correct me where wrong:
- As of 2021, current website is at https://entware.net/
- Current packages, by arch, at https://bin.entware.net/
- Old (2018), outdated packages for kernel < 3.2 at http://pkg.entware.net/binaries/

Alt-F 1.0 with kernel 4.4.86 can use packages from the current repository, I crudely switched and it seems to work, I was mostly for curiosity looking for wireguard support.

for Alt-F 1.0/armv5tel, as root:

# mv /opt /opt-old
# chmod +x generic.sh
# ./generic.sh

# mkdir /opt/etc/wireguard
create/move wg0.conf in/to /opt/etc/wireguard
# modprobe tun
# wg-quick up wg0

of course no miracles speed-wise, but it *does* work, iperf3 shows a stable 5 Mbits/sec TCP, 10 Mbits/sec for UDP

Nicolas Desveaux

unread,
Apr 25, 2021, 2:53:00 PM4/25/21
to al...@googlegroups.com
How did you update to kernel 4.4.86 ? I'm on 4.4.45 at the moment and when adding the new package repository I get a bunch of errors for each available package: has no valid architecture, ignoring

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/1cc45632-ca05-4575-bfaa-bc2a48e4f735n%40googlegroups.com.

Nicolas Desveaux

unread,
Apr 26, 2021, 2:20:32 AM4/26/21
to Alt-F
I'm ashamed to say I found out how to update the kernel to 4.4.86 (it was on the Alt-F packages .. simply)
That said after update I still had the same error so would be cool to understand what causes it.

hell...@free.fr

unread,
Apr 26, 2021, 6:28:38 AM4/26/21
to Alt-F
what does
# uname -a
and
# cat /proc/cpuinfo
show you? My device is a CH3SNAS/DNS323, which has a armv5 architecture/CPU

Nicolas Desveaux

unread,
Apr 26, 2021, 6:52:16 AM4/26/21
to al...@googlegroups.com
Hey @hellfish
Thanks for the question:

[root@NBACKUP]# uname -a
Linux NBACKUP 4.4.45 #1 Wed Jun 14 16:12:30 WEST 2017 armv5tel GNU/Linux

and
[root@NBACKUP]# cat /proc/cpuinfo
processor       : 0
model name      : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 198.86
Features        : swp half fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1

Hardware        : Marvell Kirkwood (Flattened Device Tree)
Revision        : 0000
Serial          : 0000000000000000

You received this message because you are subscribed to a topic in the Google Groups "Alt-F" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alt-f/a2TAVgzdvzE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/08410786-ca3b-47da-9e7b-3f42ac93955fn%40googlegroups.com.

hell...@free.fr

unread,
Apr 27, 2021, 3:27:48 AM4/27/21
to Alt-F
you are still running the older kernel (missing reboot?) but armv5sf-k3.2/installer/generic.sh should work nonetheless, since you are also on armv5 and > 3.2 kernel
I roughly remember flashing my box to Alt-F 1.0 shortly after it came out, setting up bare basic ssh access/rsync target and then having it sitting far away and even powered down after an outage for almost a year before I could access it again, so I would consider it an "almost fresh installation".
I did not change anything entware related through the web-UI, just the commands above.

extenue

unread,
May 2, 2021, 9:05:06 AM5/2/21
to Alt-F
thanks !!! I could get Rclone working thanks to this thread :)

you made my day 

ALT-FUser

unread,
Dec 25, 2021, 1:44:09 PM12/25/21
to Alt-F
Hi,
the wireguard is installed with wg-quick and the modeprobe tun enabled. But still can't find the wg0:
........
wg-quick up wg0
Warning: `/opt/etc/wireguard/wg0.conf' is world accessible
[#] ip link add wg0 type wireguard
ip: RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0
ip: can't find device 'wg0'
........


Regards

Hell Fish

unread,
Dec 25, 2021, 3:42:34 PM12/25/21
to Alt-F
Hi Sia

do you have the following packages installed, not just wg-quick:
wireguard-go
wireguard-tools


I'm afraid my "guide" was too brief, focused on entware... We don't/can't have wireguard in kernel/as a module, the go variant has to suffice

Glaucio Campos

unread,
Aug 11, 2023, 8:02:55 PM8/11/23
to Alt-F

I had the same problem with the kernel module on the newer versions of WG.

Here's a workaround, I did to make it work:

After installed Entware-ng, I removed all WireGuard packages from opkg.


Install the following versions:
opkg install http://bin.entware.net/armv5sf-k3.2/archive/wireguard-go_v0.0.20201118-1_armv5-3.2.ipk
opkg install http://bin.entware.net/armv5sf-k3.2/archive/wg-quick_1.0.20210424-1_all.ipk
opkg install http://bin.entware.net/armv5sf-k3.2/archive/wireguard-tools_1.0.20200513-2_armv5-3.2.ipk

Load the tun module with modprobe:
modprobe tun


Try to connect with wg-quick:
wg-quick up wg0

I hope this works for someone else!

Reply all
Reply to author
Forward
Message has been deleted
0 new messages