dcsimg
Skip to end of metadata
Go to start of metadata

This is a page about the Freescale based i.MX6; i.MX6x SABRE Lite.

Vendor Documentation

Basic Requirements

Bootloader: U-Boot

Das U-Boot – the Universal Boot Loader: http://www.denx.de/wiki/U-Boot
These directions going forward now assume your using the "factory" v2013.04 U-Boot. Please verify with: "version"

If your board has something different, take a look here: i.MX6x SABRE Lite SPI Flash Recovery for software developers, the mainline U-Boot directions are now here: i.MX6x SABRE Lite Mainline U-Boot

Linux Kernel

This script will build the kernel, modules, device tree binaries and copy them to the deploy directory.
Download:

~/

For v4.4.x (Longterm 4.4.x):

~/armv7-multiplatform/

For v4.4.x-rt (Longterm 4.4.x + Real-Time Linux):

~/armv7-multiplatform/

For v4.9.x (Longterm 4.9.x):

~/armv7-multiplatform/

For v4.9.x-rt (Longterm 4.9.x + Real-Time Linux):

~/armv7-multiplatform/

For v4.11.x (Stable):

~/armv7-multiplatform/

For v4.12.x (Prepatch):

~/armv7-multiplatform/

Build:

~/armv7-multiplatform/

Root File System

Debian 9

User

Password

debian

temppwd

root

root

Download:

~/

Verify:

~/

Extract:

~/

Ubuntu 16.04 LTS

User

Password

ubuntu

temppwd

Download:

~/

Verify:

~/

Extract:

~/

Setup microSD card

For these instruction we are assuming, DISK=/dev/mmcblk0, lsblk is very useful for determining the device id.

Erase partition table/labels on microSD card:

Create Partition Layout:
With util-linux v2.26, sfdisk was rewritten and is now based on libfdisk.

sfdisk >= 2.26.x
sfdisk <= 2.25.x

Format Partition:
With mkfs.ext4 1.43, we need to make sure metadata_csum and 64bit are disabled.
As U-Boot CAN NOT currently handle reading files with these newer ext4 options and so Debian 8 (armel/armhf) and Ubuntu 16.04 (armhf) fsck tools will operate correctly.

mkfs.ext4 -V
mkfs.ext4 >= 1.43
mkfs.ext4 <= 1.42

Mount Partition:
On most systems these partitions may will be auto-mounted...

6x_bootscript to uEnv.txt wrapper

Create wrapper script "6x_bootscript.txt" boot script: (nano 6x_bootscript.txt)

~/6x_bootscript.txt

Using mkimage (u-boot-tools pkg) create boot script

~/

uEnv.txt based bootscript

Create uEnv.txt boot script: (nano uEnv.txt)

~/uEnv.txt

Copy 6x_bootscript/uEnv.txt to the boot partition:

~/

Install Kernel and Root File System

To help new users, since the kernel version can change on a daily basis. The kernel building scripts listed on this page will now give you a hint of what kernel version was built.

Copy and paste that "export kernel_version=4.X.Y-Z" exactly as shown in your own build/desktop environment and hit enter to create an environment variable to be used later.

Copy Root File System

~/

Copy Kernel Image

Kernel Image:

~/

Copy Kernel Device Tree Binaries

~/

Copy Kernel Modules

~/

File Systems Table (/etc/fstab)

Remove microSD/SD card

SPI Flash Recovery

i.MX6x SABRE Lite SPI Flash Recovery

Comments

Comments, feedback, and questions can be sent to: eewiki@digikey.com
Please use the Digi-Key's TechForum: TechForum