Nov
08

硬件模拟及驱动调试

IBM developWorks 上的两份文章
Debugging simulated hardware on Linux, Part 1: Interrupts and Interrupt Service Routine
Debugging simulated hardware on Linux, Part 2: Device driver debugging

讲述怎样构建模拟环境调试Linux驱动--感觉文笔有点乱,莫非因为作者是印度人?……
概念不算新鲜。第一搞好交叉调试环境,其中target上用 kgdb patch。第二就是作者列出的3个要素方法,用一个kernel thread 调用 INT 产生软中断,用kernel debugger调试,用polling thread 玩极限。
为了用kernel thread 模拟中断源,你得再造待模拟设备的各种特性,包括寄存器等数据结构。所以做完这些,你会发现--作者也坦承--自己好像在搞硬件模拟了。
文章给出了一些过程逻辑,列出的参考资料比较有用。

[tags]driver, programming, linux, kernel[/tags]



Leave a Reply

如果您没注册 Gravatar 的服务,这里会随机选择一张 Flickr 或者 JPG Magazine 的照片作为您的头像哟~~ 已注册了 Gravatar?那自然,您的头像正常显示。
A random picture from Flickr or JPG Magazine will be used as your avatar if you haven't registered Gravatar or use a fake email.





 

Feeds

Global: RSS for International Readers
China: RSS for Readers from China Mainland
Both feeds deliver exactly same content. The second one is provided for readers from China Mainland where FeedBurner is blocked.
如果您的 RSS 阅读器访问 FeedBurner 有困难,可以使用第二个 feed,内容完全一样。

Latest JPG Magazine

By Gabriella PisanoBy Scott PughBy mary mullarkeyBy Gary OTraining DayBy Pepe Salas