Dhvanil Patel

Boot Gateway from NAND Flash

Discussion created by Dhvanil Patel on Jul 24, 2018
Latest reply on Jul 24, 2018 by Dhvanil Patel

Hi All,

 

In order to boot the Gateway from the NAND Flash, Please follow mention steps to generate NAND boot supported gateway image and flash it on NAND flash and boot gateway from it. Please make sure you have gateway IDEx release package is available with you before following the steps.

 

  1. Setup Yocto setup to build gateway firmware image(You can follow "MGSBIUG.pdf" guide from the release package).
  2. Generate the Gateway minimal image after setting up Yocto setup to make sure that gateway minimal image is generated after setting up Yocto environment.
  3. Exclude OTA layer from building environment by commenting "BBLAYERS += " ${BSPDIR}/sources/meta-volansys-gw-ota "" line present in the "fsl-release-bsp/build-x11/conf/bblayers.conf".
    Note: The Gateway OTA feature is not supported in the minimal image.
  4. Remove SD environment setup patch(0004-U-boot-Enable-env-storage-in-SD-card.patch) by removing line "0004-U-boot-Enable-env-storage-in-SD-card.patch \" from "fsl-release-bsp/sources/meta-volansys-gw/recipes-bsp/u-boot/u-boot-imx_%.bbappend"
  5. Clean uBoot and kernel by using below bitbake command,
    $ bitbake -c cleansstate u-boot-imx linux-imx
  6. Clean gateway minimal image by using below command,
    $ bitbake -c cleansstate volansys-image-gw-minimal
  7. Rebuild the gateway minimal image by using below command,
    $ bitbake volansys-image-gw-minimal
    This will generate the modular gateway minimal image. It will generate the u-boot, kernel zImage, dtb and minimal rootfs filesystem.
  8. Copy generated files in the mfg tool firmware directory. Please refer "IMX6ULMGFFUG.pdf" from IDEx release package for more details
  9. Now flash image to the gateway NAND by using MFGTool. The MFGTool is available in the IDEx release package. Please refer "IMX6ULMGFFUG.pdf" from IDEx release package for more details.

 

Note: Remove the SD card from the Gateway board else Gateway will boot from SD card.

Outcomes