summaryrefslogtreecommitdiffstats
path: root/doc/hardware_v7a_riot.rst
blob: a6e236502f1ab5d55e476df2d0589d37b7e28d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
RIoT-Board
================

Boot Media
----------
Use the image ``platform-v7a/images/riotboard.hdimg`` and write it to your SD card.

Set the DIP switches (SW1) accordingly to boot from a full-size SD card (J6
on the bottom) or a Micro SD card (J7 on top):

+-------------------+-----+-----+-----+-----+-----+-----+-----+-----+
| Switch            | D1  | D2  | D3  | D4  | D5  | D6  | D7  | D8  |
+===================+=====+=====+=====+=====+=====+=====+=====+=====+
| Full-size SD (J6) | On  | Off | On  | Off | Off | On  | Off | On  |
+-------------------+-----+-----+-----+-----+-----+-----+-----+-----+
| Micro SD (J7)     | On  | Off | On  | Off | Off | On  | On  | Off |
+-------------------+-----+-----+-----+-----+-----+-----+-----+-----+

Serial Console
--------------
The serial boot console is available at the debug-header J18 at 115200 Baud and 8N1 with the following pinout:

* J18.1: TxD
* J18.2: RxD
* J18.3: GND

Fast development
----------------

For development the RIoT-Board bootloader supports 'fastboot'. Refer
:ref:`fast_development` for Linux and BSP preparation on demand.

RIoT i.MX6S
~~~~~~~~~~~

The BSP already supports 'fastboot' and prepares the target accordingly.
The PARTITION names might differ, so you should check first, what PARTITIONs
are exported.

To get the exported PARTITION names, available via 'fastboot', you can run::

   $ fastboot getvar all
   (bootloader) version: 0.4
   (bootloader) bootloader-version: barebox-2023.02.1
   (bootloader) max-download-size: 8388608
   (bootloader) partition-size:mmc1: 00000000
   (bootloader) partition-type:mmc1: unavailable
   (bootloader) partition-size:mmc2: 00000000
   (bootloader) partition-type:mmc2: unavailable
   (bootloader) partition-size:mmc3: e5000000
   (bootloader) partition-type:mmc3: basic
   (bootloader) partition-size:ram-kernel: 00000000
   (bootloader) partition-type:ram-kernel: file
   (bootloader) partition-size:ram-initramfs: 00000000
   (bootloader) partition-type:ram-initramfs: file
   (bootloader) partition-size:ram-oftree: 00000000
   (bootloader) partition-type:ram-oftree: file
   (bootloader) partition-size:bbu-emmc: 000e0000
   (bootloader) partition-type:bbu-emmc: basic

In this example, the PARTITION names are 'mmc1', 'mmc2', 'mmc3', 'ram-kernel',
'ram-initramfs', 'ram-oftree' and 'bbu-emmc'. In this example the two possible
SD cards are not plugged in (e.g. "unavailable").

.. note:: You need to restart the fastboot usbgadget, if you probe the SD cards
          later on.

Just connect the USB OTG connector to your host and run::

   $ fastboot flash ram-kernel platform-v7a/images/linuximage -S 1
   $ fastboot flash ram-oftree platform-v7a/images/imx6dl-riotboard.dtb -S 1
   $ fastboot flash ram-initramfs platform-v7a/images/root.cpio.gz -S 1
   $ fastboot oem exec -- boot ram-fastboot

You can populate local memory like the eMMC as well. But only full memory
devices and no particular partitions.

If inserted, the regular SD card::

   $ fastboot flash mmc1 platform-v7a/images/riotboard.hdimg -S 1

If inserted, the µSD card::

   $ fastboot flash mmc2 platform-v7a/images/riotboard.hdimg -S 1

The built-in eMMC::

   $ fastboot flash mmc3 platform-v7a/images/riotboard.hdimg -S 1

.. note:: If you have no USB connection to the RIoT i.MX6S, you can use
          a network connection instead. Just run all the 'fastboot' commands
          shown above with the additional option '-s udp:<RIoT i.MX6S IP address>'.