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'
|
|
|
|
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'
|
|
;;
|
|
|
|
next)
|
|
KERNELSOURCE='https://github.com/tobetter/linux'
|
|
KERNELBRANCH='branch:odroidxu4-v4.2'
|
|
KERNELDIR='linux-odroidxu-next'
|
|
;;
|
|
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()
|
|
{
|
|
install -m 755 $SRC/lib/scripts/c1_init.sh $CACHEDIR/$SDCARD/usr/local/bin
|
|
# systemd service for c1_init.sh
|
|
cat <<-EOF > $CACHEDIR/$SDCARD/etc/systemd/system/odroid-c1-hdmi.service
|
|
[Unit]
|
|
Description=Odroid C1 HDMI init
|
|
DefaultDependencies=no
|
|
Wants=rsyslog.service systemd-journald.service
|
|
Before=syslog.target sysinit.target
|
|
After=local-fs.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/local/bin/c1_init.sh
|
|
RemainAfterExit=no
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target
|
|
EOF
|
|
chroot $CACHEDIR/$SDCARD /bin/bash -c "systemctl --no-reload enable odroid-c1-hdmi.service >/dev/null 2>&1"
|
|
}
|