Difference between revisions of "UCM-iMX8M-Mini: Yocto Linux: Manual Installation: SD card"
imported>Kirill.kapranov (→Installation) |
imported>Kirill.kapranov (→Run Yocto Linux image) |
||
Line 1: | Line 1: | ||
== Introduction == | == Introduction == | ||
This article provides instructions needed 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 | + | The image provides full boot system including U-Boot, Linux kernel, device driver modules and example root file system. |
+ | |||
+ | {{Note|The flashing operations require the user has a full access to the block device; super-user privileges may be required.}} | ||
== Preparation steps == | == Preparation steps == | ||
Line 10: | Line 12: | ||
* 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 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}}. | * 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}}. | ||
+ | * Clean the uSD card: | ||
+ | <pre> | ||
+ | dd if=/dev/zero bs=1M count=16 of=/dev/sdX | ||
+ | partprobe /dev/sdX | ||
+ | </pre> | ||
== Installation == | == Installation == | ||
* Flash the image file to the micro-SD card: | * Flash the image file to the micro-SD card: | ||
− | <pre>bzcat | + | <pre>bzcat package_dir/images/ucm-imx8m-mini.sdcard.bz2 | sudo dd of=/dev/sdX bs=1M |
</pre> | </pre> | ||
Line 20: | Line 27: | ||
* 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)]] | * 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)]] | ||
*: Use a terminal emulator as described [[UCM-iMX8M-Mini:_Evaluation_Kit:_Getting_Started#System setup|here]] | *: Use a terminal emulator as described [[UCM-iMX8M-Mini:_Evaluation_Kit:_Getting_Started#System setup|here]] | ||
− | * 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 | + | * 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 when auto boot sequence starts (LED '''DS2''' lights on) |
− | * The system | + | * The system boots into Linux. |
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 16:27, 21 October 2020
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 file system.
The flashing operations require the user has a full access to the block device; super-user privileges may be required. |
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.
- Clean the uSD card:
dd if=/dev/zero bs=1M count=16 of=/dev/sdX partprobe /dev/sdX
Installation
- Flash the image file to the micro-SD card:
bzcat package_dir/images/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 when auto boot sequence starts (LED DS2 lights on)
- The system boots into Linux.