Difference between revisions of "Getting started with AI on NXP i.MX8M Plus/Introduction/Quick getting started/Flashing SD card"
Line 12: | Line 12: | ||
There you can execute the '''find''' command to ensure your image is there: | There you can execute the '''find''' command to ensure your image is there: | ||
− | |||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
Line 52: | Line 51: | ||
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 === | ||
+ | |||
+ | Assign to these parameters some values: | ||
+ | |||
+ | *DEVICE | ||
+ | *IMAGE | ||
+ | |||
+ | In this case fill those parameters as follows: | ||
+ | |||
+ | <syntaxhighlight lang='bash'> | ||
+ | DEVICE=/dev/sdX | ||
+ | |||
+ | IMAGE=core-image-minimal-imx8mp-var-dart.wic.gz | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | '''Note:''' change the device name with yours, and in IMAGE variable please use the on found before with the commands '''lsblk''' or '''dmesg'''. | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 17:06, 21 November 2021
Contents
Flashing the Linux image into the SD card
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 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 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 on found before with the commands lsblk or dmesg.