Skip to content

Commit 1abc986

Browse files
authored
Merge e655b6f into 19aad30
2 parents 19aad30 + e655b6f commit 1abc986

File tree

1 file changed

+38
-10
lines changed

1 file changed

+38
-10
lines changed

docs/products/adsp/setup.rst

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,48 @@ For example, for the ICE-1000 and ADZS-SC589-EZLITE run the following:
4141
Boot U-Boot Proper
4242
------------------
4343

44-
In another terminal either ``cd`` into the extracted release archive or the
45-
appropriate build output directory when building from source. Then load and run
46-
the two U-Boot stages using ``gdb``. Note that Debian and Ubuntu ship
47-
multi-architecture GDB support in a separate package.
48-
49-
After loading U-Boot SPL wait 2-3 seconds to allow SPL to complete execution
50-
before interrupting it with ``^C``.
44+
To debug both U-Boot SPL and U-Boot proper using GDB, one need to install
45+
`gdb-multiarch` on Debian or Ubuntu systems:
5146

5247
.. code-block:: console
5348
5449
sudo apt-get install -y gdb-multiarch
50+
51+
In the terminal, ``cd`` into the extracted release archive or the appropriate
52+
build output directory. Then start GDB and run the following commands to load
53+
and run both U-Boot stages.
54+
55+
.. code-block:: console
56+
5557
gdb-multiarch
5658
(gdb) load u-boot-spl
57-
(gdb) c
58-
^C
59+
(gdb) set pagination off
60+
(gdb) file u-boot-spl
61+
(gdb) target remote :3333
62+
(gdb) tbreak board_init_r
63+
(gdb) load
64+
(gdb) continue
5965
(gdb) load u-boot
60-
(gdb) c
66+
(gdb) continue
67+
68+
To automate this, we can save the commands above into a file
69+
``debug-uboot.gdb`` and launch GDB with:
70+
71+
.. code-block:: console
72+
73+
gdb-multiarch -x debug-uboot.gdb
74+
75+
Boot Linux
76+
----------
77+
78+
Once U-Boot Proper is running and a U-Boot prompt is accessible over serial it
79+
is possible to load and boot Linux.
80+
81+
In a new terminal ``cd`` into the extracted release archive and run a web
82+
server (e.g. ``python -m http.server``).
83+
84+
In the console of U-Boot, we can load images as:
85+
.. code-block:: console
86+
87+
=> dhcp
88+
=> wget ${<memory-addr>} <host-ip-addr>:/<path-to-image>

0 commit comments

Comments
 (0)