Prepare to move u-boot installation code to board templates
This commit is contained in:
parent
88de4f89cd
commit
70e35098c8
@ -26,3 +26,11 @@ esac
|
||||
CPUMIN=396000
|
||||
CPUMAX=996000
|
||||
GOVERNOR=interactive
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
@ -26,3 +26,10 @@ esac
|
||||
CPUMIN=800000
|
||||
CPUMAX=1600000
|
||||
GOVERNOR=ondemand
|
||||
|
||||
UBOOT_FILES="u-boot.mmc"
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
dd if=$1/u-boot.mmc of=$2 bs=512 seek=1 status=noxfer > /dev/null 2>&1
|
||||
}
|
||||
|
||||
@ -12,3 +12,11 @@ LINUXSOURCE="linux-udoo"
|
||||
CPUMIN=392000
|
||||
CPUMAX=996000
|
||||
GOVERNOR=interactive
|
||||
|
||||
UBOOT_FILES="SPL u-boot.img"
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
dd if=$1/SPL of=$2 bs=1k seek=1 status=noxfer > /dev/null 2>&1
|
||||
dd if=$1/u-boot.img of=$2 bs=1k seek=69 conv=fsync > /dev/null 2>&1
|
||||
}
|
||||
|
||||
@ -21,3 +21,13 @@ esac
|
||||
CPUMIN=504000
|
||||
CPUMAX=1728000
|
||||
GOVERNOR=interactive
|
||||
|
||||
UBOOT_FILES="bl1.bin.hardkernel 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
|
||||
}
|
||||
|
||||
@ -10,3 +10,13 @@ LINUXSOURCE='linux-odroidc2'
|
||||
CPUMIN=500000
|
||||
CPUMAX=2016000
|
||||
GOVERNOR=conservative
|
||||
|
||||
UBOOT_FILES="bl1.bin.hardkernel 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=97 conv=fsync > /dev/null 2>&1
|
||||
dd if=/dev/zero of=$2 seek=1249 count=799 bs=512 conv=fsync > /dev/null 2>&1
|
||||
}
|
||||
|
||||
@ -20,3 +20,14 @@ esac
|
||||
CPUMIN=600000
|
||||
CPUMAX=2000000
|
||||
GOVERNOR=conservative
|
||||
|
||||
UBOOT_FILES="bl1.bin.hardkernel bl2.bin.hardkernel u-boot.bin tzsw.bin.hardkernel"
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
dd if=$1/bl1.bin.hardkernel of=$2 seek=1 conv=fsync > /dev/null 2>&1
|
||||
dd if=$1/bl2.bin.hardkernel of=$2 seek=31 conv=fsync > /dev/null 2>&1
|
||||
dd if=$1/u-boot.bin of=$2 bs=512 seek=63 conv=fsync > /dev/null 2>&1
|
||||
dd if=$1/tzsw.bin.hardkernel of=$2 seek=719 conv=fsync > /dev/null 2>&1
|
||||
dd if=/dev/zero of=$2 seek=1231 count=32 bs=512 conv=fsync > /dev/null 2>&1
|
||||
}
|
||||
|
||||
@ -10,3 +10,11 @@ LINUXSOURCE='linux-s500'
|
||||
CPUMIN=408000
|
||||
CPUMAX=1104000
|
||||
GOVERNOR=interactive
|
||||
|
||||
UBOOT_FILES="bootloader.bin u-boot-dtb.img"
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
dd if=$1/bootloader.bin of=$2 bs=512 seek=4097 conv=fsync > /dev/null 2>&1
|
||||
dd if=$1/u-boot-dtb.img of=$2 bs=512 seek=6144 conv=fsync > /dev/null 2>&1
|
||||
}
|
||||
|
||||
@ -18,3 +18,11 @@ case $BRANCH in
|
||||
GOVERNOR=ondemand
|
||||
;;
|
||||
esac
|
||||
|
||||
UBOOT_FILES="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
dd if=/dev/zero of=$2 bs=1k count=1023 seek=1 status=noxfer > /dev/null 2>&1
|
||||
dd if=$1/u-boot-sunxi-with-spl.bin of=$2 bs=1024 seek=8 status=noxfer > /dev/null 2>&1
|
||||
}
|
||||
|
||||
@ -10,3 +10,10 @@ LINUXSOURCE='linux-toradex'
|
||||
# CPUMIN=
|
||||
# CPUMAX=
|
||||
GOVERNOR=ondemand
|
||||
|
||||
UBOOT_FILES=""
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@ -20,3 +20,11 @@ esac
|
||||
CPUMIN=392000
|
||||
CPUMAX=996000
|
||||
GOVERNOR=interactive
|
||||
|
||||
UBOOT_FILES="SPL u-boot.img"
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
dd if=$1/SPL of=$2 bs=1k seek=1 status=noxfer > /dev/null 2>&1
|
||||
dd if=$1/u-boot.img of=$2 bs=1k seek=69 conv=fsync > /dev/null 2>&1
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user