blob: bdaa0880ae7a09e82b339a85e256347193c0d476 (
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
|
Embest MarS Board
=================
Board comes with:
* 1G DDR3 SDRAM
* 4G eMMC
* 2M SPI-NOR Flash
Layout::
.-----------------------------------------------------.
|O OTG-->| V | O|
| SW1 USB '---' .--|
| .-----------. v.---. .->| <|
| | | 1|o--| O | `--|
| | i.MX6Dual | 2|--o| N Debug |
| | SoC | `---' USB |
| | | |
| `-----------' |
| |
| |
| |
| |
|O O|
`-----------------------------------------------------'
Boot Configuration
==================
DIP Switch ``SW1`` on the board can be used to set ``BOOT_MODE1`` and
``BOOT_MODE0`` going to the i.MX6:
Set ``SW1 = 01`` for serial boot::
SW1
v.---.
1|o--| O
2|--o| N
`---'
Set ``SW1 = 10`` for internal (SPI-NOR Flash) boot::
SW1
v.---.
1|--o| O
2|o--| N
`---'
Set ``SW1 = 00`` for boot from eFuses::
SW1
v.---.
1|o--| O
2|o--| N
`---'
Flashing barebox
----------------
1. Connect to the board's Debug Mini-USB (115200 8N1)
2. Set ``SW1 = 01`` for serial boot mode (see above)
3. Turn board's power on
4. Upload barebox image to the board via imx-usb-loader
.. code-block:: none
host$ imx-usb-loader images/barebox-embest-imx6q-marsboard.img
..
4. Flash barebox to SPI-NOR Flash via Android Fastboot
.. code-block:: none
host$ fastboot flash bbu-spiflash images/barebox-embest-imx6q-marsboard.img
..
5. Restore ``SW1 = 10`` for internal (SPI-NOR) boot (see above)
|