Last active
January 21, 2019 17:01
Star
You must be signed in to star a gist
pinebook fedora
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 | |
# https://gist.github.com/e-minguez/837054d45b0119fcb2e37e2b0fb16bae | |
# https://github.com/e-minguez/gpd-pocket-fedora | |
LINARO_LATEST_TOOLCHAIN="gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu" | |
sudo dnf clean all | |
sudo dnf update -y | |
sudo dnf groupinstall -y "C Development Tools and Libraries" | |
sudo dnf install -y zlib-devel \ | |
libuuid-devel \ | |
libattr-devel \ | |
libblkid-devel \ | |
libselinux-devel \ | |
libudev-devel \ | |
openssl-devel \ | |
elfutils-libelf-devel \ | |
bc \ | |
git \ | |
wget \ | |
bison \ | |
flex \ | |
swig \ | |
qemu \ | |
qemu-user-static \ | |
bsdtar \ | |
dosfstools \ | |
python2 \ | |
python2-devel \ | |
redhat-rpm-config | |
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 fedora_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 -j $(getconf _NPROCESSORS_ONLN) binrpm-pkg LOCALVERSION=-gpd-custom | |
# 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