Difference between revisions of "Debugging OMAP kernel"
From eLinux.org
Adushistova (Talk | contribs) |
|||
| Line 21: | Line 21: | ||
Optionally if you have a JTAG console, you can use CONFIG_DEBUG_ICEDCC | Optionally if you have a JTAG console, you can use CONFIG_DEBUG_ICEDCC | ||
instead LL_DEBUG_UART. | instead LL_DEBUG_UART. | ||
| + | |||
| + | [[Category:Development Tools]] | ||
| + | [[Category:Tips and Tricks]] | ||
Latest revision as of 09:48, 27 October 2011
Use early printk
Starting with v2.6.33-rc, early printk works on ARM. Recent earlier kernels should work if you apply commit 93fd03a8c6728b58879f8af20ffd55d9c32a778b.
To use the earlyprintk, just do the following:
1. Make sure you have the necessary .config options set
CONFIG_DEBUG_LL=y CONFIG_EARLY_PRINTK=y CONFIG_OMAP_LL_DEBUG_UART1=y
- CONFIG_OMAP_LL_DEBUG_UART2 is not set
- CONFIG_OMAP_LL_DEBUG_UART3 is not set
The LL_DEBUG_UART above is typically 1, but it's 3 on Nokia boards.
2. Edit the kernel CMDLINE in your .config to have "debug earlyprintk"
Optionally if you have a JTAG console, you can use CONFIG_DEBUG_ICEDCC instead LL_DEBUG_UART.