X hits on this document

Powerpoint document

Using a JTAG in Linux Driver Debugging - page 33 / 48

131 views

0 shares

0 downloads

0 comments

33 / 48

04/16/2008 - Copyright © 2008 The PTR Group Inc.

CELF-2008-SVC-33

JTAG and Early Kernel Debug

An odd thing happens when the MMU is enabled

All of the physical addresses suddenly get translated into virtual addresses

The kernel’s debug symbols are all built assuming a virtual address space

You’ll need to turn debugging symbols on in the kernel

Consequently, while you can step through the early code by using a hardware breakpoint address, software breakpoint on symbols will only work after the MMU is enabled

Fortunately, this happens fairly early in the kernel initialization

You can typically tell the JTAG to step so many instructions and then stop again

Step past the MMU initialization, stop and then set additional breakpoints

Document info
Document views131
Page views131
Page last viewedSat Dec 10 06:18:18 UTC 2016
Pages48
Paragraphs607
Words3505

Comments