u-boot-brain/board/solidrun/mx6cuboxi
Walter Lozano 6c3fbf3e45 mx6cuboxi: customize board_boot_order to access eMMC
In SPL legacy code only one MMC device is created, based on BOOT_CFG
register, which can be either SD or eMMC. In this context
board_boot_order return always MMC1 when configure to boot from
SD/eMMC. After switching to DM both SD and eMMC devices are created
based on the information available on DT, but as board_boot_order
only returns MMC1 is not possible to boot from eMMC.

This patch customizes board_boot_order taking into account BOOT_CFG
register to point to correct MMC1 / MMC2 device. Additionally, handle
IO mux for the desired boot device.

Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
2020-06-23 00:08:53 +02:00
..
Kconfig mx6: remove SYS_SOC from board Kconfig 2015-09-13 10:37:29 +02:00
MAINTAINERS mx6cuboxi: Add Baruch as maintainer 2019-12-06 12:05:08 +01:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mx6cuboxi.c mx6cuboxi: customize board_boot_order to access eMMC 2020-06-23 00:08:53 +02:00
README Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00

How to use U-Boot on Solid-run mx6 Hummingboard and Cubox-i
-----------------------------------------------------------

- Build U-Boot for Hummingboard/Cubox-i:

$ make mrproper
$ make mx6cuboxi_defconfig
$ make

This will generate the SPL image called SPL and the u-boot.img.

- Flash the SPL image into the SD card:

sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync

- Flash the u-boot.img image into the SD card:

sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync

- Insert the SD card in the board, power it up and U-Boot messages should
come up.