Personal tools

Difference between revisions of "How to check storages contents in Yocto-EBOX-IMX8MM"

From ICOP tech wiki

Jump to: navigation, search
(Created page with "==How to check storages contents in Yocto?== Boot up EBOX-IMX8MM unit and enter Yocto desktop, click upper-left icon to use weston-terminal. File:HOW TO SET UP TIME ZONE-...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==How to check storages contents in Yocto?==
+
==How to use EBOX-IMX8MM storages under Yocto==
  
  
Boot up EBOX-IMX8MM unit and enter Yocto desktop, click upper-left icon to use weston-terminal.
+
EBOX-IMX8MM Series support storages include:
  
[[File:HOW TO SET UP TIME ZONE-1.png|frameless]]
+
eMMC, USB disk, SD/Micro SD (based on different hardware version)
  
To check EBOX-IMX8MM system status, execute ''<big>command</big>'' as below:
 
  
Sh-4.4# <big>''df''</big>
+
When storages connected with EBOX, Yocto will create a code name for each storage in the directory.  
  
[[File:How to check storages contents in Yocto-2.png|frameless|580x580px]]                                 
+
Following content include storages usage:  
  
Under /dev/ directory, we found mmcblk1, mmcblk2p1 and sda1 three different storages.  
+
Check disk space, disk files and copy file between different storages.  
  
[[File:How to check storages contents in Yocto-3.png|frameless|580x580px]]
 
  
To check the files, execute <big>''command''</big> ls with <big>''Mounted on directory''</big>:
+
Tested storages:  
  
Sh-4.4# <big>''ls /run/media/mmcblk1''</big>
+
16GB eMMC onboard x1 (Installed with Yocto)
  
[[File:How to check storages contents in Yocto-4.png|frameless|590x590px]]
+
32GB USB disk x1 (Stored with 01.png)
  
Sh-4.4# ls /run/media/mmcblk2p1
+
32GB SD card x1 (Stored with 02.png)
  
[[File:How to check storages contents in Yocto-5.png|frameless|600x600px]]
 
  
Sh-4.4# ls /run/media/sda1
+
'''To check disk space:'''
  
[[File:How to check storages contents in Yocto-6.png|frameless|600x600px]]
+
Boot up EBOX-IMX8MM to enter Yocto desktop, click upper-left icon to use weston-terminal.
  
After files checked, we found storage codes:
 
  
''<big>mmcblk1 = SD card</big>''
+
[[File:Westonterminal.png|alt=|frameless]]
  
''<big>mmcblk2p1 = eMMC</big>''
+
Using df command to check disk space.
 +
Sh-4.4# df
 +
[[File:Df.png|alt=|frameless|580x580px]]                                 
  
''<big>sda1 = USB disk</big>''
+
Using lsblk command to see all block devices.
 +
Sh-4.4# lsblk
 +
[[File:Lsblk.png|alt=|frameless|580x580px]]
 +
 
 +
Under directory /run/media/, show sdb1 , mmcblk2p1 and mmcblk1p1 three different storages.
 +
 
 +
 
 +
'''To check storage files:'''
 +
 
 +
Using ls command to check storage files.
 +
Sh-4.4# ls /run/media/sdb1
 +
[[File:Runsdb1.png|alt=|frameless|590x590px]]
 +
Sh-4.4# ls /run/media/mmcblk2p1
 +
[[File:Mmcblk2pl.png|alt=|frameless|600x600px]]
 +
Sh-4.4# ls /run/media/mmcblk1p1
 +
[[File:Mmcblklpl.png|alt=|frameless|593x593px]]
 +
 
 +
'''To copy file:'''
 +
 
 +
Using cp command to copy files between storages:
 +
 
 +
Copy USB disk 01.png to SD card for example, execute commend “cp source destination”.
 +
 
 +
<br />
 +
Sh-4.4# cp /run/media/sdb1/01.png /run/media/mmcblk1p1
 +
[[File:Mmcblklpl2.png|alt=|frameless|539x539px]]
 +
 
 +
Then execute ls command to check files in SD card.
 +
Sh-4.4# ls /run/media/mmcblk1p1
 +
[[File:0102png.png|alt=|frameless|539x539px]]
 +
 
 +
01.png can be found under SD card directory.

Latest revision as of 17:20, 17 March 2021

How to use EBOX-IMX8MM storages under Yocto

EBOX-IMX8MM Series support storages include:

eMMC, USB disk, SD/Micro SD (based on different hardware version)


When storages connected with EBOX, Yocto will create a code name for each storage in the directory.

Following content include storages usage:

Check disk space, disk files and copy file between different storages.


Tested storages:

16GB eMMC onboard x1 (Installed with Yocto)

32GB USB disk x1 (Stored with 01.png)

32GB SD card x1 (Stored with 02.png)


To check disk space:

Boot up EBOX-IMX8MM to enter Yocto desktop, click upper-left icon to use weston-terminal.


Using df command to check disk space.

Sh-4.4# df

                                

Using lsblk command to see all block devices.

Sh-4.4# lsblk

Under directory /run/media/, show sdb1 , mmcblk2p1 and mmcblk1p1 three different storages.


To check storage files:

Using ls command to check storage files.

Sh-4.4# ls /run/media/sdb1

Sh-4.4# ls /run/media/mmcblk2p1

Sh-4.4# ls /run/media/mmcblk1p1

To copy file:

Using cp command to copy files between storages:

Copy USB disk 01.png to SD card for example, execute commend “cp source destination”.


Sh-4.4# cp /run/media/sdb1/01.png /run/media/mmcblk1p1

Then execute ls command to check files in SD card.

Sh-4.4# ls /run/media/mmcblk1p1

01.png can be found under SD card directory.