Last active
August 29, 2015 14:13
-
-
Save danish-rehman/0fc918caa87f73d52fab to your computer and use it in GitHub Desktop.
Compile and install a linux kernel module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to linux kernel source code | |
# This kernel is already compiled and installed | |
# on the given host | |
>> cd /mnt/local/linux-3.16 | |
# Edit the network driver code | |
>> vim drivers/net/ethernet/intel/igb/igb_main.c | |
# Compile the module | |
>> make -C /lib/modules/`uname -r`/build M=drivers/net/ethernet/intel/igb | |
# Install the module | |
>> make -C /lib/modules/`uname -r`/build INSTALL_MOD_DIR=kernel/drivers/net/ethernet/intel/igb M=drivers/net/ethernet/intel/igb modules_install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment