beautypg.com

Linux kernel and driver debugging prerequisites – Altera SoC Embedded Design Suite User Manual

Page 91

background image

Online ARM DS-5 Documentation

The ARM DS-5 Altera Edition reference material can be accessed online on the documentation page of

the ARM website (www.arm.com); and from Eclipse by navigating to Help > Help Contents > ARM

DS-5 Documentation.

Getting Started with Linux Kernel and Driver Debugging

The ARM DS-5 Altera Edition provides very powerful Linux Kernel and Driver debugging capabilities.
This section presents an example on of how to debug the Linux kernel and drivers using DS-5. The

software engineers can use the dedicated Linux debugging features presented in this section together with

the basic debugging features such as viewing registers, inspecting variables and setting breakpoints.
Note: In the scenario presented here the Linux kernel is already running on the board, but it can also be

downloaded through the debugger.

Note: This scenario uses the pre-built Linux images and Linux source code included in the SoC EDS.

These are examples only; use the latest sources from the Rocketboards website for development.

Note: This section uses a Linux host computer, as can be seen from the screenshots and the issued

commands. However, the scenario can also be run on a Windows machine, although it is not usual

for Linux development to be done on Windows.

Note: The paths presented in this section assume the default installation paths were used. Adjust

accordingly if non-standard location is used.

Related Information

ARM DS-5 Altera Edition

on page 5-1

For more information, refer to the ARM DS-5 Altera Edition section.

Online ARM DS-5 Documentation

The ARM DS-5 Altera Edition reference material can be accessed online on the documentation page of

the ARM website (www.arm.com); and from Eclipse by navigating to Help > Help Contents > ARM

DS-5 Documentation.

Rocket Boards

For more information about Linux, refer to the Rocketboards website.

Linux Kernel and Driver Debugging Prerequisites

• Make sure the desired Linux kernel version is already running on the board. See the Getting Started

with Running Linux section for instructions on how to run the provided Linux binaries on the board.

• Make sure the Linux kernel executable file is accessible on the host computer. The kernel executable

for the pre-built Linux image is located at

/embeddedsw/socfpga/prebuilt_

images/vmlinux

.

• Make sure the source code corresponding to the kernel running on the board are accessible on the host

computer. The sources for the pre-built Linux image can be obtained by:

4-72

Getting Started with Linux Kernel and Driver Debugging

ug-1137

2014.12.15

Altera Corporation

Getting Started Guides

Send Feedback