armbian-build/config/sources/odroidc1.conf
Igor Pecovnik 031cbd326b C1 fixes
2016-10-23 13:09:09 +02:00

47 lines
1.2 KiB
Plaintext

BOOTSOURCE='https://github.com/hardkernel/u-boot.git'
BOOTBRANCH='branch:odroidc-v2011.03'
BOOTDIR='u-boot-odroidc1'
UBOOT_NEEDS_GCC='< 4.9'
BOOTSCRIPT="boot-odroid-c1.ini:boot.ini"
HAS_UUID_SUPPORT=yes
KERNEL_NEEDS_GCC='< 4.9'
KERNEL_IMAGE_TYPE=uImage
case $BRANCH in
default)
KERNELSOURCE='https://github.com/hardkernel/linux'
KERNELBRANCH='branch:odroidc-3.10.y'
KERNELDIR='linux-odroidc1'
;;
next)
KERNELSOURCE='https://github.com/tobetter/linux'
KERNELBRANCH='branch:odroidxu4-v4.2'
KERNELDIR='linux-odroidxu-next'
;;
esac
CPUMIN=504000
CPUMAX=1728000
GOVERNOR=interactive
UBOOT_FILES="sd_fuse/bl1.bin.hardkernel sd_fuse/u-boot.bin"
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()
{
install -m 755 $SRC/lib/scripts/c1_init.sh $CACHEDIR/sdcard/etc/
sed -e 's/exit 0//g' -i $CACHEDIR/sdcard/etc/rc.local
echo "/etc/c1_init.sh" >> $CACHEDIR/sdcard/etc/rc.local
echo "exit 0" >> $CACHEDIR/sdcard/etc/rc.local
}