Difference between revisions of "IMX8/iMX8MEVK/Yocto/Installing an Image"

From RidgeRun Developer Connection
< IMX8‎ | iMX8MEVK‎ | Yocto
Jump to: navigation, search
Line 15: Line 15:
 
</pre>
 
</pre>
  
'''Device ID'''
+
This is an Output example:
 +
<pre>
 +
user@laptop:~$ blkid -o list
 +
device                                    fs_type        label            mount point                                    UUID
 +
---------------------------------------------------------------------------------------------------------------------------------------------------------------
 +
/dev/sda1                                  ext4                            /                                              819c76f8-187f-46e9-b0c0-350032625bb3
 +
/dev/sda3                                  ext4            data            /media/user/data                              571e7aea-202e-4daa-8071-a1fc1207f458
 +
/dev/sda5                                  swap                            [SWAP]                                        4018cfb5-4201-4656-a005-4fe04d06dde1
 +
/dev/sdb1                                  ext4            sdcard          (not mounted)                                  fe2353ea-7436-457e-9447-8e3f721b0c43
 +
/dev/sdb2                       
 +
</pre>
 +
 
 +
 
 +
'''Considerations'''
  
 
Each device has numbers at the end, those numbers are related to partitions and they must not be specified to install the image.
 
Each device has numbers at the end, those numbers are related to partitions and they must not be specified to install the image.
 
As example, instead of /dev/'''sdb1''', use /dev/'''sdb'''.
 
As example, instead of /dev/'''sdb1''', use /dev/'''sdb'''.
 +
 +
Also, The device '''must be not mounted''' to successfully write the image.
  
 
=Installing=
 
=Installing=
 
Yocto supports several image formats, as example ext4, img, sdcard and wic.   
 
Yocto supports several image formats, as example ext4, img, sdcard and wic.   
 +
 +
Those files will be created in '''<Yocto_Dir>/build/tmp/deply/images/imx8mevk'''.
  
 
In old Yocto versions, the most common image type was sdcard, use '''dd''' with this image type.
 
In old Yocto versions, the most common image type was sdcard, use '''dd''' with this image type.

Revision as of 14:51, 9 November 2018


NXP Partner Program Registered Vertical.jpg NXP Partner Program Horizontal.jpg
  Index  





In order to install an image, you must identify your device ID. Check it as follows:

blkid -o list

This is an Output example:

user@laptop:~$ blkid -o list
device                                     fs_type         label            mount point                                    UUID
---------------------------------------------------------------------------------------------------------------------------------------------------------------
/dev/sda1                                  ext4                             /                                              819c76f8-187f-46e9-b0c0-350032625bb3
/dev/sda3                                  ext4            data             /media/user/data                               571e7aea-202e-4daa-8071-a1fc1207f458
/dev/sda5                                  swap                             [SWAP]                                         4018cfb5-4201-4656-a005-4fe04d06dde1
/dev/sdb1                                  ext4            sdcard           (not mounted)                                  fe2353ea-7436-457e-9447-8e3f721b0c43
/dev/sdb2                         


Considerations

Each device has numbers at the end, those numbers are related to partitions and they must not be specified to install the image. As example, instead of /dev/sdb1, use /dev/sdb.

Also, The device must be not mounted to successfully write the image.

Installing

Yocto supports several image formats, as example ext4, img, sdcard and wic.

Those files will be created in <Yocto_Dir>/build/tmp/deply/images/imx8mevk.

In old Yocto versions, the most common image type was sdcard, use dd with this image type.

sudo dd if=<image.sdcard> of=/dev/<device> bs=4M && sync 

Recent Yocto versions have wic image type as default format, use bmaptool as follows:

sudo bmaptool copy <image.wic> /dev/<device> --nobmap


[[IMX8/<Replace with "previous" page>|Previous: <Replace with "previous" page>]] Index [[IMX8/<Replace with "next" page>|Next: <Replace with "next" page>]]