ubitux / archlinuxarm-orangepi_zero

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository can be used to create an ArchLinuxARM image for the OrangePi Zero board.

Dependencies

  • make
  • bsdtar (libarchive)
  • python2
  • uboot-tools
  • sudo
  • fdisk

Prerequisite

In order to build the image, you need a working ARM toolchain.

Here is a simple way to get one:

git clone https://github.com/crosstool-ng/crosstool-ng
cd crosstool-ng
./bootstrap
./configure --enable-local
make
./ct-ng arm-unknown-eabi
./ct-ng build

Preparing the files

Run make (specifying jobs with -jX is supported and recommended).

This will provide:

  • the ArchLinuxARM armv7 default rootfs (ArchLinuxARM-armv7-latest.tar.gz)
  • an u-boot image compiled for the OrangePi Zero (u-boot-sunxi-with-spl.bin)
  • a boot script (boot.scr) to be copied in /boot

Installing the distribution

Run make install BLOCK_DEVICE=/dev/mmcblk0 with the appropriate value for BLOCK_DEVICE.

This is running commands similar to any other AllWinner ArchLinuxARM installation.

Ethernet

In order to get ethernet working, you will need to downgrade to the 4.13-rc7 since the network support has been reverted in 54f70f52e3. You can install the package with pacman -U /root/linux-armv7-rc-4.13.rc7-1-armv7h.pkg.tar.xz using the serial interface.

Goodies

If you have a serial cable and miniterm.py installed (python-pyserial), make serial will open a session with the appropriate settings.

TODO

  • upstream to ArchLinuxARM

About


Languages

Language:Makefile 99.5%Language:Batchfile 0.5%