AR# 51128

|

Zynq-7000 Debug - How do I debug the Linux kernel using Lauterbach T32?

描述

How do I debug the Linux kernel 3.3 using Lauterbach T32?

解决方案

The following is needed to debug the Linux kernel 3.3 using Lauterbach T32.

From Lauterbach, the Linux Awareness package should be present in the TRACE32 installation directory under demo/arm/kernel/linux.

From git.xilinx.com, the Linux repository compiled with the the following "debug" selection: "Kernel hacking -> Compile the kernel with debug info"  has to be enabled.

From Lauterbach, the startup practice script that you can find at http://www.lauterbach.com/scripts.html.

This is what the script does:

- Connect to Zynq
- Download vmlinux
- Download devicetree.dtb
- Download ramdisk image
- Load Linux kernel symbols
- Initialize the MMU
- Initialize Linux Awareness
- Start Linux

Note: Before running the Linux kernel, FSBL and U-boot need to run on the board (for example to initialize DDR). You could copy a BOOT.bin containing FSBL+U-boot on a SD card, boot from it and stop at u-boot prompt.

链接问答记录

主要问答记录

Answer Number 问答标题 问题版本 已解决问题的版本
50863 Zynq-7000 SoC - 调试 N/A N/A
52599 Zynq-7000 SoC - Operating Systems Development N/A N/A
AR# 51128
日期 05/18/2018
状态 Active
Type 综合文章
器件
Tools
Boards & Kits
People Also Viewed