Flash a NAND with Bootable SD Card For Rugged Board i.MX6UL

Objective:

This guide describes a method of flashing images to NAND flash from sdcard for the Rugged Board i.MX6UL . The demonstration image file is a customized Linux® distribution created using the Yocto project. This article assumes a Linux Ubuntu-based host, though the steps are similar for Windows®, macOS® and most Linux distributions.

Materials:

Hardware:

Software:

Files:

Use your own binary images or choose an appropriate binary images from this link with the below name.

  • barebox.bin

  • oftree

  • zImage

  • rb-qt5demo-image-ruggedboard-imx6ul.ubifs

Connection Diagram:

to be done.....

Procedure:

  • Create the bootable sdcard and copy the files in boot partition as follows → Create the bootable sdcard for Rugged Board i.MX6UL from Flash a Bootable SD Card for the Rugged Board i.MX6UL → Get the mentioned files from above for NAND fand copy the all NAND based images to boot partition of sdcard.

  • Insert the sdcard to Rugged Board i.MX6UL sdcard slot and give the power supply by connecting the usb cable between your PC and Board.

  • Open minicom and Boot the Board by pressing the RESET button and stop at bootloader level by pressing any key on keyboard

  • Enter the below commands to flash entire NAND flash images

bootloader $ cd /mnt/mmc

bootloader $ barebox_update -t nand barebox.bin

bootloader $ erase /dev/nand0.barebox-environment.bb

bootloader $ ubiformat /dev/nand0.root

bootloader $ ubiattach /dev/nand0.root

bootloader $ ubimkvol -t static /dev/nand0.root.ubi kernel 16M

bootloader $ ubimkvol -t static /dev/nand0.root.ubi oftree 1M

bootloader $ ubimkvol -t dynamic /dev/nand0.root.ubi root 0

bootloader $ ubiupdatevol /dev/nand0.root.ubi.kernel zImage

bootloader $ ubiupdatevol /dev/nand0.root.ubi.oftree oftree

bootloader $ cp rb-qt5demo-image-ruggedboard-imx6ul.ubifs /dev/nand0.root.ubi.root

  • Now remove the sdcard from the Rugged Board i.MX6UL sdcard slot .

  • RESET the Rugged Board i.MX6UL .

  • Your Board is READY to use.

Last updated