Flashing the Board

From RidgeRun Developer Wiki





Follow Us On Twitter LinkedIn Email Share this page



Preferred Partner Logo 3



After a successful build, you should see multiple files in:

 build/deploy/images/verdin-imx95/

Among them, the most relevant files for deployment and usage are the following:

Toradex Easy Installer Image (Recommended for eMMC Flashing)

  • Verdin-iMX95_Reference-Minimal-Image-Tezi_<version>.tar
  • Verdin-iMX95_Reference-Minimal-Image-Tezi.tar

This is the image used with Toradex Easy Installer (TEZI). Toradex Easy Installer is the recommended method for flashing operating system images to the internal flash memory (eMMC) of Toradex modules.

To learn how to install this image using Toradex Easy Installer, refer to the following guide:

Offline installation of a pre-built image using GUI

SD Card Image

  • Verdin-iMX95_Reference-Minimal-Image.wic.gz
  • Verdin-iMX95_Reference-Minimal-Image.wic.bmap

The OpenEmbedded build system generates wic images that can be written directly to an SD card. These images already contain the partition layout, kernel, device tree, and root filesystem required for booting the system.

The image is compressed as a .wic.gz file and can be written directly to the SD card using the dd utility.

Flashing the SD Card image

Connect the SD card to the host system and identify the device name using:

lsblk

Once the correct device is identified, write the image to the SD card using:

gunzip -c Reference-Minimal-Image-verdin-imx95.rootfs.wic.gz | sudo dd of=/dev/sda bs=4M conv=fsync status=progress

Replace /dev/sda with the correct device corresponding to your SD card.

This command decompresses the .wic.gz image and writes it directly to the SD card in a single step.

The output should look similar to the following:

467894272 bytes (468 MB, 446 MiB) copied, 2 s, 234 MB/s
685395968 bytes (685 MB, 654 MiB) copied, 2.69174 s, 255 MB/s

0+20908 records in
0+20908 records out
685395968 bytes (685 MB, 654 MiB) copied, 48.5262 s, 14.1 MB/s

After the process finishes, remove the SD card safely, insert it into the Verdin Development Board, and power on the system. The module will boot directly from the SD card using the image written to it.

Verifying the Boot Order in U-Boot

In some situations, the board may not automatically boot from the SD card depending on the configured boot order. You can verify the boot order directly from the U-Boot console.

Power on the board and interrupt the boot process by pressing any key when the following message appears:

Hit any key to stop autoboot

Once the U-Boot prompt appears, run the following command:

printenv boot_targets

The output should list the boot devices in order of priority. For example:

boot_targets=mmc1 mmc0 usb0 dhcp

Where:

  • mmc1 corresponds to the SD card
  • mmc0 corresponds to the eMMC

To boot from the SD card first, ensure that mmc1 appears before mmc0 in the boot_targets variable.