mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
141 lines
4.3 KiB
Bash
141 lines
4.3 KiB
Bash
#!/bin/bash
|
|
|
|
case $BOARD in
|
|
|
|
cubieboard | cubietruck)
|
|
###########################################################################
|
|
### cubieboard | cubietruck ###
|
|
###########################################################################
|
|
|
|
BOOTLOADER="https://github.com/patrickhwood/u-boot -b pat-cb2-ct"
|
|
BOOTSOURCE="u-boot-sunxi"
|
|
BOOTCONFIG="cubietruck"
|
|
CPUMIN="480000"
|
|
CPUMAX="1010000"
|
|
LINUXKERNEL="https://github.com/dan-and/linux-sunxi"
|
|
LINUXSOURCE="linux-sunxi"
|
|
LOCALVERSION="-sunxi"
|
|
FIRMWARE="bin/ap6210.zip"
|
|
DTBS=""
|
|
DOCS="https://github.com/igorpecovnik/Cubietruck-Debian.wiki.git"
|
|
DOCSDIR="docs-banana"
|
|
MISC1="https://github.com/linux-sunxi/sunxi-tools.git"
|
|
MISC1_DIR="sunxi-tools"
|
|
MISC2="https://github.com/matzrh/sunxi-lirc"
|
|
MISC2_DIR="sunxi-lirc"
|
|
MISC3="https://github.com/pvaret/rtl8192cu-fixes"
|
|
MISC3_DIR="rtl8192cu-fixes"
|
|
MISC4="https://github.com/notro/fbtft"
|
|
MISC4_DIR="$LINUXSOURCE/drivers/video/fbtft"
|
|
;;
|
|
|
|
cubietruck-next)
|
|
###########################################################################
|
|
### cubietruck mainline kernel ###
|
|
###########################################################################
|
|
|
|
BOOTLOADER="https://github.com/jwrdegoede/u-boot-sunxi"
|
|
BOOTSOURCE="u-boot-sunxi-next"
|
|
BOOTCONFIG="Cubietruck_defconfig"
|
|
CPUMIN="480000"
|
|
CPUMAX="1010000"
|
|
LINUXKERNEL="https://github.com/linux-sunxi/linux-sunxi -b sunxi-next"
|
|
LINUXSOURCE="linux-sunxi-next"
|
|
LOCALVERSION="-sunxi"
|
|
DTBS="sun7i-a20-cubietruck.dtb"
|
|
DOCS="https://github.com/igorpecovnik/Cubietruck-Debian.wiki.git"
|
|
DOCSDIR="docs-banana"
|
|
MISC1="https://github.com/linux-sunxi/sunxi-tools.git"
|
|
MISC1_DIR="sunxi-tools"
|
|
MISC2=""
|
|
MISC2_DIR=""
|
|
MISC3="https://github.com/dz0ny/rt8192cu"
|
|
MISC3_DIR="rt8192cu"
|
|
MISC4="https://github.com/notro/fbtft"
|
|
MISC4_DIR="$LINUXSOURCE/drivers/video/fbtft"
|
|
;;
|
|
|
|
bananapi-next)
|
|
###########################################################################
|
|
### bananapi mainline kernel ###
|
|
###########################################################################
|
|
|
|
BOOTLOADER="https://github.com/jwrdegoede/u-boot-sunxi"
|
|
BOOTSOURCE="u-boot-sunxi-next"
|
|
BOOTCONFIG="Bananapi_config"
|
|
CPUMIN="480000"
|
|
CPUMAX="1010000"
|
|
LINUXKERNEL="https://github.com/linux-sunxi/linux-sunxi -b sunxi-next"
|
|
LINUXSOURCE="linux-sunxi-next"
|
|
LOCALVERSION="-sunxi"
|
|
DTBS="sun7i-a20-bananapi.dtb"
|
|
DOCS="https://github.com/igorpecovnik/Cubietruck-Debian.wiki.git"
|
|
DOCSDIR="docs-banana"
|
|
MISC1="https://github.com/linux-sunxi/sunxi-tools.git"
|
|
MISC1_DIR="sunxi-tools"
|
|
MISC2=""
|
|
MISC2_DIR=""
|
|
MISC3="https://github.com/dz0ny/rt8192cu"
|
|
MISC3_DIR="rt8192cu"
|
|
MISC4="https://github.com/notro/fbtft"
|
|
MISC4_DIR="$LINUXSOURCE/drivers/video/fbtft"
|
|
;;
|
|
|
|
|
|
bananapi)
|
|
###########################################################################
|
|
### bananapi ###
|
|
###########################################################################
|
|
|
|
BOOTLOADER="https://github.com/LeMaker/u-boot-bananapi"
|
|
BOOTSOURCE="u-boot-banana"
|
|
BOOTCONFIG="Bananapi_config"
|
|
CPUMIN="480000"
|
|
CPUMAX="1010000"
|
|
LINUXKERNEL="https://github.com/LeMaker/linux-bananapi"
|
|
LINUXKERNEL="https://github.com/dan-and/linux-sunxi"
|
|
LINUXSOURCE="linux-sunxi"
|
|
LOCALVERSION="-sunxi"
|
|
FIRMWARE="bin/ap6210.zip"
|
|
DTBS=""
|
|
DOCS="https://github.com/igorpecovnik/Cubietruck-Debian.wiki.git"
|
|
DOCSDIR="docs-banana"
|
|
MISC1="https://github.com/linux-sunxi/sunxi-tools.git"
|
|
MISC1_DIR="sunxi-tools"
|
|
MISC2="https://github.com/matzrh/sunxi-lirc"
|
|
MISC2_DIR="sunxi-lirc"
|
|
MISC3=""
|
|
MISC3_DIR=""
|
|
MISC4="https://github.com/notro/fbtft"
|
|
MISC4_DIR="$LINUXSOURCE/drivers/video/fbtft"
|
|
;;
|
|
|
|
cubox-i)
|
|
###########################################################################
|
|
### cubox-i & hummingboard ###
|
|
###########################################################################
|
|
|
|
BOOTLOADER="https://github.com/SolidRun/u-boot-imx6"
|
|
BOOTSOURCE="u-boot-cubox"
|
|
BOOTCONFIG="mx6_cubox-i_config"
|
|
CPUMIN="792000"
|
|
CPUMAX="996000"
|
|
LINUXKERNEL="https://github.com/linux4kix/linux-linaro-stable-mx6"
|
|
LINUXSOURCE="linux-cubox-next"
|
|
LOCALVERSION="-cubox"
|
|
DTBS="imx6q-cubox-i.dtb imx6dl-cubox-i.dtb imx6dl-hummingboard.dtb imx6q-hummingboard.dtb"
|
|
DOCS="https://github.com/igorpecovnik/Cubietruck-Debian.wiki.git"
|
|
DOCSDIR="docs-cubox"
|
|
MISC1=""
|
|
MISC1_DIR=""
|
|
MISC2=""
|
|
MISC2_DIR=""
|
|
MISC3="https://github.com/dz0ny/rt8192cu"
|
|
MISC3_DIR="rt8192cu"
|
|
MISC4="https://github.com/notro/fbtft"
|
|
MISC4_DIR="$LINUXSOURCE/drivers/video/fbtft"
|
|
;;
|
|
*) echo "Board configuration not found"
|
|
exit
|
|
;;
|
|
esac |