Difference between revisions of "UCM-iMX8M-Mini: Yocto Linux: Manual Installation: SD card"

From Compulab Mediawiki
Jump to: navigation, search
imported>Igor.vaisbein
(Run Yocto Linux image)
 
imported>Kirill.kapranov
(Installation)
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
This article provides an introduction on how to install the Yocto Linux SD-card image on SD card using a Linux Host workstation.  
+
This article provides instructions needed to install the Yocto Linux SD-card image on SD card using a Linux Host workstation.  
 
The image provides full boot system including U-Boot, Linux kernel, device driver modules and example root filesystem.
 
The image provides full boot system including U-Boot, Linux kernel, device driver modules and example root filesystem.
  
Line 6: Line 6:
 
* Obtain a Linux PC workstation.
 
* Obtain a Linux PC workstation.
 
* Obtain a USB Card reader and an micro-SD Card. Any commercially available micro-SD card of 1GB (or larger) may be used for the installation.
 
* Obtain a USB Card reader and an micro-SD Card. Any commercially available micro-SD card of 1GB (or larger) may be used for the installation.
* Download the Yocto Linux package for UCM-iMX8M-Mini from [https://www.compulab.com/products/computer-on-modules/ucm-imx8m-mini-nxp-i-mx-8m-mini-som-system-on-module-computer/#devres CompuLab website].
+
* Download the UCM-iMX8M-Mini Yocto Linux package from [https://www.compulab.com/products/computer-on-modules/ucm-imx8m-mini-nxp-i-mx-8m-mini-som-system-on-module-computer/#devres CompuLab website].
* Unzip the package to a directory on the host workstation.
+
* Unzip the package to a directory on the host workstation. From now we assume the device name is {{filename|pakage_dir}}.
* The Yocto Linux SD-card image file mentioned below can be found in the {{filename|images}} subdirectory.  
+
* The Yocto Linux SD-card image file, mentioned below, can be found in the {{filename|images}} subdirectory.  
* Plug the USB SD Card reader to a host Linux PC. Insert the micro-SD Card into the USB Card reader. From now we assume the device name of the MMC/SD card on your Linux PC is {{filename|/dev/sdX}}.
+
* Plug the USB SD Card reader into the host PC. Insert the micro-SD Card into the USB Card reader. From now we assume the device name of the MMC/SD card on your Linux PC is {{filename|/dev/sdX}}.
  
 
== Installation ==
 
== Installation ==
 
* Flash the image file to the micro-SD card:
 
* Flash the image file to the micro-SD card:
<pre>bzcat ~/path/to/ucm-imx8m-mini-yocto-linux/images/fsl-image-validation-imx-ucm-imx8m-mini.sdcard.bz2 | sudo dd of=/dev/sdX bs=1M
+
<pre>bzcat pakage_dir/images/image-ucm-imx8m-mini.sdcard.bz2 | sudo dd of=/dev/sdX bs=1M
 
</pre>
 
</pre>
  
 
== Run Yocto Linux image ==
 
== Run Yocto Linux image ==
* Insert the micro-SD card into the SD socket '''P23''' [[http://192.168.10.106/mediawiki/index.php/File:UCM-iMX8M-Mini-eval-kit-quick-setup.png see drawing]]
+
* Insert the micro-SD card into SD socket '''P23''' [[:File:SB-UCMIMX8-top.jpg|(see drawing)]]
* Make sure that the jumper '''E15''' is closed [[http://192.168.10.106/mediawiki/index.php/File:UCM-iMX8M-Mini-eval-kit-quick-setup.png see drawing]]
+
* Connect a standard USB cable (included in the kit) between your host PC and the evaluation kit micro-USB2.0 connector '''P13''' [[:File:SB-UCMIMX8-top.jpg|(see drawing)]]
* Turn on the evaluation system.
+
*: Use a terminal emulator as described [[UCM-iMX8M-Mini:_Evaluation_Kit:_Getting_Started#System setup|here]]
* The Yocto SD-card image may require a small boot settings adjustment for proper booting.
+
* Press and hold the ALT_BOOT button ('''SW7''') and then reset / power-on the system to force boot from SD card [[:File:SB-UCMIMX8-top.jpg|(see drawing)]]. Release ALT_BOOT button after 2-3 seconds
* If needed, reset the U-Boot environment to default state in the U-Boot prompt:
+
* The system boot into Linux.
<pre>env default -a
 
setenv fdt_file ucm-imx8m-mini.dtb
 
saveenv
 
</pre>
 
* Start the boot process:
 
<pre>boot
 
</pre>
 
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Revision as of 17:26, 14 November 2019

Introduction

This article provides instructions needed to install the Yocto Linux SD-card image on SD card using a Linux Host workstation. The image provides full boot system including U-Boot, Linux kernel, device driver modules and example root filesystem.

Preparation steps

  • Obtain a Linux PC workstation.
  • Obtain a USB Card reader and an micro-SD Card. Any commercially available micro-SD card of 1GB (or larger) may be used for the installation.
  • Download the UCM-iMX8M-Mini Yocto Linux package from CompuLab website.
  • Unzip the package to a directory on the host workstation. From now we assume the device name is pakage_dir.
  • The Yocto Linux SD-card image file, mentioned below, can be found in the images subdirectory.
  • Plug the USB SD Card reader into the host PC. Insert the micro-SD Card into the USB Card reader. From now we assume the device name of the MMC/SD card on your Linux PC is /dev/sdX.

Installation

  • Flash the image file to the micro-SD card:
bzcat pakage_dir/images/image-ucm-imx8m-mini.sdcard.bz2 | sudo dd of=/dev/sdX bs=1M

Run Yocto Linux image

  • Insert the micro-SD card into SD socket P23 (see drawing)
  • Connect a standard USB cable (included in the kit) between your host PC and the evaluation kit micro-USB2.0 connector P13 (see drawing)
    Use a terminal emulator as described here
  • Press and hold the ALT_BOOT button (SW7) and then reset / power-on the system to force boot from SD card (see drawing). Release ALT_BOOT button after 2-3 seconds
  • The system boot into Linux.