QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 907|回复: 4

求助!安装kdb-v4.4-2.6.9-common-失败!

[复制链接]
发表于 2005-6-28 13:56:49 | 显示全部楼层 |阅读模式
本来打算安装kdb进行内核调试,但是Magic linux 1。2发行版本上安装不成功。
下面是我安装的步骤:
1。patch -p1 <kdb-v4.4-2.6.9-common-2
提示信息中有两个地方有fail,已经用红色字体标出。
patching file Documentation/kdb/dump.txt
patching file Documentation/kdb/kdb.mm
patching file Documentation/kdb/kdb_bp.man
patching file Documentation/kdb/kdb_bt.man
patching file Documentation/kdb/kdb_env.man
patching file Documentation/kdb/kdb_ll.man
patching file Documentation/kdb/kdb_md.man
patching file Documentation/kdb/kdb_ps.man
patching file Documentation/kdb/kdb_rd.man
patching file Documentation/kdb/kdb_sr.man
patching file Documentation/kdb/kdb_ss.man
patching file Documentation/kdb/slides
patching file Makefile
patching file drivers/char/keyboard.c
Hunk #1 succeeded at 41 (offset 1 line).
Hunk #2 FAILED at 1075.
1 out of 2 hunks FAILED -- saving rejects to file drivers/char/keyboard.c.rej
patching file drivers/serial/8250.c
Hunk #1 succeeded at 43 (offset 1 line).
Hunk #3 succeeded at 2019 (offset 10 lines).
patching file drivers/serial/sn_console.c
patching file fs/proc/proc_misc.c
patching file include/linux/console.h
patching file include/linux/dis-asm.h
patching file include/linux/kdb.h
patching file include/linux/kdbprivate.h
patching file include/linux/sysctl.h
Hunk #1 FAILED at 134.
1 out of 1 hunk FAILED -- saving rejects to file include/linux/sysctl.h.rej
patching file init/main.c
Hunk #1 succeeded at 65 (offset 1 line).
Hunk #3 succeeded at 577 (offset 8 lines).
patching file kdb/ChangeLog
patching file kdb/Makefile
patching file kdb/kdb_bp.c
patching file kdb/kdb_bt.c
patching file kdb/kdb_cmds
patching file kdb/kdb_id.c
patching file kdb/kdb_io.c
patching file kdb/kdbmain.c
patching file kdb/kdbsupport.c
patching file kdb/modules/Makefile
patching file kdb/modules/kdbm_pg.c
patching file kdb/modules/kdbm_task.c
patching file kdb/modules/kdbm_vm.c
patching file kernel/exit.c
Hunk #2 succeeded at 868 (offset 12 lines).
patching file kernel/kallsyms.c
patching file kernel/module.c
Hunk #1 succeeded at 2158 (offset 12 lines).
patching file kernel/printk.c
Hunk #1 succeeded at 376 (offset 3 lines).
patching file kernel/sched.c
Hunk #1 succeeded at 4847 (offset 80 lines).
patching file kernel/signal.c
Hunk #1 succeeded at 2679 (offset 1 line).
patching file kernel/sysctl.c
Hunk #3 succeeded at 2220 (offset 24 lines).
patching file mm/hugetlb.c
patching file mm/memory.c
Hunk #1 succeeded at 1839 (offset 16 lines).
patching file mm/swapfile.c
Hunk #2 succeeded at 1615 (offset 1 line).

2。patch -p1 <kdb-v4.4-2.6.9-i386-1
一切正常
patching file arch/i386/Kconfig.debug
patching file arch/i386/Makefile
Hunk #1 succeeded at 49 (offset 2 lines).
Hunk #2 succeeded at 111 with fuzz 2.
patching file arch/i386/kdb/ChangeLog
patching file arch/i386/kdb/Makefile
patching file arch/i386/kdb/i386-dis.c
patching file arch/i386/kdb/kdb_cmds
patching file arch/i386/kdb/kdba_bp.c
patching file arch/i386/kdb/kdba_bt.c
patching file arch/i386/kdb/kdba_id.c
patching file arch/i386/kdb/kdba_io.c
patching file arch/i386/kdb/kdbasupport.c
patching file arch/i386/kdb/pc_keyb.h
patching file arch/i386/kernel/entry.S
Hunk #2 succeeded at 614 (offset 4 lines).
patching file arch/i386/kernel/i8259.c
patching file arch/i386/kernel/io_apic.c
Hunk #2 succeeded at 1135 (offset 1 line).
patching file arch/i386/kernel/reboot.c
patching file arch/i386/kernel/smp.c
patching file arch/i386/kernel/smpboot.c
patching file arch/i386/kernel/traps.c
patching file arch/i386/kernel/vmlinux.lds.S
patching file include/asm-i386/ansidecl.h
patching file include/asm-i386/bfd.h
patching file include/asm-i386/kdb.h
patching file include/asm-i386/kdbprivate.h
patching file include/asm-i386/kmap_types.h
patching file include/asm-i386/mach-default/irq_vectors.h
patching file include/asm-i386/ptrace.h
patching file kdb/modules/kdbm_x86.c

因为有两个地方rej了,当进入make menuconfig 后无法看到Built-in Kernel Debugger support的选项。

请Magic linux发行版制作的大侠指点一下,如何解决此问题。
发表于 2005-6-28 14:12:41 | 显示全部楼层
按照patch的内容,手动打补丁。
回复

使用道具 举报

 楼主| 发表于 2005-6-28 17:14:55 | 显示全部楼层
已经手工打了补丁,但是在make menuconfig的kernel选项中仍然无法显示Built-in Kernel Debugger support选项,我认为应该是启动menuconfig的时候没有载入打过patch的配置文件。

我检查/arch/i386下面已经有Kconfig.debug文件,并且已经有Kernel Debugger的选项。

在启动make menuconfig有此句:
scripts/kconfig/mconf arch/i386/Kconfig
#
# using defaults found in /boot/config-2.6.9
#

请问还要如何修改配置,让在menuconfig中显示此选项。
回复

使用道具 举报

发表于 2005-6-28 18:51:03 | 显示全部楼层
patch 如果有这种错误,基本上可以认为已经 patch 失败。
你需要找有针对性的版本,因为 ML 的 kernel 是打过补丁的,补丁落补丁肯定会有问题。
回复

使用道具 举报

 楼主| 发表于 2005-6-29 10:01:28 | 显示全部楼层
手工打补丁后,再加上kdb已经可以正常编译内核。

原来在kernel hack的选项,要先选上kernel的选项才会出现Built-in Kernel Debugger support等等选项。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-26 04:22 , Processed in 0.052479 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表