Below Steps describe How to Compile Linux Kernel with Different Configuration Options
1. Download Kernel from https://www.kernel.org/
download tar.xz file Example:https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.3.tar.xz
2. Extract tar.xz file
tar -xvf linux-3.10.3.tar.xz
3. Goto Extracted folder
cd linux-3.10.3
4. Configuration command is
make menuconfig
based on requirement you can choose different configuration options
"make config" Plain text interface.
"make menuconfig" Text based color menus, radiolists & dialogs.
"make xconfig" X windows (Qt) based configuration tool.
"make gconfig" X windows (Gtk) based configuration tool.
"make oldconfig" Default all questions based on the contents of
your existing ./.config file and asking about
new config symbols.
"make silentoldconfig"
Like above, but avoids cluttering the screen
with questions already answered.
Additionally updates the dependencies.
"make defconfig" Create a ./.config file by using the default
symbol values from either arch/$ARCH/defconfig
or arch/$ARCH/configs/${PLATFORM}_defconfig,
depending on the architecture.
"make ${PLATFORM}_defconfig"
Create a ./.config file by using the default
symbol values from
arch/$ARCH/configs/${PLATFORM}_defconfig.
Use "make help" to get a list of all available
platforms of your architecture.
"make allyesconfig"
Create a ./.config file by setting symbol
values to 'y' as much as possible.
"make allmodconfig"
Create a ./.config file by setting symbol
values to 'm' as much as possible.
"make allnoconfig" Create a ./.config file by setting symbol
values to 'n' as much as possible.
"make randconfig" Create a ./.config file by setting symbol
values to random values.
4. make
5. make modules
6. make modules_install
7. make install
8. Check /boot/grub/grub.conf file whether new kernel entry added or not
if it is not there try "update-grub" command
No comments:
Post a Comment