Skip to content

Instantly share code, notes, and snippets.

@falsovsky
Created July 6, 2019 23:25
Show Gist options
  • Save falsovsky/9fcc20d6cc7f8ae73ff105fca2248b36 to your computer and use it in GitHub Desktop.
Save falsovsky/9fcc20d6cc7f8ae73ff105fca2248b36 to your computer and use it in GitHub Desktop.
opipc
#!/bin/bash
set -e
rm -rf root/*
cd u-boot
git pull
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- -j4 orangepi_pc_defconfig
PYTHON=python2 make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- -j4
cp u-boot-sunxi-with-spl.bin ../root
cd ..
cd linux
git pull
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- zImage dtbs modules -j4
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- INSTALL_MOD_PATH=~/opipc/root modules_install -j4
cp arch/arm/boot/zImage ../root
cp arch/arm/boot/dts/sun8i-h3-orangepi-pc.dtb ../root
cd ..
cd sunxi-mali
export ARCH=arm
export CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi-
export KDIR=~/opipc/linux
export INSTALL_MOD_PATH=~/opipc/root
./build.sh -r r6p2 -b
./build.sh -r r6p2 -i
./build.sh -r r6p2 -c
cd ..
cd root
tar cfvz root.tar.gz u-boot-sunxi-with-spl.bin zImage sun8i-h3-orangepi-pc.dtb lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment