安装步骤:
1.下载装源代码:
https://www.kernel.org/
找到 https://www.kernel.org/pub/ 链接
查找linux->kernel->v2.6->linux-2.6.32.tar.bz2
2.拖动虚拟机 放到目录 /usr/src/kernels/下解压 为 linux -3.2.26.
3 .配制内核
1. yum install ncurses-devel.x86_64
2. 打补丁utrace, (补丁下载 https://web.elastic.org/~fche/frob-utrace/)
3. 补丁安装.
[[email protected] kernels]# ls -al -- -rw-r--r-- 1 root root 12078 Sep 18 07:05 tracehook.patch -rw-r--r-- 1 root root 149494 Sep 18 07:05 utrace.patch -rwxrw-rw- 1 root root 47352 Sep 18 07:05 utrace-ptrace.patch [[email protected] linux-2.6.32]# patch -p1 <../tracehook.patch patching file arch/powerpc/include/asm/ptrace.h patching file arch/powerpc/kernel/traps.c patching file arch/s390/kernel/traps.c patching file arch/x86/include/asm/ptrace.h patching file arch/x86/kernel/ptrace.c patching file include/linux/ptrace.h patching file include/linux/sched.h patching file include/linux/tracehook.h patching file kernel/ptrace.c patching file kernel/signal.c [[email protected] linux-2.6.32]# [[email protected] linux-2.6.32]# patch -p1 <../utrace.patch patching file Documentation/DocBook/Makefile patching file Documentation/DocBook/utrace.tmpl patching file fs/proc/array.c patching file include/linux/sched.h patching file include/linux/tracehook.h patching file include/linux/utrace.h patching file init/Kconfig patching file kernel/Makefile patching file kernel/fork.c patching file kernel/ptrace.c patching file kernel/utrace.c [[email protected] linux-2.6.32]# [[email protected] linux-2.6.32]# patch -p1 <../utrace-ptrace.patch patching file include/linux/ptrace.h patching file kernel/Makefile patching file kernel/ptrace-utrace.c patching file kernel/ptrace.c patching file kernel/utrace.c
时间: 2024-09-30 14:12:02