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

  • Home
  • SEARCH
  • 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 8657309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:29:28+00:00 2026-06-12T15:29:28+00:00

Is there any way to install a Linux device driver without connecting the device?

  • 0

Is there any way to install a Linux device driver without connecting the device?

I have complete access to the driver code. I’m using Linux Kernel 2.6.35.

I have tried insmod and modprobe to no avail. I am working on a custom driver (I didn’t write it) but there isn’t any documentation.

  • 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-12T15:29:29+00:00Added an answer on June 12, 2026 at 3:29 pm

    A properly written device driver should not install when no instances of the device exist in the system (hot-pluggable device might be an exception). In some versions of Unix the probe() function of the driver checks if the device is present. In Linux the probe functionality is often incorporated into the _init() routine. When no hardware is detected, the driver should not register itself, and return status that would cause it to be unloaded if it is a module.

    If you insist on having the driver code in memory, then don’t build it as a loadable module, but rather select the Linux driver to be part of the memory-resident kernel. Building a driver as a loadable module is selected by typing an “M” in the menuconfig program. To have the driver built into the kernel, use the space bar to select the driver. The selection will be marked with an asterisk * rather than an M to indicate this difference.

    (The text for this menuconfig dialog comes from Kconfig files. The product of this configuration dialog is the .config file, which has configuration symbols that are used in Makefiles to control the compilation of object files. The previous assumes that this driver has been incorporated into the Linux kernel source code tree. If all you have is the source code file, then you’ll have to decide where in the source tree this driver fits. You then might be able to manually edit a Makefile to unconditionally compile the driver in that appropriate sub-directory. Or customize the Kconfig and Makefile files with a configuration variable for this driver.)

    To keep all of the driver’s code resident, you will have to make some minor code changes. Normally the initialization code and data are placed in text and data sections separate from “ordinary” text and data, and this memory section is freed once the kernel has finished booting. To prevent any driver code and data from being freed, remove the __init and __exit section specifiers in declarations.

    Of course you will have to build a new kernel binary in order to incorporate this device driver. You should try to use the previous build’s .config file before adding the driver.

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

Sidebar

Related Questions

Is there any way to install C# libraries other than using the Package Manager
is there any way i install SMTP service on my Linux server and use
Is there any way to run .bat file in Linux environment? I have a
Is there any way we can fetch X509 Public Cetrificates using c# from AD
Is there any way to achieve compiling Node.js scripts as native code, like Hip-Hop
Is there any way to allow non-Administrator users to install, upgrade or uninstall an
Is there any way in Notepad++ (or even with another tool) to change the
Is there any way I can set a formatter on models that will convert
Is there any way to use Google's API to retrieve a user's current zipcode
Is there any way to overload the > (greater than) operator, to be able

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.