Differences between revisions 19 and 20
Revision 19 as of 2015-04-24 05:35:59
Size: 3879
Editor: matej
Comment: update link to kernel and u-boot build for cubox
Revision 20 as of 2015-04-24 05:49:09
Size: 3888
Editor: matej
Comment: more link fixes to vendor web
Deletions are marked like this. Additions are marked like this.
Line 40: Line 40:
 * The [[http://imx.solid-run.com/forums/|CuBox-i discussion forum]]
 * The [[http://imx.solid-run.com/wiki/|CuBox-i wiki]]
 * The [[http://www.solid-run.com/community/|CuBox-i Community]]
 * The [[http://wiki.solid-run.com/CuBox-i_Hardware/|CuBox-i wiki]]

CuBox-i support in Debian

This page exists to collate information about the status of support in Debian for the CuBox-i family of devices by SolidRun (CuBox-i1, CuBox-i2, CuBox-i2Ultra, CuBox-i4Pro).

General information

The CuBox-i devices are a series of small-footprint, always-on computers based on the FreeScale i.MX6 chipset.

Bootloader support

The CuBox-i uses U-Boot as a bootloader. As of 2014-03-09, upstream provides a git tree based on U-Boot 2013.10. A port of upstream U-Boot support to 2014.01 (the version in jessie/sid) is available here and was included in the Debian package u-boot 2014.04-1 (see: 741127).

The CuBox-i U-Boot uses SPL (allowing the same U-Boot image to be used across multiple models), and should be installed to the SD card using the layout described here. Note that this version of U-Boot will also support reading the second-stage bootloader from a FAT filesystem on the first partition of the device; however, since U-Boot also reads its environment from an offset of 384K on the SD card, there is 342K of reserved space at the front of the disk which will be otherwise unused. It is therefore recommended to install U-Boot to the embedded space at the front of the disk, and not to set up a dedicated boot partition on the SD card.

Kernel support

The CuBox-i should have basic support with the armmp linux kernel (3.14+) in Debian Jessie, including serial console, usb, ethernet, mmc and ir receiver. The 3.15.1-1~exp1+ kernel in experimental also includes support for framebuffer video over HDMI. To enable additional features, you may need to explore one of the following options:

Installing Debian

There is no official Debian install media for the ?CuBox-i. The most straightforward way to install Debian on the ?CuBox-i is by using debootstrap. Since qemu has full userspace support for the ARM architecture, it's possible to cross-debootstrap your disk entirely from a Debian host system of another architecture. The qemu-debootstrap command automates this process, and gives you a fully configured root filesystem as output.

Assuming that your SD card is available on your host system as /dev/sdb, and you've created a single partition to install to (remembering that the partition should start at sector 1024):

 mkfs.ext4 /dev/sdb1
 mount /dev/sdb1 /mnt
 apt-get install qemu-user-static debootstrap
 qemu-debootstrap --foreign --arch=armhf sid /mnt http://http.debian.net/debian
 chroot /mnt passwd root
 echo 'T0:23:respawn:/sbin/getty -L ttymxc0 115200 vt100' >> /mnt/etc/inittab
 umount /mnt

Further info