mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* Add most recent GCC compilers * Remove obsolete compilers * Adjust compiler for RockpiS Uboot * Remove deprecated compiler definitions * Resolve small bug and building Espressobin * Small cleanup
64 lines
1.6 KiB
Plaintext
64 lines
1.6 KiB
Plaintext
CPUMIN=392000
|
|
CPUMAX=996000
|
|
GOVERNOR=interactive
|
|
SERIALCON=ttymxc0
|
|
ARCH=armhf
|
|
UBOOT_TARGET_MAP=';;SPL:SPL.sdhc u-boot.img:u-boot.img.sdhc'
|
|
|
|
KERNELBRANCH='branch:linux-5.7.y'
|
|
|
|
case $BOARD in
|
|
|
|
udoo)
|
|
|
|
BOOTBRANCH='tag:v2017.11'
|
|
SERIALCON=ttymxc1
|
|
BOOTSCRIPT="boot-udoo.cmd:boot.cmd"
|
|
BOOTENV_FILE='udoo.txt'
|
|
|
|
;;
|
|
|
|
cubox-i)
|
|
|
|
BOOTSOURCE='https://github.com/SolidRun/u-boot.git'
|
|
BOOTBRANCH='branch:v2018.01-solidrun-imx6'
|
|
BOOTSCRIPT='boot-cubox.cmd:boot.cmd'
|
|
BOOTENV_FILE='cubox.txt'
|
|
UBOOT_TARGET_MAP=';emmc;SPL:SPL.emmc u-boot.img:u-boot.img.emmc
|
|
;sdhc;SPL:SPL.sdhc u-boot.img:u-boot.img.sdhc
|
|
;sdhc;SPL:SPL.sata u-boot.img:u-boot.img.sata
|
|
;sdhc;SPL:SPL.spi-flash u-boot.img:u-boot.img.spi-flash'
|
|
|
|
;;
|
|
|
|
wandboard)
|
|
|
|
BOOTBRANCH="branch:v2017.03"
|
|
BOOTSCRIPT='boot-udoo.cmd:boot.cmd'
|
|
BOOTENV_FILE='cubox.txt'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
write_uboot_platform()
|
|
{
|
|
dd if=$1/SPL.sdhc of=$2 bs=1K seek=1 status=noxfer > /dev/null 2>&1
|
|
dd if=$1/u-boot.img.sdhc of=$2 bs=1K seek=69 status=noxfer > /dev/null 2>&1
|
|
}
|
|
|
|
family_tweaks()
|
|
{
|
|
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools"
|
|
}
|
|
|
|
family_tweaks_bsp()
|
|
{
|
|
install -m 644 $SRC/packages/bsp/cubox/99-hdmi_fb0.conf $destination/etc/X11/xorg.conf.d/99-hdmi_fb0.conf
|
|
install -m 755 $SRC/packages/bsp/cubox/brcm_patchram_plus $destination/usr/bin/brcm_patchram_plus
|
|
cp $SRC/packages/bsp/cubox/brcm4330 $destination/etc/default/
|
|
# TODO: replace by a systemd service
|
|
mkdir $destination/etc/init.d/
|
|
install -m 755 $SRC/packages/bsp/cubox/brcm4330-patch $destination/etc/init.d/brcm4330-patch
|
|
}
|