IOT-GATE-iMX7 and SBC-IOT-iMX7: Linux: Automatic Installation

From Compulab Mediawiki
Revision as of 08:20, 20 February 2017 by Ilya (talk) (See also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

This article provides an installation guide for Linux kernel and Debian root file system on the IOT-GATE-iMX7 Internet of Things Gateway and SBC-IOT-iMX7 Internet of Things Single Board Computer eMMC internal storage device.

Preparation steps

  • Obtain a PC workstation with a USB port.
  • Download the Linux package for IOT-GATE-iMX7 and SBC-IOT-iMX7 from CompuLab website. Use either IOT-GATE-iMX7 or SBC-IOT-iMX7 product web page for downloading. Unzip the package to a directory on your host workstation.
  • All image files mentioned below can be found in the images subdirectory.
  • Use the standard microUSB-to-USB cable to connect the host PC to the micro USB connector marked Console on IOT-GATE-iMX7 rear panel (connector P3 on SBC-IOT-iMX7).
  • Make sure the new /dev/ttyUSBx device file is created by using the ls /dev/ttyUSB* command. x is the last number of the ttyUSB device.

Preparing installation media

  • Obtain a micro SD card. Any commercially available micro SD card of 1GB (or larger) may be used.
  • Create a first partition on it. The partition can be formatted either ext2/3/4 or FAT file system.
  • Copy all files found in the directory images from the unzipped Linux package to the first partition on the installation media (micro SD card).

Automatic Installation Procedure

  • Start terminal emulation software on your PC with the following serial port settings:
Baud Rate Data Bits Stop Bits Parity Flow Control
115200 8 1 none none
  • Plug the installation media (micro MMC/SD card) to the microSD socket marked uSD on IOT-GATE-iMX7 front panel (slot P18 on the SBC-iMX7).
  • Turn on the device.
  • The system will boot from the SD card and start the automatic installation procedure.
    Kernel release : Linux Linux 4.1.15-cl-som-imx7-3.0

Press any key to cancel installation   5

The Automatic Installation Procedure can be terminated by pressing any key during the timeout.

  • The installation script performs all required steps including installing Linux images onto the eMMC storage device and setting up the boot environment.
Admolition note.png The Automatic Installation script cleans up the eMMC device during the installation procedure. All data stored on the eMMC device will be lost.
=== Mount Source /dev/mmcblk0p1 ===
* mount_source [  ]
===Installing OS===
* Updating partitions
* Formatting partitions
* mount_destination [  ]
* Copying kernel files
* Extracting user space rootfs.tar.bz2
 165MiB 0:02:38 [1.04MiB/s] [================================>] 100%            
* unmount_destination [  ]
=== Setup bootloader environment ===
=== Unmount Source /dev/mmcblk0p1 ===
* unmount_source [  ]
Please remove installation SD card ...
Press any key to cancel restart   0
...
  • The system will reboot automatically to the newly installed Debian Linux. Please reboot manually, if for some reason the system does not reboot automatically.
  • Please remember to remove the installation SD card.

Troubleshooting

  • Automatic installation doesn't start.

The U-Boot environment should be set to default:

  • Power on the board.
  • Press and hold Ctrl-C to get command prompt.
  • Set default U-Boot environment and boot the board:
CL-SOM-iMX7 # env default -a
CL-SOM-iMX7 # saveenv
CL-SOM-iMX7 # reset

See also