Score:0

How to compile driver module for older kernel?

br flag

If my local system is running version 4.4.0-88 and I want to boot a remote system using the 4.4.0-42 kernel with a driver that is only available from 4.14. How to do this? Is it possible?

I really struggle to put thought into words and appreciate every bit of help I can get.

Thanks.

cocomac avatar
cn flag
To clarify, are you asking "What is the relationship between initrd and vmlinux"? Is it "Can I put a driver from one kernel version into an older one" Or is it "How can I use the new scsi disk driver with kernel version 5.10"?
user1098490 avatar
br flag
I just added an example, because I'm wondering if the version of the modules added to initrd matters. E.g. you add a driver to your 5.10 which is only available in 5.20.
user1098490 avatar
br flag
To clarify, does the `vermagic:` from `modinfo "module"` matter?
user1098490 avatar
br flag
@TBr Yes, that answers part of my questino. I've re-written my question based on the post you sent. THanks.
user1098490 avatar
br flag
I see... I want to understand which role the kernel version plays a role when it comes to drivers. Why can't I for instance take a module from 4.14 initrd and put it directly (or find it online and compile it using the old kernel)? What's the relation between the kernel version and initrd drivers? As I'm typing this this should probably be a new question. Thank for your input, @TBr.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.