34 lines
862 B
Plaintext
34 lines
862 B
Plaintext
|
|
BOOTLOADER='https://github.com/hardkernel/u-boot.git'
|
|
BOOTBRANCH='odroidc-v2011.03'
|
|
BOOTSOURCE='u-boot-odroidc1'
|
|
UBOOT_NEEDS_GCC='< 5.0'
|
|
|
|
case $BRANCH in
|
|
default)
|
|
LINUXKERNEL='https://github.com/hardkernel/linux'
|
|
KERNELBRANCH='odroidc-3.10.y'
|
|
LINUXSOURCE='linux-odroidc1'
|
|
;;
|
|
|
|
next)
|
|
LINUXKERNEL='https://github.com/tobetter/linux'
|
|
KERNELBRANCH='odroidxu4-v4.2'
|
|
LINUXSOURCE='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
|
|
}
|