Debugging Linux Kernel with CodeWarrior for PA

Document created by Yiping Wang Employee on Jun 21, 2016Last modified by Diana Torres on Feb 28, 2017
Version 2Show Document
  • View in full screen mode

This document discusses how to use CodeWarrior for PA to debug Linux Kernel on QorIQ PowerPC platforms. It describes how to configure and build Linux Kernel to support CodeWarrior debugging, how to configure CodeWarrior IDE settings to prepare for Linux Kernel debugging, how to debug Linux Kernel in different booting up stages starting from attaching to the running u-boot.

 

1. Build Linux Kernel for Debugging

 

2. Create CodeWarrior Project and Set Attach Launch Configuration for debugging

2.1 Import Vmlinux to Create a CodeWarrior project

2.2 Configure the Attach Launch Configuration

 

3. Debugging Linux Kernel by Attaching to a Running U-Boot

3.1 Debugging Linux Kernel at the entry point

3.2 Debugging the Kernel before the MMU is Enabled

3.3 Debugging the Kernel after the MMU is Enabled

Outcomes