How do I integrate a module in Linux?

Question

I have a Linux kernel where the module I want to use isn't integrated. How do I integrate the module?

Solution

To integrate the module you'll need to change the source files in your linux kernel (files ending in .c and .h) and compile that kernel to make new .ko files. To do this, you'll need to download the source files for your kernel. https://www.kernel.org/ have a lot of kernel source files.



Let's say that the folder containing your kernel is called "linux_src"



Now follow the integration guide and make the changes you'll need to make. Typically it includes the following files:

linux_src/.config

linux_src/drivers/usb/serial/option.c

linux_src/drivers/usb/serial/usb_wwan.c

linux_src/include/linux/usb.h



Please note that for different vendors, there could be more or less files that needs to be modifyed.



What content that shall be added or modifyed in these files differs between vendors, so please reffer to the corresponding vendors integration manual.



When the changes are made, its time to make the kernel.

$ linux_src/make



and then time to install

$ linux_src/make install



If no error messages is show, reeboot your computer and the new kernel will be loaded.

Recent FAQ

Shopping cart

No items added yet

Check out our products and product categories

Continue to products