U-Boot Debug

U-Boot stores its debug settings in the following file: freelight-u-sdk/u-boot/driver/core/Kconfig.

Prerequisite: Enable the kernel menu for the respective debug option. For details, see Configure Kernel Menu for U-Boot.

DM_DEBUG

Driver model (DM) is a set of unified methods for driver definition and message interfacing. DM provides a set of standard driver-device development models which are very similar to the driver-device models of the Linux kernel.

You can configure the DM_DEBUG option to enable debug messages in the driver model core.

DEBUG_DEVERES

You can configure the DEBUG_DEVRES option to manage the debug functions for device resources. If this option is enabled, the system prints all the DEVRES debug messages. Also, you can use the dm devres command to dump the list of device resources for each devices.

Make sure to select this option if you have a problem with DEVRES or want to debug the resource management for a managed device.

TOOLS_DEBUG

You can configure the TOOLS_DEBUG option to enable debug information on tools. For example, you can enable the generation of debug information on tools including mkimage.

The generated debug information are used for debug purposes only. With the help of these debug information, it is possible to set breakpoints on a particular line, perform single-step debug through the source code, and so on.