需要的环境

(1)Source Insight 4.0
(2) S5P6818 的嵌入式平台
(3)Ubuntu16.04 操作环境
(4)GEC6818的内核源码

阅读内核源码

  1. 打开Source Insight 4.0

  2. 工具栏Options-> File Type Options
    字符驱动开发(环境准备)
    3.在对应选项的File Filter下修改以下内容:
    (1) x86 Asm source file ---->.asm;.inc;.s;.S
    (2) c source file —>.c;.h;.s;.S
    字符驱动开发(环境准备)

  3. 新建工程,选择文件保存路径,最后到“Add and Remove Project Files”
    4字符驱动开发(环境准备)

  4. 选中图中3个文件,Add Tree,关闭“Add and Remove Project Files”

  5. 这时就可以阅读kernel了

  6. 最后同步
    (1)Project—>Synchronize Files
    (2)字符驱动开发(环境准备)

  7. 点击start

  8. 最后可以快速找到函数了。

相关文章: