u-boot/board/engicam/icorem6_rqs
Jagan Teki 2ea79a98c4 i.MX6Q: isiot: Switch the mmc env based on devno
Add board_mmc_get_env_dev

Switch the mmc env based on the mmc devno, instead of separately
defining a config item in include/configs using board_mmc_get_env_dev
- devno 0: sd/esd
- devno 1: mmc/emmc

Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
2017-03-17 09:27:08 +01:00
..
icorem6_rqs.c i.MX6Q: isiot: Switch the mmc env based on devno 2017-03-17 09:27:08 +01:00
Kconfig arm: imx6q: Add Engicam i.CoreM6 Quad/Dual RQS Starter Kit initial support 2016-12-16 17:16:10 +01:00
MAINTAINERS i.MX6: engicam: Include dts files under MAINTAINERS 2017-03-17 09:27:08 +01:00
Makefile arm: imx6q: Add Engicam i.CoreM6 Quad/Dual RQS Starter Kit initial support 2016-12-16 17:16:10 +01:00
README arm: imx6q: Add Engicam i.CoreM6 Solo/Duallite RQS Starter Kit initial support 2016-12-16 17:16:10 +01:00

How to use U-Boot on Engicam i.CoreM6 RQS Solo/DualLite and Quad/Dual Starter Kit:
----------------------------------------------------------------------------------

$ make mrproper

- Configure U-Boot for Engicam i.CoreM6 RQS Quad/Dual:
$ make imx6q_icore_rqs_mmc_defconfig

- Configure U-Boot for Engicam i.CoreM6 RQS Solo/DualLite:
$ make imx6dl_icore_rqs_mmc_defconfig

- Build U-Boot
$ make

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

- Flash the SPL image into the micro SD card:

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

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

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

- Jumper settings:

MMC Boot: JM3 Closed

- Connect the Serial cable between the Starter Kit and the PC for the console.
(J28 is the Linux Serial console connector)

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