M
M
mrkeks2019-09-03 08:52:28
linux
mrkeks, 2019-09-03 08:52:28

How to build a 4.0 kernel so that there is wifi support from the 5.2 kernel?

There is a 5.2 kernel running the wifi module on my laptop.
But due to the nature of the activity, it is necessary to use the 4.0 kernel, in which there is no support for this module yet.
How to build a 4.0 kernel so that there is wifi support from the 5.2 kernel?
I know that there is a practice of backporting hardware support from new kernel versions to old ones, but I don’t know how to do this.
Constantly rebooting between kernels is not an option.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
mrkeks, 2019-09-06
@mrkeks

there is a solution here. Works great

V
vlarkanov, 2019-09-03
@vlarkanov

But it's definitely impossible to assemble the required module SEPARATELY and then load it through modprobe?

M
Michael, 2019-09-03
@MikeDeblin

Work on 5.2, and keep the system on 4-ke in a virtual machine?
Or not an option at all?
Backporting is not an easy thing, it may not pay off the effort spent on it.
As an option, analyze the change in the driver in 5-ke and compare with the implementation in 4-ke and make changes.

V
Vitaly Karasik, 2019-09-03
@vitaly_il1

the practice of backporting hardware support from new kernel versions to older ones,

This option is clearly for kernel hackers.
It is more realistic in my opinion to search or ask in the forum (or maillist, or GitHub issues) of this module how people deal with this. There is probably already a solution.

L
lorc, 2019-09-03
@lorc

Actually, you yourself answered your own question - you need to backport the driver to your kernel. This is done with the help of a git and thoughtful reading of the source. It's not easy if you don't understand the kernel at all. But unfortunately, there is no other way.
Why do you need kernel 4.0? What's so special about it? Maybe it will be easier to drag the changes you need into 5.2?
Porting code forward is usually easier than porting backward.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question