How to add a module to an existing kernel

Sometime you need to add a new driver to a modular kernel, you can just compile the needed module and install it without recompiling the entire kernel. Just follow these steps:

# cd /usr/src/linux (location where linux kernel source is stored)
# make config Or make menuconfig OR make xconfig
(Choose the driver as a module)

# make dep
# make modules
# make modules_install
# depmod -a

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s