Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8020997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:50:49+00:00 2026-06-04T21:50:49+00:00

I am new to writing kernel modules, so facing few non-technical problems. Since for

  • 0

I am new to writing kernel modules, so facing few non-technical problems.

Since for creating kernel module for a specific kernel version ( say 3.0.0-10, 10 is patch number) requires same version kernel headers, so it looks straight to install kernel headers and start development over there.
But kernel headers for patched kernel version are not available.
As I have a guest kernel vmlinuz-3.0.0-10 running in machine and upon downloading kernel headers it says not found.

  • other approach is to get the source for that specific kernel, but again problem is same source for patched kernel is not available ( its not necessary to get sources of linux-kernel-3.0.0-10 or even linux-kernel-3.0.0 and 10th patch). In some situation it is possible to get source of running kernel, but not always possible.

  • another is to build kernel other than the running kernel and place built kernel in the machine. But it requires to build the modules of that kernel that is time-consuming and space-consuming process.

So intention of asking this is to know what are the preferences of kernel driver developers. Are there other alternatives ?

Is it possible to compile kernel module in one version and run in another version ( though it is going to give error, but are there any workaround for this ?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:50:50+00:00Added an answer on June 4, 2026 at 9:50 pm

    So, building a new kernel is not a good option as it will require :

    • building kernel
    • building modules and firmware
    • building headers
      Moving all of above things in appropriate location (if your machine is not same on which you are going to develop module)

    So if you have kernel headers for running system then you dont need to download a source code for any kernel version, and while making module use

    make -C /lib/modules/kernel-headers-x.y.z/build M=`pwd` modules
    

    and your module will be ready.

    If there would be better answers, i will not hesitate to accept any of them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to writing use cases.I heard that Use cases are non-technical expressions
I'm writing new kernel module and I add implement new IOCTL's. Is there any
I'm currently writing a Linux kernel module, and have problems implementing its communication with
I am writing a Linux kernel module. It is released with all the source
I'm new to writing app for android. I've got program writing experience in non
I writing a linux kernel module that does some work with /proc... I'm trying
I'm new in writing Linux device driver, and I'm wondering how the kernel Makefile
I'm writing a new syscall inside the linux kernel. I want to implement an
I'm new to writing WordPress plugins. I'm trying to write a little plugin that
I'm new to writing assembly code and I'm having trouble printing out the values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.