09/21/081 Ho Chi Minh city University of Technology Linux kernel R.M. Introduction of building Linux kernel from source
09/21/082 Ho Chi Minh city University of Technology Content Linux kernel – Linux distro Linux kernel configuration Building Linux kernel Using compiled kernel
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
09/21/084 Ho Chi Minh city University of Technology Linux kernel History – Home page – Source –Download source file –Uncompress the source file tar xjf linux tar.bz2
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
09/21/086 Ho Chi Minh city University of Technology Kernel configuration
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
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
09/21/089 Ho Chi Minh city University of Technology Compile kernel
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 _rm.1.0_i386.deb Check grub –grub.conf or menu.lst in /boot/grub Reboot to use new kernel
09/21/0811 Ho Chi Minh city University of Technology Install & Use
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?
09/21/0813 Ho Chi Minh city University of Technology Documents Inside kernel source –File README –Directory Documentations/ Debian/Ubuntu –
09/21/0814 Ho Chi Minh city University of Technology Thank you for listening