Getting started with AI on NXP i.MX8M Plus - Introduction - Quick getting started - Flashing SD card

From RidgeRun Developer Connection
Jump to: navigation, search




NXP Partner Program Registered Vertical.jpg NXP Partner Program Horizontal.jpg
Previous: Introduction/Quick getting started/Yocto minimal image Index Next: Introduction/Quick getting started/First steps on the board





Flashing the Linux image into the SD card

In the dependencies you installed at the beginning, you had bmap tool (bmap-tools) for flashing images into SD cards.

Finding the built image

If you kept the names of the build and configuration directories, then you will find the image ready to flash at:

cd $HOME/imx8-yocto-variscite/build_xwayland/tmp/deploy/images

There you can execute the find command to ensure your image is there:

find *.wic.gz

If everything went well in the image build process, then you will have some files like the following ones:

core-image-minimal-imx8mp-var-dart-20210708202630.rootfs.wic.gz
core-image-minimal-imx8mp-var-dart.wic.gz

Transfering the image to the SD

First of all please plug in your SD card in the host machine, and then execute the following commands to know the path on which the SD card has been mounted:

dmesg

lsblk

This command will show all the mounted devices in your computer, so it will be easier to know if your device has partitions or any data. Normally, the SD card will be mounted by those names:

  • /dev/sdb
  • /dev/sdc
  • /dev/mmcblk0

For this case, and to keep it general, we will call the SD card as /dev/sdX.

Umount the SD card

You need to unmount every partition from your SD card:

sudo umount /dev/sdXn

Where the n means that this command is needed for every partition.

Flashing the SD with bmaptools

Assign to these parameters some values:

  • DEVICE
  • IMAGE

In this case fill those parameters as follows:

DEVICE=/dev/sdX

IMAGE=core-image-minimal-imx8mp-var-dart.wic.gz

Note: change the device name with yours, and in IMAGE variable please use the one found before with the commands lsblk or dmesg. Please after the bmaptool has finished, eject the SD card from your computer.

Mounting the SD card on the board

1) Ensure that the i.MX8M Plus is off.

2) Ensure that switch SW7 is on the EXT side, in order to boot from SD card.

3) Push the microSD card into the J9 slot.

4) Power on the board.


Previous: Introduction/Quick getting started/Yocto minimal image Index Next: Introduction/Quick getting started/First steps on the board