设备驱动程序编程-Linux2.6.10-kdb安装-32位

发布时间:2026/10/14 4:49:07
设备驱动程序编程-Linux2.6.10-kdb安装-32位 [roottom linux-2.6.10-kdb]# uname -m i686 [roottom linux-2.6.10-kdb]#命名下sed -i s/^CONFIG_LOCALVERSION.*/CONFIG_LOCALVERSION-kdb/ .configcheck[roottom linux-2.6.10-kdb]# grep ^CONFIG_LOCALVERSION .config CONFIG_LOCALVERSION-kdb [roottom linux-2.6.10-kdb]# make kernelrelease make: *** No rule to make target kernelrelease. Stop. [roottom linux-2.6.10-kdb]# grep UTS_RELEASE include/linux/version.h grep: include/linux/version.h: No such file or directory [roottom linux-2.6.10-kdb]# head -n 10 Makefile | grep -E ^(VERSION|PATCHLEVEL|SUBLEVEL|EXTRAVERSION) VERSION 2 PATCHLEVEL 6 SUBLEVEL 10 EXTRAVERSION [roottom linux-2.6.10-kdb]#编译适配#ifdef CONFIG_KPROBES fastcall int do_int3(struct pt_regs *regs, long error_code) { #ifdef CONFIG_KDB if (kdb(KDB_REASON_BREAK, error_code, regs)) return 1; /* KDB 已处理返回 */ #endif if (notify_die(DIE_INT3, int3, regs, error_code, 3, SIGTRAP) NOTIFY_STOP) return 1; restore_interrupts(regs); do_trap(3, SIGTRAP, int3, 1, regs, error_code, NULL); return 0; } #endif编译完成LD [M] sound/synth/snd-util-mem.ko LD [M] sound/usb/snd-usb-audio.ko LD [M] sound/usb/snd-usb-lib.ko LD [M] sound/usb/usx2y/snd-usb-usx2y.ko [roottom linux-2.6.10-kdb]# head -n 10 Makefile | grep -E ^(VERSION|PATCHLEVEL|SUBLEVEL|EXTRAVERSION) VERSION 2 PATCHLEVEL 6 SUBLEVEL 10 EXTRAVERSION [roottom linux-2.6.10-kdb]# grep UTS_RELEASE include/linux/version.h #define UTS_RELEASE 2.6.10-kdb [roottom linux-2.6.10-kdb]#调试[roottom ~]# echo t /proc/sysrq-trigger #控制台有输出 sysrq功能ok [roottom ~]# grep -i kdb /proc/kallsyms | head -10 c0103e80 T kdb_call c01062d0 T kdba_irq_ctx_type c0116170 T smp_kdb_stop c0120c50 T kdb_cpu_curr c0123270 T kdb_syslog_data c012a6d0 t proc_do_kdb c012fdc0 T kdb_send_sig_info c013cc40 T kdb_walk_kallsyms c0154200 T kdb_follow_page c015d0b0 T kdb_si_swapinfo [roottom ~]# dmesg | grep -i kdb Linux version 2.6.10-kdb (roottom.turing) (gcc version 3.4.6) #2 SMP Mon Jul 6 11:55:21 CST 2026 Kernel command line: ro rootLABEL/ selinux0 kdbon kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights Reserved inserting floppy driver for 2.6.10-kdb [roottom ~]# ls -l /proc/sys/kernel/kdb -rw-r--r-- 1 root root 0 Jul 6 12:08 /proc/sys/kernel/kdb [roottom ~]# cat /proc/sys/kernel/kdb 1 [roottom ~]# find /sys -name *kdb* 2/dev/null [roottom ~]# grep CONFIG_KDB_SYSRQ b binutils-2.16.1/ binutils-2.16.1.tar.bz2 build_linux/ [roottom ~]# grep CONFIG_KDB_SYSRQ build_linux/linux-2.6.10-kdb/.config [roottom ~]#

关于本文作者

来自尧图内容编辑团队

尧图内容编辑团队 内容团队

尧图内容编辑团队

本文由尧图网络内容编辑团队执笔。团队由资深项目经理、前端工程师与设计师组成,所有内容均来自亲手交付的真实项目,先讲清问题、再给出可落地的解法。尧图深耕北京网站建设十年,服务过京华建材集团、智造科技等各行业客户,把一线经验沉淀为可复用的行业观察。

  • 十年建站经验,覆盖建材、制造、服务、文创等
  • 项目经理把关选题与事实准确性
  • 工程师与设计师联合撰写专业细节
  • 统一编辑规范,保证文风与排版一致
  • 每月复盘转化数据,迭代选题方向

延伸阅读

相关资讯与近期热门内容

深度阅读推荐

建站决策前值得细读的三篇

网站改版的5个关键决策
2024-08-12

网站改版的5个关键决策

什么时候该改版、改到什么程度、如何避免流量掉光,京华建材集团改版复盘给出答案。

获取专属建站方案

看完文章,把您的行业与预算告诉我们,免费获取一份量身定制的官网建设方案与报价。

立即免费咨询