Skip to content

Instantly share code, notes, and snippets.

@danish-rehman
Last active August 29, 2015 14:13
Show Gist options
  • Save danish-rehman/35ed50be268863fa738b to your computer and use it in GitHub Desktop.
Save danish-rehman/35ed50be268863fa738b to your computer and use it in GitHub Desktop.
Compile a kernel
# Download the kernel
>> cd /mnt/local
>> wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.tar.gz
>> sudo apt-get install libncurses5-dev libncurses5
>> tar -xvf linux-3.2.63.tar.gz
>> cd linux-3.2.63
>> make menuconfig
# Build the kernel
>> make && make modules && make modules_install && make install
>> sudo reboot
# Check kernel version
>> uname -r
# Image to be stored
>> ls /mnt/local/linux-3.16/arch/x86/boot/bzImage
# System map file to be stored
>> ls /mnt/local/linux-3.16/System.map
# Config file to be stored
>> ls /boot/config-3.16.0
# Modules list to be stored
>> ls /lib/modules/3.16.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment