Difference between revisions of "Getting started with AI on NXP i.MX8M Plus/Introduction/Quick getting started/Flashing SD card"

From RidgeRun Developer Connection
Jump to: navigation, search
m
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Flashing the Linux image into the SD card =
+
<noinclude>
 +
{{Getting started with AI on NXP i.MX8M Plus/Head|previous=Introduction/Quick getting started/Yocto minimal image|next=Introduction/Quick getting started/First steps on the board|metakeywords=}}
 +
</noinclude>
  
In the dependencies you have installed at the beginning, you had bmap tool for flashing images into SD cards.
 
  
== Finding the built image ==
+
<!-- If you want a custom title for the page, un-comment and edit this line:
 +
{{DISPLAYTITLE:Getting started with AI on NXP i.MX8M Plus - <descriptive page name>|noerror}}
 +
-->
 +
 
 +
 
 +
== 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:
 
If you kept the names of the build and configuration directories, then you will find the image ready to flash at:
Line 24: Line 34:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Transfering the image to the SD ==  
+
=== 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:
 
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:
Line 40: Line 50:
 
*/dev/mmcblk0
 
*/dev/mmcblk0
  
For this case, and to keep it general, we will call the the SD card as /dev/sdX.
+
For this case, and to keep it general, we will call the SD card as /dev/sdX.
  
=== Umount the SD card ===
+
==== Umount the SD card ====
  
 
You need to unmount every partition from your SD card:
 
You need to unmount every partition from your SD card:
Line 52: Line 62:
 
Where the '''n''' means that this command is needed for every partition.  
 
Where the '''n''' means that this command is needed for every partition.  
  
=== Flashing the SD with bmaptools ===
+
==== Flashing the SD with bmaptools ====
  
 
Assign to these parameters some values:
 
Assign to these parameters some values:
Line 68: Line 78:
  
 
'''Note:''' change the device name with yours, and in IMAGE variable please use the one found before with the commands '''lsblk''' or '''dmesg'''.
 
'''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.
  
 
<syntaxhighlight lang='bash'>
 
<syntaxhighlight lang='bash'>
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
<noinclude>
 +
{{Getting started with AI on NXP i.MX8M Plus/Foot|Introduction/Quick getting started/Yocto minimal image|Introduction/Quick getting started/First steps on the board}}
 +
</noinclude>

Latest revision as of 12:58, 21 March 2023




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