1. get source codes ; kernel source codes and patch files with the same version
# wget http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.58.tar.gz
# wget http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/patches-3.2.58-rt85.tar.gz
2. decompress both tar.gz files
# tar xvzf (file name)
<way 1>-------------------------------
3-a. move to patches directory
# cd patches
4-a do patch with below command
# cat ./* | patch --directory=(kernel_sourcecode_dir) -p1
<way2> --------------------------------------
3-b. move to kernel source directory
# cd linux-3.2.58
4-b do patch with below command
#zcat ../patches-3.2.58-rt85.tar.gz | patch -p1
kernel codes are patched for RT
and extra steps are same as kernel compile
# cd linux-3.2.58
# make mrproper (required when re-compile)
# make config or # make menuconfig (using ncurses-devel)
or # make xconfig (using qt-devel)
# make oldconfig (optional)
# make (-j4)
# make modules
# make modules_install
# make install
'Computers > Adv. Linux System Programming' 카테고리의 다른 글
disagrees about version of symbol module_layout (0) | 2014.10.06 |
---|---|
change sources.list (0) | 2014.05.20 |
ubuntu initrd.img 생성 (0) | 2014.05.01 |
system call / 시스템콜 추가 (0) | 2014.03.10 |
커널 컴파일 / kernel compile (0) | 2014.03.07 |