Last active
January 18, 2019 10:25
-
-
Save e-minguez/837054d45b0119fcb2e37e2b0fb16bae to your computer and use it in GitHub Desktop.
WIP: pinebook build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on | |
# https://github.com/gamelaster/pine64-linux-build | |
# https://github.com/ARM-software/arm-trusted-firmware | |
# https://wiki.linaro.org/HowTo/BuildArm64Kernel | |
# https://github.com/anarsoul/linux-build | |
# https://github.com/anarsoul/PKGBUILDs/tree/master/linux-pine64 | |
LINARO_LATEST_TOOLCHAIN="gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu" | |
sudo apt-get install -y \ | |
bc \ | |
device-tree-compiler \ | |
build-essential \ | |
gcc \ | |
make \ | |
git \ | |
libssl-dev \ | |
wget \ | |
bison \ | |
flex \ | |
swig \ | |
python-dev \ | |
binfmt-support \ | |
qemu \ | |
qemu-user-static \ | |
debootstrap \ | |
bsdtar \ | |
dosfstools | |
mkdir -p ~/aarch64-toolchain | |
cd ~/aarch64-toolchain | |
wget https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/${LINARO_LATEST_TOOLCHAIN}.tar.xz | |
tar xf ${LINARO_LATEST_TOOLCHAIN}.tar.xz | |
rm -f ${LINARO_LATEST_TOOLCHAIN}.tar.xz | |
cd ~ | |
git clone https://github.com/gamelaster/pine64-linux-build.git | |
cd pine64-linux-build | |
sed -i -e "s#export CROSS_COMPILE=aarch64-linux-gnu-#export CROSS_COMPILE=~/aarch64-toolchain/${LINARO_LATEST_TOOLCHAIN}/bin/aarch64-linux-gnu-#g" *.sh | |
sudo ./make_empty_image.sh debian_image.img | |
./make_uboot.sh pinebook | |
wget https://github.com/anarsoul/PKGBUILDs/raw/master/linux-pine64/config | |
mv config configs/config_pinebook | |
./make_kernel.sh pinebook | |
# make olddefconfig? | |
sudo ./make_rootfs.sh rootfs debian_stretch_rootfs.tar stretch | |
sudo ./make_image.sh debian_image.img debian_stretch_rootfs.tar pinebook |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment