This section describes setting up OS aware debug for a Zynq board running Linux from an SD card, using the Vitis IDE. It is assumed that users are aware of setting up a JTAG connection to the board, building Linux kernel and booting it from an SD card. For details on how to set up the kernel debug, refer to Attach and Debug using AMD System Debugger.
- Compile the kernel source using the following configuration
options:
CONFIG_DEBUG_KERNEL=y CONFIG_DEBUG_INFO=y
- Launch the Vitis software platform.
- Click .
- Click .
- In the Debug Configurations page, select Single Application Debug and click the New button ().
- Click Debug.
- Debugging begins, with the processors in the running state.
- Select the Enable Linux OS Awareness option from the Debug view in the processor context.
- You can also perform the following actions from the menu that
appears.
- Refresh OSA Processes: Select this option to refresh the list of running processes.
- Auto refresh on exec: When selected, all the running processes are refreshed and seen in the Debug view. When not selected, new processes are not visible in the debug view.
- Auto refresh on suspend: When selected, all the processes will be re-synced whenever the processor suspends. When not selected, only the current process is re-synced.
- Linux OSA File Selection: Select this option to change the symbol file.
- Alternatively, OS aware debugging can also be enabled using the
-osa
command in the Xilinx System Debugger (XSDB) command-line console.osa -file <symbol-file> -fast-step -fast-exec