4.13.3.6. 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|
`-----------------------------------------------------'
4.13.3.7. 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
 `---'
4.13.3.7.1. Flashing barebox¶
Connect to the board’s Debug Mini-USB (115200 8N1)
Set
SW1 = 01for serial boot mode (see above)
Turn board’s power on
Upload barebox image to the board via imx-usb-loader
host$ imx-usb-loader images/barebox-embest-imx6q-marsboard.img
Flash barebox to SPI-NOR Flash via Android Fastboot
host$ fastboot flash bbu-spiflash images/barebox-embest-imx6q-marsboard.img
Restore
SW1 = 10for internal (SPI-NOR) boot (see above)