- freescale
This is a page about the Freescale based i.MX6; i.MX6q SABRE Board for Smart Devices.
- Availability
- Vendor Documentation
- Notes
- Basic Requirements
- ARM Cross Compiler: GCC
- Bootloader: U-Boot
- Linux Kernel
- Root File System
- Debian 8
- Ubuntu 16.04 LTS
- Root File System (small flash)
- Debian 8 (small flash)
- Setup microSD card
- Install Kernel and Root File System
- Copy Root File System
- Set uname_r in /boot/uEnv.txt
- Copy Kernel Image
- Copy Kernel Device Tree Binaries
- Copy Kernel Modules
- File Systems Table (/etc/fstab)
- Networking
- Remove microSD/SD card
- Comments
Availability
Boards:
MCIMX6Q-SDB at Digi-Key
Vendor Documentation
- i.MX6q: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q
- SABRE Board for Smart Devices Based on the i.MX 6 Series: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX6SABREBRD
Notes
From: http://cache.freescale.com/files/32bit/doc/quick_start_guide/SABRESDB_IMX6_QSG.pdf
SW6: Boot from SD3 (underneath next to hdmi/ethernet)
D1 |
D2 |
D3 |
D4 |
D5 |
D6 |
D7 |
D8 |
---|---|---|---|---|---|---|---|
off |
on |
off |
off |
off |
off |
on |
off |
Basic Requirements
- Running a recent release of Debian, Fedora or Ubuntu; without OS Virtualization Software.
- ARM Cross Compiler – Linaro: http://www.linaro.org
- Linaro Toolchain Binaries: http://www.linaro.org/downloads/
- Bootloader
- Das U-Boot – the Universal Boot Loader: http://www.denx.de/wiki/U-Boot
- Source: http://git.denx.de/?p=u-boot.git;a=summary
- Linux Kernel
- Linus's Mainline tree: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
- ARM based rootfs
- Debian: https://www.debian.org
- Ubuntu: http://www.ubuntu.com
ARM Cross Compiler: GCC
This is a pre-built (64bit) version of Linaro GCC that runs on generic linux, sorry (32bit) x86 users, it's time to upgrade...
Download/Extract:
Test:
Bootloader: U-Boot
Das U-Boot – the Universal Boot Loader: http://www.denx.de/wiki/U-Boot
eewiki.net patch archive: https://github.com/eewiki/u-boot-patches
Download:
Patches:
Configure and Build:
Linux Kernel
This script will build the kernel, modules, device tree binaries and copy them to the deploy directory.
Download:
For v4.1.x (Longterm 4.1.x):
For v4.1.x-rt (Longterm 4.1.x + Real-Time Linux):
For v4.4.x (Longterm 4.4.x):
For v4.4.x-rt (Longterm 4.4.x + Real-Time Linux):
For v4.6.x (Stable):
For v4.7.x (Prepatch):
Build:
Root File System
Debian 8
User |
Password |
---|---|
debian |
temppwd |
root |
root |
Download:
Verify:
Extract:
Ubuntu 16.04 LTS
User |
Password |
---|---|
ubuntu |
temppwd |
Download:
Verify:
Extract:
Root File System (small flash)
A Root File System around 100Mb in size, for flash applications.
Debian 8 (small flash)
User |
Password |
---|---|
debian |
temppwd |
root |
root |
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:
Install Bootloader:
Create Partition Layout:
With util-linux v2.26, sfdisk was rewritten and is now based on libfdisk.
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.
Mount Partition:
On most systems these partitions may will be auto-mounted...
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
Set uname_r in /boot/uEnv.txt
Copy Kernel Image
Kernel Image:
Copy Kernel Device Tree Binaries
Copy Kernel Modules
File Systems Table (/etc/fstab)
Networking
Edit: /etc/network/interfaces
Add:
Remove microSD/SD card
Comments
Comments, feedback, and questions can be sent to: [email protected]
Please use the Digi-Key Forum: TechXchange Community