Archlinuxarm on chip

Jump to: navigation, search


- version 0.4 (2016-08-29) [1]

- version 0.5 Beta1 (2017-02-13) [2] EXPERIMENTAL!!!

Current status

The system is stable, everything I tested so far worked fine.

What was tested and works well:

  • basic system stability
  • wifi
  • usb
  • tty on g_serial
  • composite video output
  • gpio

What is NOT working:

  • bluetooth
  • audio jack

What was not tested:

  • GPU
  • HDMI and VGA modules (I dont have them)
  • microphone

Known issues

Bluetooth does not seem to be working - this will be fixed in 0.5 Audio jack - no progress yet

Installing Arch

Prerequisities: you need fastboot (from android-tools) and sunxi-fel (from sunxi-tools)

Clone my repository:

git clone
cd chip-arch

Download rootfs image (make sure to download this to the chip-arch directory): See Download section at the top of this page

Start your chip in FEL mode.

Run installation script: ./

After installation, chip should boot to arch linux automatically. The first boot may take a few seconds longer, because ubifs is being extended to use 4GB of flash. After system boots, you should see something like this in your dmesg:

[269351.173142] usb 3-1: new high-speed USB device number 116 using xhci_hcd
[269351.356305] cdc_acm 3-1:2.0: ttyACM0: USB ACM device

use this tty to connect to your chip and configure wifi, default accounts are (alarm/alarm) and (root/root).

Building from sources

If you want to build the image yourself, use following commands (for now you need armv7 machine for this, I will add proper cross-compiling support soon)

git clone
cd chip-arch-build
git submodule init
git submodule update

the build may take a few hours, depending on your machine. After the build is done, copy following files to one directory:

  • rootfs image (ubi.img.sparse)
  • SPL (CHIP-u-boot/spl/sunxi-spl.bin and CHIP-u-boot/spl/sunxi-spl-with-ecc.bin)
  • uboot (it needs to be padded to 4MB, use following command

dd if=CHIP-u-boot/u-boot-dtb.bin of=padded_uboot bs=4M conv=sync )

  • uboot script image, use following command to create it:

mkimage -A arm -T script -C none -n "flash CHIP" -d configs/uboot_script uboot-script.img

then you can just run the installation script and enjoy your new system :)