Presentation is loading. Please wait.

Presentation is loading. Please wait.

09/21/081 Ho Chi Minh city University of Technology Linux kernel R.M. Introduction of building Linux kernel from source.

Similar presentations


Presentation on theme: "09/21/081 Ho Chi Minh city University of Technology Linux kernel R.M. Introduction of building Linux kernel from source."— Presentation transcript:

1 09/21/081 Ho Chi Minh city University of Technology Linux kernel R.M. Introduction of building Linux kernel from source

2 09/21/082 Ho Chi Minh city University of Technology Content Linux kernel – Linux distro Linux kernel configuration Building Linux kernel Using compiled kernel

3 09/21/083 Ho Chi Minh city University of Technology Linux kernel – Linux distro Linux distribution (Linux distro)‏ –Linux OS Linux kernel Libraries & Utilities: GCC, X Window,... –Collection of applications http://distrowatch.com

4 09/21/084 Ho Chi Minh city University of Technology Linux kernel History –http://en.wikipedia.org/wiki/Linuxhttp://en.wikipedia.org/wiki/Linux Home page –http://www.kernel.orghttp://www.kernel.org Source –Download source file http://www.kernel.org/pub/linux/kernel/v2.6/ –Uncompress the source file tar xjf linux-2.6.26.5.tar.bz2

5 09/21/085 Ho Chi Minh city University of Technology Kernel configuration.config file –Create default config file: make defconfig Two basic ways –make menuconfig –make xconfig Required package: libncurses5-dev

6 09/21/086 Ho Chi Minh city University of Technology Kernel configuration

7 09/21/087 Ho Chi Minh city University of Technology Kernel configuration Suggestions –Just modify if you know about it –Should use default.config file make defconfig –Build Linux kernel in ext3 partition –Free space should be larger than 1GB

8 09/21/088 Ho Chi Minh city University of Technology Compile kernel Two phases –Build kernel image –Build kernel modules Normal way –Phase 1: make -j 4 –Phase 2: make -j 4 modules_install Debian/Ubuntu distro –export CONCURRENCY_LEVEL=4 –fakeroot make-kpkg --initrd --revision=1.0 kernel_image

9 09/21/089 Ho Chi Minh city University of Technology Compile kernel

10 09/21/0810 Ho Chi Minh city University of Technology Install & Use Use root permission to install kernel image Normal way –make install Debian/Ubuntu distro –dpkg -i../linux-image-2.6.24.3_rm.1.0_i386.deb Check grub –grub.conf or menu.lst in /boot/grub Reboot to use new kernel

11 09/21/0811 Ho Chi Minh city University of Technology Install & Use

12 09/21/0812 Ho Chi Minh city University of Technology Art of building kernel Understand our system –Create a config file fitting our system Understand new features in Linux kernel Choose a good kernel –Stable –Latest Question: Can we create specific config file automatically just used in our system?

13 09/21/0813 Ho Chi Minh city University of Technology Documents Inside kernel source –File README –Directory Documentations/ Debian/Ubuntu –http://www.howtoforge.com/kernel_compilation_ubuntuhttp://www.howtoforge.com/kernel_compilation_ubuntu

14 09/21/0814 Ho Chi Minh city University of Technology Thank you for listening


Download ppt "09/21/081 Ho Chi Minh city University of Technology Linux kernel R.M. Introduction of building Linux kernel from source."

Similar presentations


Ads by Google