armbian-build/config/sources/cubox.conf
Igor Pečovnik 1221d59233
Build all targets RFC (#1515)
* Introducing build-all-ng
* Implementing REBUILD_IMAGES='board1,board2,...' for rebuilding certain images only
* Add optimisations when building kernels - only cycle trough needed targets. Adding variable for defining whether an image is build, otherwise only BSP is made.
* repository manipulating RFC
* Add bianco deb file that is added by default if repository is clean
* Switch to gpg2 signing method, small bugfix
* Create subdir for debs and debs-beta
* Synaptic bugfix: installing indexing tools https://forum.armbian.com/topic/8021-orange-pi-one-synaptic-package-manager-search-very-slow/?do=findComment&comment=74918
* add all modules by default to Odroid N2, but leave them commented
* Bugfix: not making any builds when selecting kernel_only
* Remove EXTERNAL=yes ... move armbian-config and armbian-firmware into main compilation area, drop others since they are deprecated anyway. This will also enable multi threaded images making
* Move armbian.list to create_sources_list function. Replace NTP by Chrony. Remove armbian-firmware from PACKAGE_LIST and RockPi 4A (#1528)
* Replace NTP by chrony. Remove installion of outdated armbian-firmware from reposity.
* added RockPi 4A
* New format for board config
* Fix Bluetooth dependencies for minimal package - add rfkill to family related installs
* Moving networkd-dispatcher from minimal image
* Cubox-i: update default config
* Improving umount process
* Add purgesource feature
* Add FULL_DESKTOP to install few more applications on top of our desktop - notebooks should * rk3399 default: adjust patches and configuration
* Enable full desktop on most powerfull boards and notebooks

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-01 22:13:13 +02:00

83 lines
2.0 KiB
Plaintext

BOOTSOURCE='https://github.com/SolidRun/u-boot.git'
BOOTDIR='u-boot-cubox'
BOOTBRANCH='branch:v2018.01-solidrun-imx6'
BOOTCONFIG="mx6cuboxi_defconfig"
BOOTSCRIPT='boot-cubox.cmd:boot.cmd'
BOOTENV_FILE='cubox-default.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'
UBOOT_USE_GCC='> 7.0'
KERNEL_USE_GCC='> 7.0'
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELDIR=$MAINLINE_KERNEL_DIR
case $BRANCH in
default)
KERNELSOURCE='https://github.com/SolidRun/linux-stable'
KERNELBRANCH='branch:linux-4.9.y-imx6'
KERNELDIR='linux-imx6'
;;
next)
KERNELBRANCH='branch:linux-5.2.y'
;;
dev)
KERNELBRANCH='branch:linux-5.2.y'
;;
esac
CPUMIN=396000
CPUMAX=996000
GOVERNOR=interactive
SERIALCON=ttymxc0
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
}
if [[ $BOARD == wandboard-quad ]]; then
UBOOT_USE_GCC='> 6.3'
KERNEL_USE_GCC='> 6.3'
CPUMAX=1008000
GOVERNOR=ondemand
BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
BOOTDIR=$MAINLINE_UBOOT_DIR
BOOTBRANCH="branch:v2017.03"
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 seek=69 bs=1k status=noxfer > /dev/null 2>&1
}
fi
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
}