Chinaunix首页 | 论坛 | 博客
  • 博客访问: 428339
  • 博文数量: 123
  • 博客积分: 2686
  • 博客等级: 少校
  • 技术积分: 1349
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-23 22:11
文章分类
文章存档

2012年(3)

2011年(10)

2010年(100)

2009年(10)

我的朋友

分类: LINUX

2010-09-28 19:50:53

In newest kernel 2.6.35+, kdb and kgdb have been merged in source tree. So it is very convenient to install kdb and kgdb. What you have to do is configuring and recompiling your kernel.

Here is my configuration.

Platform: Ubuntu 10.0.4
Kernel version: 2.6.35.4
Two PC: one is target machine running kernel, one is host for running kdb.
Other: one serial line, and usbTOserial line.

STEP 1: connect two PC using serial lines. My host machine is notebook, target machine is desktop. usbToserial line plug in my notebook. Be care of choosing serial line.

STEP 2: test serial connection. Executing command "minicom" in both machines. Now, if serial connection is correct, what you typed in one machine will display in another machine.

STEP 3: configure and compile kernel. The most powerful documentation is here:
, follow it, you will succeed.

STEP 4: using kdb. Maybe there is something problem. You must open minicom in both machine when you choose minicom to trigger kernel debug mode. Of course, you can choose other ways depicted in .
阅读(944) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-09-29 11:32:02

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com