Flashing Yocto on SD Card for LEC‐IMX6R2 - ADLINK/meta-adlink-nxp GitHub Wiki
Below command to add u-boot to image you built from GitHub
$ sudo dd conv=notrunc if=<Path to u-boot binary> of=core-image-weston-imx6-lec-imx6-2-*.sdcard bs=512 seek=2
$ sync
Below command to flash the image (u-boot + kernel + rootfs) to SD Card
$ sudo dd if=core-image-weston-imx6-*.sdcard of=/dev/sdX bs=64M
$ sync
-
Insert SD Card into your host machine and power on your target device to boot from SD card. Make sure boot switch setting is set for carrier SD card
-
Please boot to u-boot stage and configure the booting setting with the below command:
U-Boot> setenv boot_sd LOAD=\'ext2load mmc 1:2\'\; BOOTARGS=\'mmcblk1p2 ro\'\; run boot U-Boot> saveenv U-Boot> reset
It supports several boot devices on LEC-BASE 2.0 and LEC BASE R1 carrier board .
-
For LEC-BASE 2.0 carrier board: selection of a specific boot device is defined by the switches (SW39), as follows:
boot device SW1 SW2 SW3 SW4 Carrier SD Card OFF ON ON OFF -
For LEC BASE R1 carrier board: selection of a specific boot device is defined by the Jumpers (JP16, JP17, JP18, JP19 ), as follows:
then, power on your target device and the booting message will be present from the UART console or HDMI display