Power & Source of Big Ideas

How to build custom kmod?

Moderators: chensy, FATechsupport

I've recently got R6S and would like to build amneziawg kmod package.

As I understand FriendlyWRT uses custom kernel that is build aside from other packages, in the mean time all kmod files depends on openwrt kernel package and simple build via make feed/package/compile leads to broken dependency.
Even if I extract *.ko file from ipk it wound be loaded due to broken version magic.
And in the mean time I'm able to use opkg install kmod-some-package to install kernel modules.

So what's the proper way to build kmod package for friendlywrt?
I'm stuck with exactly the same problem. The stock kernel has a version 6.1.25 on my board, whereas the version of the GitHub image is 6.1.99. I've readily tried to fix the version in the makefile, but the modules still don't load, presumably because the currently available toolchain is based on the GCC 11, whereas the stock kernel seem to has been compiled with GCC 10. My problem is that I'm happy with the board as it is now, and do not want to replace the whole kernel just because of adding one module...

So, what we are missing as the community are:
* the precise toolchain(s) used to build stock kernels
* kernel source code tags corresponding to the stock binary kernels

Additionally, the precise configuration should actually be acquired from /proc/config.gz, because it is different to that generated by the scripts.

Dear FriendlyElec support team, could you please be so friendly and share the missing bits with us to make it possible for to compile modules for delivered kernels!

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests