Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If you have a device driver that works on one Linux distro, will it also work on another one?

share|improve this question
add comment

2 Answers

That depends on what kernel the other Distro is using. Try uname -a to determine the Kernel-Version. If the kernel version of Distro B is lower than that one of Distro A, then it can be that the driver is not working, because it depends on newer features. If Distro B has the newer kernel, than I'd say it will work.

share|improve this answer
add comment

Is the device driver in source code form, or compiled binary form?

If it's in source code, then it will work fine when compiled into the version of the kernel it's intended for. Compile it separately for each kernel configuration that you need it to work with.

If it's in compiled binary form, it is only going to work with whichever specific kernel it was compiled against. Even the very same version of the kernel, compiled with different configuration, will be unlikely to work with a binary module compiled for some other configuration.

The lesson:

  • Choose hardware that has drivers already maintained in the mainline kernel.

  • Motivate kernel developers to rectify the situation if you want to use hardware that isn't in that situation yet.

  • Motivate the hardware vendor to assist kernel developers in this process.

  • Run like hell away from any hardware whose vendor resists getting drivers maintained in the mainline kernel.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.