armbian-build/config/sources/cubox.conf
2016-10-10 19:36:51 +03:00

58 lines
1.7 KiB
Plaintext

BOOTSOURCE='https://github.com/SolidRun/u-boot-imx6'
BOOTBRANCH='branch:imx6'
BOOTDIR='u-boot-cubox'
BOOTSCRIPT="boot-cubox.cmd:boot.cmd"
UBOOT_NEEDS_GCC='< 5.0'
KERNEL_NEEDS_GCC='< 5.0'
case $BRANCH in
default)
KERNELSOURCE='https://github.com/linux4kix/linux-linaro-stable-mx6'
KERNELBRANCH='branch:linux-linaro-lsk-v3.14-mx6'
KERNELDIR='linux-cubox'
;;
next)
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELBRANCH=$MAINLINE_KERNEL_BRANCH
KERNELDIR=$MAINLINE_KERNEL_DIR
;;
dev)
KERNELSOURCE='https://github.com/SolidRun/linux-fslc'
KERNELBRANCH='branch:3.14-1.0.x-mx6-sr'
KERNELDIR='linux-cubox'
;;
esac
CPUMIN=396000
CPUMAX=996000
GOVERNOR=interactive
SERIALCON=ttymxc0
UBOOT_FILES="SPL u-boot.img"
write_uboot_platform()
{
dd if=$1/SPL of=$2 bs=512 seek=2 status=noxfer > /dev/null 2>&1
dd if=$1/u-boot.img of=$2 bs=1K seek=42 status=noxfer > /dev/null 2>&1
}
family_tweaks()
{
# default lirc configuration
sed -e 's/DEVICE=""/DEVICE="\/dev\/lirc0"/g' -i $CACHEDIR/sdcard/etc/lirc/hardware.conf
sed -e 's/DRIVER="UNCONFIGURED"/DRIVER="default"/g' -i $CACHEDIR/sdcard/etc/lirc/hardware.conf
cp $SRC/lib/config/lirc.conf.cubox-i $CACHEDIR/sdcard/etc/lirc/lircd.conf
install -m 755 $SRC/lib/bin/brcm_patchram_plus_cubox $CACHEDIR/sdcard/usr/local/bin/brcm_patchram_plus
cp $SRC/lib/scripts/brcm4330 $CACHEDIR/sdcard/etc/default
install -m 755 $SRC/lib/scripts/brcm4330-patch $CACHEDIR/sdcard/etc/init.d/brcm4330-patch
#chroot $CACHEDIR/sdcard /bin/bash -c "LC_ALL=C LANG=C update-rc.d brcm4330-patch defaults>> /dev/null"
if [[ $BRANCH == next && -f $CACHEDIR/sdcard/boot/boot.cmd ]]; then
sed -e 's/console=tty1 //g' -i $CACHEDIR/sdcard/boot/boot.cmd
fi
}