Difference between revisions of "IOT-GATE-iMX8 and SBC-IOT-iMX8: Debian Linux: Installation"

From Compulab Mediawiki
Jump to: navigation, search
imported>Igor.vaisbein
(Run Debian Linux image)
 
imported>Uri.mashiach
Line 2: Line 2:
 
This article provides instructions needed to install the Debian Linux live image on the IOT-GATE-iMX8 / SBC-IOT-iMX8 device, using a Linux Host workstation and a USB flash drive.
 
This article provides instructions needed to install the Debian Linux live image on the IOT-GATE-iMX8 / SBC-IOT-iMX8 device, using a Linux Host workstation and a USB flash drive.
 
The image includes Linux kernel, device driver modules, and Debian root filesystem.
 
The image includes Linux kernel, device driver modules, and Debian root filesystem.
 +
 +
{{Important|This installation process requires U-Boot version '''2.0''' or above.<br>
 +
Before proceeding [[IOT-GATE-iMX8 and SBC-IOT-iMX8: U-Boot: Update|check the U-Boot version on your device and update as needed.]]
 +
}}
  
 
== Preparation steps ==
 
== Preparation steps ==
Line 18: Line 22:
  
 
== Run Debian Linux image ==
 
== Run Debian Linux image ==
* Insert the USB flash drive into the '''front-panel USB port''' located next to the power button [[:File:Iot-gate-imx8_front-and-back-panels.png|(see drawing)]]
+
{{:Transclusion: IOT-GATE-iMX8: Run Linux image}}
* Connect a standard USB cable (included in the kit) between your host PC and the IOT-GATE-iMX8/SBC-IOT-iMX8 Debug console connector. [[:File:Iot-gate-imx8_front-and-back-panels.png|(see drawing)]]
 
