Difference between revisions of "Getting started with AI on NXP i.MX8M Plus/Introduction/Quick getting started/Flashing SD card"
Line 34: | Line 34: | ||
lsblk | lsblk | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | 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: | ||
+ | |||
+ | <syntaxhighlight lang='bash'> | ||
+ | sudo umount /dev/sdXn | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Where the '''n''' means that this command is needed for every partition. | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 17:04, 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.