BOOTSOURCE='https://github.com/hardkernel/u-boot.git' BOOTBRANCH='branch:odroidc-v2011.03' BOOTDIR='u-boot-odroidc1' UBOOT_USE_GCC='< 4.9' BOOTSCRIPT="boot-odroid-c1.ini:boot.ini" UBOOT_TARGET_MAP=';;sd_fuse/bl1.bin.hardkernel sd_fuse/u-boot.bin' HAS_UUID_SUPPORT=yes KERNEL_IMAGE_TYPE=uImage case $BRANCH in default) KERNELSOURCE='https://github.com/hardkernel/linux' KERNELBRANCH='branch:odroidc-3.10.y' KERNELDIR='linux-odroidc1' KERNEL_USE_GCC='< 4.9' CAN_BUILD_STRETCH=no ;; next) KERNELSOURCE='https://github.com/tobetter/linux' KERNELBRANCH='branch:odroidxu4-v4.2' KERNELDIR='linux-odroidxu-next' KERNEL_USE_GCC='> 6.0' ;; esac CPUMIN=504000 CPUMAX=1632000 GOVERNOR=interactive write_uboot_platform() { dd if=$1/bl1.bin.hardkernel of=$2 bs=1 count=442 conv=fsync > /dev/null 2>&1 dd if=$1/bl1.bin.hardkernel of=$2 bs=512 skip=1 seek=1 conv=fsync > /dev/null 2>&1 dd if=$1/u-boot.bin of=$2 bs=512 seek=64 conv=fsync > /dev/null 2>&1 dd if=/dev/zero of=$2 seek=1024 count=32 bs=512 conv=fsync > /dev/null 2>&1 } family_tweaks() { # enable service installed from BSP chroot $SDCARD /bin/bash -c "systemctl --no-reload enable odroid-c1-hdmi.service >/dev/null 2>&1" } family_tweaks_bsp() { install -m 755 $SRC/packages/bsp/odroid/c1_init.sh $destination/usr/lib/armbian/c1_init.sh cp $SRC/packages/bsp/odroid/odroid-c1-hdmi.service $destination/lib/systemd/system/ }