Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can the Linux driver be recompiled in order to use it for another version of the Linux kernel? What is the command needed to do so?

0
10 Posted

Can the Linux driver be recompiled in order to use it for another version of the Linux kernel? What is the command needed to do so?

0
10

A new driver does not need to be developed for each of the many variants of Linux that exist, but rather the driver must be recompiled on that particular operating system. The command that should work to build or recompile the driver for a different version of the Linux kernel is: gcc -D__KERNEL__ -DMODULE -c -O -Wall -I/usr/include -o tulip.o tulip.c Please note that there are double-underscores in -D__KERNEL__ The output should be placed in /lib/modules/kernel-version/net as should be when you are installing the driver, per the Readme file (attached). Then the remaining procedure in the Readme file should be followed. It is suggested that you consult the documentation related to whatever version of Linux you plan to use, to see their suggestions for compiling/building drivers from existing source code (tulip.c). There may be some newer versions of Linux have a plug and play feature which will just prompt you to insert a diskette with the driver source code (tulip.c), in which case yo

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123