: Use a terminal emulator as described [[IOT-GATE-iMX8:_Getting_Started#Quick_Setup|here]]
 
* Power-on the system.
 
* The system will automatically boot the live disk image from the USB flash drive.
 
  
 
== Installing Debian images onto the internal storage ==
 
== Installing Debian images onto the internal storage ==
Please use the `CompuLab Deployment Tool` to install the IOT-GATE-iMX8 / SBC-IOT-iMX8 Debian Linux onto on-board eMMC storage.
+
Please use the `CompuLab Deployment Tool` to install the IOT-GATE-iMX8 / SBC-IOT-iMX8 Debian Linux onto on-board eMMC storage.<br>
The `CompuLab Deployment Tool` is a shell script that allows to deploy a working OS image from USB flash drive to the IOT-GATE-iMX8 / SBC-IOT-iMX8 on-board storage (eMMC).
+
{{:Transclusion: IOT-GATE-iMX8: cl-deply}}
 
 
Follow the step-by-step procedure for a selected image:
 
 
 
* In the terminal window issue: <pre>cl-deploy</pre>
 
* Follow the steps below:
 
</br>
 
{| width="60%" cellspacing="1" cellpadding="1" border="1"
 
|-
 
| align="center" | '''Action'''
 
| align="center" | '''Screenshot'''
 
|-
 
|
 
:Select installation target storage '''/dev/mmcblk2'''
 
| Select a destination device
 
────────────────────────────────────────────────────
 
 
 
    ┌────────────────────────────────────────┐
 
    │ Available Devices:                     │
 
    │ ┌────────────────────────────────────┐ │
 
    │ │          ( ) /dev/mmcblk1          │ │
 
    │ │          (*) /dev/mmcblk2          │ │
 
    │ │                                    │ │
 
    │ │                                    │ │
 
    │ │                                    │ │
 
    │ └────────────────────────────────────┘ │
 
    ├────────────────────────────────────────┤
 
    │      <  OK  >          <Cancel>      │
 
    └────────────────────────────────────────┘
 
|-
 
|
 
:Be aware of the fact that all the data on the target storage will be erased
 
| Start Deployment
 
────────────────────────────────────────────────────
 
 
 
    ┌─────────────── WARNING  ───────────────┐
 
    │ Src: /dev/sda -> Dst: /dev/mmcblk2    │
 
    │                                        │
 
    │ All data on /dev/mmcblk2 will be      │
 
    │ destroyed                              │
 
    │                                        │
 
    │                                        │
 
    │                                        │
 
    ├────────────────────────────────────────┤
 
    │      < Yes >            < No  >      │
 
    └────────────────────────────────────────┘
 
|-
 
|
 
:While installation process is running the output screen shows the log and progress
 
|Allocating group tables: done<br>
 
Writing inode tables: done<br>
 
Creating journal (4096 blocks): done<br>
 
Writing superblocks and filesystem accounting information:<br>
 
done<br>
 
[ 1074.510952] EXT4-fs (mmcblk2p1): mounted filesystem<br>
 
with ordered data mode. Opts: (null)<br>
 
[ 1074.617588] EXT4-fs (sda1): mounted filesystem with<br>
 
ordered data mode. Opts: (null)<br>
 
[ /dev/sda1 => /dev/mmcblk2p1 ]:<br>
 
17.9MiB 0:00:01 [17.8MiB/s] [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<=>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>
 
|-
 
|
 
:When installation is complete, the following message will show up
 
| Finished with success
 
────────────────────────────────────────────────────
 
 
 
    ┌────────────────────────────────────────┐
 
    │ Boot media has been deployed on        │
 
    │ /dev/mmcblk2                          │
 
    │                                        │
 
    │ Would you like to reboot the device    │
 
    │ now?                                  │
 
    │                                        │
 
    │                                        │
 
    ├────────────────────────────────────────┤
 
    │      < Yes >            < No  >      │
 
    └────────────────────────────────────────┘
 
|}
 
  
 
===Post installation===
 
===Post installation===
* Reboot the unit to boot the newly deployed system.
+
{{:Transclusion: IOT-GATE-iMX8: Post Installation}}
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Revision as of 15:36, 14 September 2020

Introduction

This article provides instructions needed to install the Debian Linux live image on the IOT-GATE-iMX8 / SBC-IOT-iMX8 device, using a Linux Host workstation and a USB flash drive. The image includes Linux kernel, device driver modules, and Debian root filesystem.


Admolition important.png This installation process requires U-Boot version 2.0 or above.

Before proceeding check the U-Boot version on your device and update as needed.

Preparation steps

  • Obtain a Linux PC workstation.
  • Obtain a USB flash drive. Any commercially available USB flash drive of 1GB (or larger) may be used for the installation.
  • Download the IOT-GATE-iMX8 and SBC-IOT-iMX8 Debian Linux package from CompuLab website.
  • Unzip the package to a directory on the host workstation.
  • The Debian Linux live image file, mentioned below, can be found in the images subdirectory.
  • Plug the USB flash drive into the host PC. From now we assume the device name of the flash drive on your Linux PC is /dev/sdX.

Installation

  • Flash the image file to the USB flash drive:
xzcat ~/path/to/iot-gate-imx8-debian-linux/images/debian.iot-gate-imx8.live-img.xz | sudo dd of=/dev/sdX bs=1M

Run Debian Linux image

  • Insert the USB flash drive into one of the USB ports.
  • Connect a standard USB cable (included in the kit) between your host PC and the IOT-GATE-iMX8/SBC-IOT-iMX8 Debug console connector. (see drawing)
Use a terminal emulator as described here
  • Power-on the system.
  • The system will automatically boot the live disk image from the USB flash drive.

Installing Debian images onto the internal storage

Please use the `CompuLab Deployment Tool` to install the IOT-GATE-iMX8 / SBC-IOT-iMX8 Debian Linux onto on-board eMMC storage.
The `CompuLab Deployment Tool` is a shell script that allows to deploy a working OS image from USB flash drive to the IOT-GATE-iMX8 / SBC-IOT-iMX8 on-board storage (eMMC).

Follow the step-by-step procedure for a selected image:

  • In the terminal window issue, root privilege is needed (sudu):
root@iot-gate-imx8:~# cl-deploy
  • Follow the steps below:


Action Screenshot
Use the space bar key to select the installation target storage /dev/mmcblk2
Select a destination device

────────────────────────────────────────────────────

    ┌────────────────────────────────────────┐
    │ Available Devices:                     │
    │ ┌────────────────────────────────────┐ │
    │ │          ( ) /dev/mmcblk1          │ │
    │ │          (*) /dev/mmcblk2          │ │
    │ │                                    │ │
    │ │                                    │ │
    │ │                                    │ │
    │ └────────────────────────────────────┘ │
    ├────────────────────────────────────────┤
    │       <  OK  >          <Cancel>       │
    └────────────────────────────────────────┘
Be aware of the fact that all the data on the target storage will be erased
Start Deployment

────────────────────────────────────────────────────

    ┌─────────────── WARNING  ───────────────┐
    │ Src: /dev/sda -> Dst: /dev/mmcblk2     │
    │                                        │
    │ All data on /dev/mmcblk2 will be       │
    │ destroyed                              │
    │                                        │
    │                                        │
    │                                        │
    ├────────────────────────────────────────┤
    │       < Yes >            < No  >       │
    └────────────────────────────────────────┘
While installation process is running the output screen shows the log and progress
Allocating group tables: done

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information:
done
[ 1074.510952] EXT4-fs (mmcblk2p1): mounted filesystem
with ordered data mode. Opts: (null)
[ 1074.617588] EXT4-fs (sda1): mounted filesystem with
ordered data mode. Opts: (null)
[ /dev/sda1 => /dev/mmcblk2p1 ]:
17.9MiB 0:00:01 [17.8MiB/s] [         <=>         ]

When installation is complete, the following message will show up
Finished with success

────────────────────────────────────────────────────

    ┌────────────────────────────────────────┐
    │ Boot media has been deployed on        │
    │ /dev/mmcblk2                           │
    │                                        │
    │ Would you like to reboot the device    │
    │ now?                                   │
    │                                        │
    │                                        │
    ├────────────────────────────────────────┤
    │       < Yes >            < No  >       │
    └────────────────────────────────────────┘

Post installation

  • Power-off the system.
  • Remove the USB flash drive from the unit.
  • Power-on the system.