
Orange Pi User Manual
Shenzhen Xunlong Software Co., Ltd.
www.orangepi.org
25
www.xunlong.tv
VI.
Construct Compilation Environment and Make
Rootfs Image
1
.
Construct Compilation Environment
sudo apt-get update
sudo apt-get install qemu-user-static
If your development environment is not Ubuntu16.04, please make sure the gcc-arm-linux-gnueabihf
and gcc-aarch64-linux-gnu compile tool train less than 6.0.
2
.
Download Linux Rootfs Source Code Package
Take example for Ubuntu16.04:
We could get SDK from Ubuntu cdimage:
http://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/
Dowload ubuntu-base-16.04.1-base-arm64.tar.gz and unzip it:
mkdir rootfs
sudo tar -xpf ubuntu-base-16.04.1-base-arm64.tar.gz -C rootfs
3
.
Modify Rootfs and Add Customize Software
sudo cp -b /etc/resolv.conf rootfs/etc/resolv.conf
sudo cp /usr/bin/qemu-aarch64-static rootfs/usr/bin/
# Enter into root system
sudo chroot rootfs /bin/bash
# Update software library and install software
apt update
apt upgrade
# according to you installation need
apt install build-essential vim ping ssh, etc.