How to build:

  • pacman -S dtc android-tools sunxi-tools patch flex bison
  • install from AUR simg-tools
  • install from AUR arm-linux-gnueabihf-gcc
    • correct order of the dependencies (source):
      • arm-linux-gnueabihf-binutils
      • arm-linux-gnueabihf-gcc-stage1, requires flex (source)
      • arm-linux-gnueabihf-linux-api-headers
      • arm-linux-gnueabihf-glibc-headers, requires bison
      • arm-linux-gnueabihf-gcc-stage2, this will remove arm-linux-gnueabihf-gcc-stage1
      • arm-linux-gnueabihf-glibc, this will remove arm-linux-gnueabihf-glibc-headers
      • arm-linux-gnueabihf-gcc, this will remove arm-linux-gnueabihf-gcc-stage2
    • in case of missing GPG keys (source):
      • gpg --recv-keys 13FCEF89DD9E3C4F (req'd by arm-linux-gnueabihf-binutils)
      • gpg --recv-keys BBE43771487328A9 (req'd by arm-linux-gnueabihf-gcc-stage1)
      • gpg --recv-keys 38DBBDC86092693E (req'd by arm-linux-gnueabihf-linux-api-headers)
      • gpg --recv-keys 16792B4EA25340F8 (req'd by arm-linux-gnueabihf-glibc-headers)
  • git clone https://github.com/mydzor/chip-arch-build.git
  • cd chip-arch-build
  • git submodule init
  • git submodule update
  • ./build.sh

More info: http://www.chip-community.org/index.php/Archlinuxarm_on_chip