CL-SOM-iMX6: Linux: Automatic Installation

From Compulab Mediawiki
Jump to: navigation, search

Introduction

This article provides an installation guide for Linux kernel and Debian root file system on the CompuLab CL-SOM-iMX6 System-on-Module / Computer-on-Module SSD internal storage device.

Preparation steps

  • Obtain a PC workstation with a serial communication port.
  • Download the Linux package for CL-SOM-iMX6 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 SB-FX6 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-iMX6 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 (P6) on the SB-FX6
  • Turn on the CL-SOM-iMX6 evaluation system.
  • The system will boot from the SD card and start the automatic installation procedure.
    Kernel release : Linux 4.1.15-som-imx6-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 is in charge of:
  1. Deploying the rootfs to a destination media;
  2. Setting up boot environment.
Admolition important.png The Automatic Installation Script cleans up a destination device.
All data stored on the device will be lost.
=== Mount Source /dev/mmcblk2p1 ===
* mount_source [  ]
===Installing OS===
* Updating partitions
* Formatting partitions
* mount_destination [  ]
* Copying kernel files
* Extracting user space rootfs.tar.bz2
 218MiB 0:02:51 [1.27MiB/s] [================================>] 100%            
* unmount_destination [  ]
===Updating OS===
* mount_destination [  ]
* Extracting user space kernel.update.tar.bz2
6.11MiB 0:00:04 [1.44MiB/s] [================================>] 100%            
* Extracting user space murata.update.tar.bz2
1.37MiB 0:00:00 [1.57MiB/s] [================================>] 100%            
* unmount_destination [  ]
=== Unmount Source /dev/mmcblk2p1 ===
* unmount_source [  ]
	Please remove installation SD card
	and reboot the board.
  • 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-iMX6 # env default -a
CL-SOM-iMX6 # run bootcmd
The installer was not able to unmount the SSD and terminated with an error
  • Clean up the SSD boot area and halt the board.
# dd if=/dev/zero of=/dev/sda bs=1M count=16
# halt
  • Power on the board.
  • Press and hold Ctrl-C to get command prompt.
  • Set default U-Boot environment and boot the board:
CL-SOM-iMX6 # env default -a
CL-SOM-iMX6 # run bootcmd
The installer does not start and these messages turn out
/etc/init.d/S05-board_param.sh: line 73: /etc/init.d/board_params.sh: Read-only file system
/etc/init.d/S07-mount.sh: line 9: /etc/init.d/board_params.sh: No such file or directory
  • Power of the board.
  • Remove the SD card.
  • Switch the card RO Lock to UnLock.
  • Start installer again.

See also