Knowledge Base Article

How can I print more debug information from U-boot?

Description

In the normal U-boot boot process,a limited amount of information is printed to the console.For debug purposes,there are several ways to print out more messages.

Resolution

To enable more messages you can either:

  • Using debug_cond (cond, fmt, args...): if you define some cond, once it is met, the U-boot will print out this message.
  • Using debug(fmt, args...): you can define DEBUG in the file u-boot-socfpga/include/configs/socfpga_common.h, once do that and recompile the code, the U-boot will print out all debug message.

Note:  If you put too much debug into the code, it might make u-boot hang up.

Updated 3 months ago
Version 2.0
No CommentsBe the first to comment