我搭建的环境为:主板采用beagleboard,linux采用linux-3.2.0-psp04.06.00.08.sdk,JTAG采用xds100v2
在编译内核时,选中如下的选项
-
- EnableKernel hacking –>Compile the kernel with debug info
- Also, if the kernel is in experimental mode, you should enable the option below:
- Kernel hacking —>Enable stack unwinding support
- To check if the kernel is in this mode, check if the option below is enabled.
- General Setup —>Prompt for development and/or incomplete code/drivers
Note: for kernel 3.1.0 and above, there is an additional option that must be set:
-
- Kernel Hacking —>Enable JTAG clock for debugger connectivity
Note: for kernel 3.2.0, the optionEnable stack unwinding support shown above is only available if the kernel is built with ARM EABI support. To enable it, go to:
-
- Kernel Features —>Use the ARM EABI to compile the kernel
Note: for kernel 3.2.0, the optionCompile the kernel with debug info shown above is only available if the optionKernel Debugging is enabled. To do it, go to:
-
- Kernel hacking —>Kernel Debugging
以上的部份是从ti网站上抄着做的,我详细说一下我在ccs中构建*.ccmxl文件,构建内容如下:
-
在debug configurations中的配置如下:
-
然后连上XSD100,点击debug,CCS中出现如下画面
-
同时用超级终端监控,超级终端出现如下:
-
我的感觉它是停在了uboot的入口的这个地方,但是如果我点击resume ,则beagleboard将会很顺畅的执行下去,直到am335x-evm login:的出现
-
请各位高手们帮我诊断一下,看我的问题出在那儿了,谢谢
-
在这儿回复也行,或回到我邮箱jxl_heaven@163.com 也可以,谢谢
Gary Wu:
你好!请参考如下链接中的步骤进行确认。
http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_the_SDK
xiulin jiang:
回复 Gary Wu:
谢谢,这个是调试基于linux的应用程序的哈,不是告之如何调试linux内核工业的哎
Tuff Li:
回复 xiulin jiang:
Here you go:
http://www.compel.ru/wordpress/wp-content/uploads/2012/10/sitara_boot_camp_uboot_linux_kernel_debug_using_ccsv5.pdf