mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
BOOTSCRIPT="boot-$BOARD.cmd:boot.cmd"
|
|
OFFSET=16
|
|
|
|
KERNELSOURCE='https://github.com/LeMaker/linux-actions'
|
|
KERNELBRANCH='branch:linux-3.10.y'
|
|
KERNELDIR='linux-s500'
|
|
|
|
CPUMIN=408000
|
|
CPUMAX=1104000
|
|
GOVERNOR=interactive
|
|
|
|
case $BOARD in
|
|
guitar)
|
|
BOOTSOURCE='https://github.com/LeMaker/u-boot-actions'
|
|
BOOTBRANCH='branch:s500-master'
|
|
BOOTDIR='u-boot-s500'
|
|
UBOOT_TARGET_MAP="u-boot-dtb.img;;$SRC/lib/packages/blobs/s500/s500-bootloader-guitar.bin u-boot-dtb.img"
|
|
SERIALCON=ttyS3
|
|
;;
|
|
|
|
roseapple)
|
|
BOOTSOURCE='https://github.com/xapp-le/u-boot'
|
|
BOOTBRANCH='branch:merge-20160113'
|
|
BOOTDIR='u-boot-roseapple'
|
|
BOOTPATCHDIR='u-boot-roseapple'
|
|
UBOOT_TARGET_MAP="u-boot-dtb.img;;$SRC/lib/packages/blobs/s500/s500-bootloader-roseapple.bin u-boot-dtb.img"
|
|
SERIALCON=ttyS2
|
|
;;
|
|
esac
|
|
|
|
write_uboot_platform()
|
|
{
|
|
[ -f "$1/s500-bootloader-guitar.bin" ] && dd if=$1/s500-bootloader-guitar.bin of=$2 bs=512 seek=4097 conv=fsync > /dev/null 2>&1
|
|
[ -f "$1/s500-bootloader-roseapple.bin" ] && dd if=$1/s500-bootloader-roseapple.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
|
|
}
|
|
|
|
family_tweaks()
|
|
{
|
|
printf "blacklist wlan_8723bs_vq0\nblacklist ctp_gslX680\nblacklist ctp_gsl3680\n" > $CACHEDIR/$SDCARD/etc/modprobe.d/blacklist-guitar.conf
|
|
printf "blacklist gsensor_mir3da\nblacklist gsensor_stk8313\nblacklist gsensor_bma222\nblacklist lightsensor_ltr301\n" >> $CACHEDIR/$SDCARD/etc/modprobe.d/blacklist-guitar.conf
|
|
gzip < $SRC/lib/bin/splash/udoo.bmp > $CACHEDIR/$SDCARD/boot/boot_logo.bmp.gz
|
|
}
|