62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
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'
|
|
|
|
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=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:linux-4.19.y'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
|
|
KERNEL_USE_GCC='> 7.0'
|
|
;;
|
|
|
|
dev)
|
|
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:master'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
|
|
KERNEL_USE_GCC='> 7.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"
|
|
echo "#Allow ttyAML0 root" >> $SDCARD/etc/securetty
|
|
echo "ttyAML0" >> $SDCARD/etc/securetty
|
|
}
|
|
|
|
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/
|
|
}
|