summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-11-20 19:56:27 +0300
committerTom Rini <trini@konsulko.com>2022-11-21 17:23:00 +0300
commit9c2d4057e1d0df8a14aa920d29dafdd4fe0115fc (patch)
tree6a3b333ec7f2b414b14f0ed95e61144b86f537c2 /doc
parent04bb5e95bed2ffd9e788a76b9f6ae52de58bc6b4 (diff)
downloadu-boot-9c2d4057e1d0df8a14aa920d29dafdd4fe0115fc.tar.xz
Nokia RX-51: Document debugging options and compile command
Add example command how to compile U-Boot and add new documentation section describing how to enable early debug UART and verbose log output for N900. Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/board/nokia/rx51.rst32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/board/nokia/rx51.rst b/doc/board/nokia/rx51.rst
index 7c6647bce2..93502e2dfc 100644
--- a/doc/board/nokia/rx51.rst
+++ b/doc/board/nokia/rx51.rst
@@ -9,6 +9,10 @@ on a real N900. It does very little hardware configuration because NOLO has
already configured the board. It is only needed to enable the internal eMMC
memory via the twl4030 regulator which is not enabled by NOLO.
+.. code-block:: bash
+
+ make CROSS_COMPILE=arm-linux-gnueabi- nokia_rx51_defconfig u-boot.bin
+
NOLO is expecting a kernel image and will treat any image it finds in
OneNAND as such. This u-boot is intended to be flashed to the N900 like
a kernel. In order to transparently boot the original kernel, it will be
@@ -160,6 +164,34 @@ UBIFS support add following lines into file ``configs/nokia_rx51_defconfig``::
CONFIG_CMD_UBIFS=y
CONFIG_MTD_UBI_BEB_LIMIT=10
+Early output
+------------
+
+Early U-Boot output can be enabled on serial console by adding following lines
+into file ``configs/nokia_rx51_defconfig``::
+
+ CONFIG_DEBUG_UART=y
+ CONFIG_DEBUG_UART_OMAP=y
+ CONFIG_DEBUG_UART_SHIFT=2
+ CONFIG_DEBUG_UART_BASE=0x49020000
+ CONFIG_DEBUG_UART_CLOCK=48000000
+
+Note that early output is not available on USB tty console.
+
+Verbose debug output
+--------------------
+
+Verbose debug output with maximal log level can be enabled by adding following
+lines into file ``configs/nokia_rx51_defconfig``::
+
+ CONFIG_DM_DEBUG=y
+ CONFIG_LOG=y
+ CONFIG_LOGLEVEL=9
+ CONFIG_LOG_MAX_LEVEL=9
+ CONFIG_LOG_DEFAULT_LEVEL=9
+
+And compiling U-Boot by additional make parameter ``KCPPFLAGS=-DLOG_DEBUG``.
+
Run in QEMU
-----------