[U-Boot] POST related question

Michael Zaidman michael.zaidman at gmail.com
Wed Feb 10 10:59:38 CET 2010


Hello,

Working on the POST for our board (which I am going to submit
to the u-boot in the near future) I was asked to output the POST tests
sequence progress to the dedicated LEDs (current test’s index and
test’s result – PASS or FAIL) in addition to the conventional console
output. Such indication can be helpful at the customer premises when
console is not available as well as at the production testing/diagnostics
to understand which POST test has failed while serial console does not
show signs of life.
In order to fulfill this requirement I see two possibilities:

1) Common infrastructure change - add pre-test and after test callbacks
 to the post_test structure in the tests.c file. Call these callbacks
 before and after each POST test in the post_run_single routine of post.c file.

2) Local, board specific change – duplicate all necessary POST tests into
specific board folder and add output to LEDs interface into every
xxxx_post_test routine.

Please advise.

Thanks,
Michael


More information about the U-Boot mailing list