UCM-iMX7: Linux: Automatic Installation
Contents
Introduction
This article provides an installation guide for Linux kernel and Debian root file system on the UCM-iMX7 System-on-Module / Computer-on-Module eMMC internal storage device.
Preparation steps
- Obtain a PC workstation with a USB port.
- Download the Linux package for UCM-iMX7 from CompuLab website. Unzip the package to a directory on your host workstation.
- All image files mentioned below can be found in the install subdirectory.
- Use the standard microUSB-to-USB cable to connect the host PC to the micro USB connector P7 on SBC-UCM-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 install 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 (MMC/SD card) to the SD socket (P9) on the SBC-iMX7
- Turn on the UCM-iMX7 evaluation system.
- The system will boot from the SD card and start the automatic installation procedure.
Kernel release : Linux 4.1.15-ucm-imx7-1.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.
| 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
133MiB 0:02:09 [1.03MiB/s] [================================>] 100%
* unmount_destination [ ]
=== Setup bootloader environment ===
6+0 records in
6+0 records out
6 bytes (6B) copied, 0.003981 seconds, 1.5KB/s
=== Unmount Source /dev/mmcblk0p1 ===
* unmount_source [ ]
Please remove installation SD card
and reboot the board.
- Please remember to remove the installation SD card.
- Next, please reboot the board.
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:
UCM-iMX7 # env default -a UCM-iMX7 # saveenv UCM-iMX7 # reset