Switch MiQi to mainline U-boot. Support starts at 2017.05, currently attached to master branch. Tested
This commit is contained in:
parent
6c7084e7d1
commit
bbe299398a
@ -1,15 +1,16 @@
|
||||
BOOTSCRIPT="boot-rockchip.cmd:boot.cmd"
|
||||
BOOTENV_FILE='rockchip-default.txt'
|
||||
UBOOT_TARGET_MAP=";;$SRC/lib/bin/rk3288_boot.bin u-boot-dtb.img spl/u-boot-spl-dtb.bin"
|
||||
UBOOT_TARGET_MAP=";;$SRC/lib/bin/rk3288_boot.bin u-boot-dtb.bin spl/u-boot-spl-dtb.bin"
|
||||
|
||||
UBOOT_ALT_GCC='> 6.1'
|
||||
|
||||
HAS_UUID_SUPPORT=yes
|
||||
BOOTDELAY=0
|
||||
|
||||
BOOTSOURCE='https://github.com/mqmaker/u-boot-rockchip'
|
||||
BOOTBRANCH='branch:miqi/devel'
|
||||
BOOTDIR='u-boot-miqi'
|
||||
BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
|
||||
BOOTDIR=$MAINLINE_UBOOT_DIR
|
||||
BOOTBRANCH="branch:master"
|
||||
|
||||
SERIALCON=ttyS2
|
||||
|
||||
case $BRANCH in
|
||||
@ -31,31 +32,15 @@ CPUMIN="600000"
|
||||
CPUMAX="1900000"
|
||||
GOVERNOR="conservative"
|
||||
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
dd if=/dev/zero of=$2 bs=1k count=1023 seek=1 status=noxfer > /dev/null 2>&1
|
||||
mkimage -n rk3288 -T rksd -d $1/u-boot-spl-dtb.bin $1/out > /dev/null 2>&1
|
||||
dd if=$1/out of=$2 seek=64 status=noxfer > /dev/null 2>&1
|
||||
dd if=$1/u-boot-dtb.img of=$2 seek=256 status=noxfer > /dev/null 2>&1
|
||||
cat $1/u-boot-dtb.bin >> $1/out
|
||||
dd if=$1/out of=$2 seek=64 conv=notrunc > /dev/null 2>&1
|
||||
}
|
||||
|
||||
if [[ $BOARD == "tinkerboard" ]]; then
|
||||
|
||||
UBOOT_TARGET_MAP=";;$SRC/lib/bin/rk3288_boot.bin u-boot-dtb.bin spl/u-boot-spl-dtb.bin"
|
||||
|
||||
BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
|
||||
BOOTDIR=$MAINLINE_UBOOT_DIR
|
||||
BOOTBRANCH="branch:master"
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
dd if=/dev/zero of=$2 bs=1k count=1023 seek=1 status=noxfer > /dev/null 2>&1
|
||||
mkimage -n rk3288 -T rksd -d $1/u-boot-spl-dtb.bin $1/out > /dev/null 2>&1
|
||||
cat $1/u-boot-dtb.bin >> $1/out
|
||||
dd if=$1/out of=$2 seek=64 conv=notrunc > /dev/null 2>&1
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
family_tweaks()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user