What you need¶
- Solid Run I2EX-300-D
- MicroSD card
- micro-USB to USB cable
- Alpine Linux armhf generic arm build (.tgz file)
On your Linux workstation¶
Download alpine-uboot-3.6.1-armhf.tar.gz
Connect the MicroSD card to the workstation
Partition the MicroSD card with two partitions:
#1 should be of type 0xc, bootable and have a vfat file system on it (size 250 to 1000MB). #2 should be of type 0x83 and does not need to have a filesystem
Create a vfat file system on the first partition, mount it and unpack the alpine tar.gz in it. (Note: replace N with the name if the microSD card)
# mkfs.vfat /dev/sdN1 # mount /dev/sdN1 /mnt # cd /mnt # tar xfz /tmp/alpine-uboot-3.6.1-armhf.tar.gz
Edit extlinux/extlinux.conf
and add console=ttymxc0,115200
to the APPEND line, after the change:
# tail -2 extlinux/extlinux.conf DEVICETREEDIR /boot/dtbs APPEND modules=loop,squashfs,sd-mod,usb-storage quiet console=ttymxc0,115200
Install SPL and u-boot on the microSD card
# dd if=./u-boot/mx6cuboxi/SPL of=/dev/sdN bs=1k seek=1 status=none # dd if=./u-boot/mx6cuboxi/u-boot.img of=/dev/sdN bs=1k seek=69 status=none
unmount the MicroSD card
# sync # cd / # umount /mnt
Install minicom and set it up for the Cubox (115200 8n1 and /dev/ttyUSBn)
On the Cubox¶
- Mount the microSD card in the Cubox (note: upside down)
- Connect a microUSB cable to the microUSB port on the Cubox and the other end to your workstation
- Connect the power to the Cubox
In minicom you will now see
U-Boot SPL 2017.01 (Apr 28 2017 - 05:20:21) Trying to boot from MMC1 U-Boot 2017.01 (Apr 28 2017 - 05:20:21 +0000) CPU: Freescale i.MX6D rev1.5 996 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 22C Reset cause: POR Board: MX6 Cubox-i DRAM: 1 GiB MMC: FSL_SDHC: 0 *** Warning - bad CRC, using default environment No panel detected: default to HDMI Display: HDMI (1024x768) In: serial Out: serial Err: serial Net: FEC Hit any key to stop autoboot: 0
When the system is booted login and use setup-alpine
(use mmcblk0p1
for config store).
You can setup /dev/mmcblk0p2
for /home
or use it for something else of you choice after you are done with setup-alpine
.
Disable hw-clock and commit the config:
# rc-update add swclock boot # enable the software clock # rc-update del hwclock boot # disable the hardware clock # lbu commit -d
Note reboot does not work on Cubox, you must power cycle it.