debugging on board
Sascha Hauer
s.hauer at pengutronix.de
Thu Apr 5 02:33:22 EDT 2012
Hi Gabriel,
On Thu, Apr 05, 2012 at 08:11:47AM +0200, Gabriel Tisan wrote:
> Hi !
>
> What should I do to be able to see any debug messages ? On the serial console I
> could see the Barebox version but after that nothing. I suppose that
> is something
> regarding nand.
This means that your console is already running, a first step can then
be to put a '#define DEBUG' above the includes in common/startup.c. This
will cause the initcalls to be printed which will give you a first clue
where execution stops.
Also you should have the following options enabled:
CONFIG_MMU
ARM_EXCEPTIONS
CONFIG_ARM_UNWIND
CONFIG_KALLSYMS
This gives you a stack dump when something bad happens.
>
> If I have no JTAG debugger what should I do to be able to debug ? For
> other board I
> could not see any messages on console.
That's more difficult. If you have for example a U-Boot as first stage
loader then you can add some register writes to the UART send register
in the early startup code. Otherwise you are stuck with LED debugging
(Just configure a gpio connected to a LED and see where you can still
turn it on)
What machine are you working on?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list