CL-SOM-iMX7: Linux: Automatic Installation
Contents
Introduction
This article provides an installation guide for Linux kernel and Debian root file system on the CompuLab CL-SOM-iMX7 System-on-Module / Computer-on-Module eMMC internal storage device.
Preparation steps
- Obtain a PC workstation with a serial communication port.
 - Download the Linux package for CL-SOM-iMX7 from CompuLab website. Unzip the package to a directory on your host workstation.
 - All image files mentioned below can be found in the images subdirectory.
 - Connect the host PC to the SBC-iMX7 base-board (connector P8) via the serial cable supplied with the evaluation kit.
 - Continue to the Preparing installation media subsection.
 
Preparing installation media
- Obtain an MMC/SD card. Any commercially available MMC/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 Linux package for CL-SOM-iMX7 to the first partition on the installation media (MMC/SD card).
 - Continue to the Automatic Installation Procedure section.
 
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 (MMC/SD card) to the SD socket (P9) on the SBC-iMX7
 - Turn on the CL-SOM-iMX7 evaluation system.
 - The system will boot from the SD card and start the automatic installation procedure.
 
Kernel release : Linux Linux 4.1.15-cl-som-imx7-2.1 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.
 
| 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 # run bootcmd