Flashing Yocto on SD Card for LEC‐IMX6 - ADLINK/meta-adlink-nxp GitHub Wiki

Linux Host

1. Flashing the image(u-boot + kernel + rootfs) to the SD card

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-1-*.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

1.1 Download the latest pre-built Yocto image

  • LEC-IMX6
    • Quad/Dual SoC 1G | 2G
    • Solo/Dual Lite SoC 1G | 2G

1.2 Download the latest pre-built u-boot image

  • LEC-IMX6
    • Quad/Dual SoC 1G | 2G
    • Solo/Dual Lite SoC 1G | 2G
  1. 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

  2. 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

2. DIP switch/Jumper configuration

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:

    lec_base_carrier_sd_boot

then, power on your target device and the booting message will be present from the UART console or HDMI display

⚠️ **GitHub.com Fallback** ⚠️