boards: doc: Add programming tabs for mimx8mq_evk

Improve documentation by putting programming methods into tabs.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
This commit is contained in:
Jeppe Odgaard 2023-10-09 09:40:16 +02:00 committed by Fabio Baltieri
parent 137097f5c3
commit 24085d05e6

View file

@ -140,48 +140,48 @@ The available configurations are:
Load and run Zephyr on M4 from A53 using u-boot.
From an SD card:
.. tabs::
Copy the compiled ``zephyr.bin`` to the first FAT partition of the
SD card and plug the SD card into the board. Power it up and stop the u-boot
execution at prompt.
.. group-tab:: From an SD card
Copy the compiled ``zephyr.bin`` to the first FAT partition of the
SD card and plug the SD card into the board. Power it up and stop the u-boot
execution at prompt.
Load the M4 binary onto the desired memory and start its execution using:
Load the M4 binary onto the desired memory and start its execution using:
.. code-block:: console
.. code-block:: console
fatload mmc 0:1 0x40480000 zephyr.bin
cp.b 0x40480000 0x7e0000 0x8000
bootaux 0x7e0000
fatload mmc 0:1 0x40480000 zephyr.bin
cp.b 0x40480000 0x7e0000 0x8000
bootaux 0x7e0000
From serial:
.. group-tab:: From serial
This procedure requires ``screen`` and ``lrzsz`` to be installed.
This procedure requires `screen` and `lrzsz` to be installed.
Start ``screen``, power up the board, and stop the u-boot execution at prompt:
Start ``screen``, power up the board, and stop the u-boot execution at prompt:
.. code-block:: console
.. code-block:: console
screen <tty-device> 115200
screen <tty-device> 115200
Start ``loadx`` with offset ``7e0000``:
Start ``loadx`` with offset ``7e0000``:
.. code-block:: console
.. code-block:: console
loadx 7e0000 115200
loadx 7e0000 115200
Send the compiled ``zephyr.bin`` with ``sx`` by pressing :kbd:`Ctrl-a` followed by :kbd:`:`
and write:
Send the compiled ``zephyr.bin`` with ``sx`` by pressing Ctrl-a followed by ':'
and write:
.. code-block:: console
.. code-block:: console
exec !! sx </full/path/to/zephyr.bin>
exec !! sx </full/path/to/zephyr.bin>
Start execution:
Start execution:
.. code-block:: console
.. code-block:: console
bootaux 0x7e0000
bootaux 0x7e0000
Debugging
=========