SD-Card Flashing on ICM-series

This article help to create the bootable sd card from image files. There are three topics: device compatibility, partition description and create steps.

1. Compatibility

1.1 Hardware Device

  1. ICM/ICS-2010
  2. ICM/ICS-2011

1.2 OS

  1. Yocto 1.6.2 (U-boot 2014.04, Kernel 3.10.53)
  2. Ubuntu 12.04 (U-boot 2014.04, Kernel 3.10.53)

2. Create SD

2.1 Requirement

An SD/MMC card reader, like a USB card reader, is required. It will be used to transfer the boot loader and kernel images to initialize the partition table and copy the root file system. To simplify the instructions, it is assumed that a 8GB SD/MMC card is used.

To identify the device node assigned to the SD/MMC card, enter the command:

show partitions
1
2
3
4
5
6
7
8
$ cat /proc/partitions
major minor #blocks name
8 0 78124000 sda
8 1 75095811 sda1
8 2 1 sda2
8 5 3028221 sda5
8 32 43232323 sdb1
8 18 3905535 sdc1

In this example, the device node assigned is /dev/sdc (a block is 512B large).

2.2 Create SD - Full Image

Steps

  1. Get full image file from google driver location.

OS: Yocto 1.6.2, Android 5.0.2, Windows Embedded Compact 7 and Ubuntu 12.04

[ICM/ICS-2010 full images (SD8G)] (https://drive.google.com/folderview?id=0B4PjI57nBw4eWUtuaERjTjNUS3c&usp=sharing)

[ICM/ICS-2011 full images (SD8G)] (https://drive.google.com/folderview?id=0B4PjI57nBw4eQTlnNmNLV0JpOTg&usp=sharing)

$xzcat full.img.xz | sudo dd of=/dev/sdc bs=16M

replace full.img.xz to proper os image filename

2.3 Create SD - Seperated Disk Dump Files

2.3.1 Needed Files

  1. boot loader: fileu-boot.imx
  2. linux kernel: uImage
  3. device tree: imx6dl-embux-icm2010.dtb
  4. boot configuration: boot-env

2.3.2 Steps

Flash boot loader file - u-boot.imx

$ sudo dd if=u-boot.imx of=/dev/sdc bs=1k seek=1; sync

Copy kenel, device tree and boot config file to “env” partition.

1
2
3
4
5
6
7
$ mkdir temp
$ sudo mount -t vfat /dev/sdc10 temp
$ sudo cp uImage temp/
$ sudo cp imx6dl-embux-icm2010.dtb temp/
$ sudo cp boot-env temp/
$ sync
$ sudo umount temp

More info: Reference