GithubHelp home page GithubHelp logo

WireGuard about openlumi.github.io HOT 8 CLOSED

dvv avatar dvv commented on June 24, 2024
WireGuard

from openlumi.github.io.

Comments (8)

devbis avatar devbis commented on June 24, 2024

You have to compile OpenWrt by yourself and enable the required kernel modules in the firmware.
Otherwise, some kernel modules may cause issues.

Sources for the OpenWrt 19.07 are located here: https://github.com/openlumi/openwrt/tree/lumi-19.07

from openlumi.github.io.

dvv avatar dvv commented on June 24, 2024

On my router:

$ uname -a
Linux home 4.14.167 #0 SMP Wed Jan 29 16:05:35 2020 mips GNU/Linux

gives

$ lsmod | egrep '(wire|tunnel)'
ip6_udp_tunnel          1600  1 wireguard
udp_tunnel              2432  1 wireguard
wireguard              90560  0

so all the required kernel modules already do exist in this firmware.

It's a matter of some missing kernel feature. I believe select DST_CACHE should go ( mentioned https://lore.kernel.org/patchwork/patch/880428/ )

I can not afford building the world. May some be interested.

from openlumi.github.io.

devbis avatar devbis commented on June 24, 2024

The modules that exist in firmware depends on the config for building.
It may include some modules, may not.
We tried to keep the image small and did not include most of the kernel modules that are not required for basic gateway usage.
Here is the config I used for the build: https://github.com/openlumi/openwrt/blob/lumi-19.07/config_xiaomi_lumi

from openlumi.github.io.

dvv avatar dvv commented on June 24, 2024

I see.

Look at what we've got:

$ modinfo wireguard
module:         /lib/modules/4.14.221/wireguard.ko
intree:         Y
alias:          net-pf-16-proto-16-family-wireguard
alias:          rtnl-link-wireguard
license:        GPL v2
depends:        udp_tunnel,ip6_udp_tunnel

$ modinfo udp_tunnel
module:         /lib/modules/4.14.221/udp_tunnel.ko
license:        GPL
depends:

$ modinfo ip6_udp_tunnel
module:         /lib/modules/4.14.221/ip6_udp_tunnel.ko
license:        GPL
depends:

So I conclude that the missing symbols are to be in the shipped kernel per se.

from openlumi.github.io.

dvv avatar dvv commented on June 24, 2024

@devbis Am I right that the following will give me exact config that you have?

git clone --depth 1 -b lumi-19.07 https://github.com/openlumi/openwrt
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
cp config_xiaomi_lumi .config
ln -s files_xiaomi_lumi files
make menuconfig

from openlumi.github.io.

dvv avatar dvv commented on June 24, 2024

Built, sysupgrade-d, got a brick... )
Suspecting WiFi drivers

from openlumi.github.io.

devbis avatar devbis commented on June 24, 2024

Oh, you've missed one essential step.

files_xiaomi_lumi should be renamed to files or make a symlink with files name.

You could try to restore availability by copying the content to /lib/* files through serial console.

from openlumi.github.io.

dvv avatar dvv commented on June 24, 2024

Thank you. Revived. That comment ^^^ should go to readme imho.

from openlumi.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.