2023-05-04 18:06:54 +00:00
|
|
|
################################################################################
|
|
|
|
# setup device defaults
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# The TARGET_CPU variable controls which processor should be targeted for
|
|
|
|
# generated code.
|
|
|
|
case $TARGET_ARCH in
|
|
|
|
aarch64)
|
|
|
|
TARGET_KERNEL_ARCH="arm64"
|
|
|
|
TARGET_PATCH_ARCH="aarch64"
|
|
|
|
TARGET_FLOAT="hard"
|
|
|
|
TARGET_CPU="cortex-a35"
|
|
|
|
TARGET_CPU_FLAGS="+crc+fp+simd"
|
|
|
|
TARGET_FPU="fp-armv8"
|
|
|
|
TARGET_FEATURES="64bit"
|
|
|
|
;;
|
|
|
|
arm)
|
|
|
|
TARGET_KERNEL_ARCH="arm64"
|
|
|
|
TARGET_PATCH_ARCH="aarch64"
|
|
|
|
TARGET_FLOAT="hard"
|
|
|
|
TARGET_CPU="cortex-a35"
|
|
|
|
TARGET_CPU_FLAGS="+crc"
|
|
|
|
TARGET_FPU="crypto-neon-fp-armv8"
|
|
|
|
TARGET_FEATURES="32bit"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Kernel target
|
|
|
|
DEVICE_NAME="RK3326"
|
|
|
|
KERNEL_TARGET="Image"
|
|
|
|
BOOTLOADER="u-boot"
|
|
|
|
TRUST_LABEL="trust"
|
|
|
|
PARTITION_TABLE="msdos"
|
2023-10-30 01:20:49 +00:00
|
|
|
DEVICE_DTB=("rk3326-anbernic-rg351m" "rk3326-anbernic-rg351v" "rk3326-odroid-go2" "rk3326-odroid-go2-v11" "rk3326-odroid-go3" "rk3326-powkiddy-rgb10")
|
2023-05-04 18:06:54 +00:00
|
|
|
UBOOT_DTB="${DEVICE_DTB[0]}"
|
|
|
|
UBOOT_CONFIG="odroidgoa_defconfig"
|
|
|
|
PKG_SOC="px30"
|
|
|
|
PKG_DATAFILE="$PKG_RKBIN/bin/rk33/rk3326_ddr_333MHz_v1.15.bin"
|
|
|
|
PKG_LOADER="$PKG_RKBIN/bin/rk33/rk3326_miniloader_v1.28.bin"
|
|
|
|
PKG_BL31="$PKG_RKBIN/bin/rk33/rk3326_bl31_v1.22.elf"
|
|
|
|
PKG_LOAD_ADDR="0x00200000"
|
|
|
|
BOOT_INI=true
|
|
|
|
BOOT_PART="1:1"
|
2023-05-11 19:11:56 +00:00
|
|
|
EXT_LINUX_CONF=false
|
2023-05-04 18:06:54 +00:00
|
|
|
|
|
|
|
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
|
|
|
|
KERNEL_MAKE_EXTRACMD=""
|
2023-05-10 21:15:44 +00:00
|
|
|
KERNEL_MAKE_EXTRACMD=" $(for DTB in "${DEVICE_DTB[@]}"; do echo -n "rockchip/${DTB}.dtb "; done)"
|
2023-05-08 22:47:28 +00:00
|
|
|
|
2023-05-04 18:06:54 +00:00
|
|
|
# Define the CPU
|
|
|
|
HW_CPU="Rockchip RK3326"
|
|
|
|
|
|
|
|
# Display Resolution
|
|
|
|
SPLASH_RESOLUTION="320x480"
|
|
|
|
|
|
|
|
# Mali GPU family
|
|
|
|
MALI_FAMILY="bifrost-g31"
|
|
|
|
GRAPHIC_DRIVERS="panfrost"
|
|
|
|
|
|
|
|
# OpenGL(X) implementation to use (mesa / no)
|
|
|
|
OPENGL="mesa"
|
|
|
|
|
|
|
|
# OpenGL-ES implementation to use (mesa / no)
|
|
|
|
OPENGLES="mesa"
|
|
|
|
|
|
|
|
# Displayserver to use (weston / x11 / no)
|
|
|
|
DISPLAYSERVER="wl"
|
|
|
|
|
|
|
|
# Windowmanager to use (fluxbox / weston / no)
|
|
|
|
WINDOWMANAGER="weston"
|
|
|
|
|
|
|
|
# kernel serial console
|
2023-12-11 14:49:45 +00:00
|
|
|
EXTRA_CMDLINE="quiet rootwait console=ttyFIQ0 console=tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20"
|
2023-05-04 18:06:54 +00:00
|
|
|
|
|
|
|
# additional packages to install
|
2023-05-22 12:49:56 +00:00
|
|
|
ADDITIONAL_PACKAGES=""
|
2023-05-04 18:06:54 +00:00
|
|
|
|
|
|
|
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
|
|
|
|
# Space separated list is supported,
|
|
|
|
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
|
2023-11-08 14:28:18 +00:00
|
|
|
FIRMWARE="misc-firmware wlan-firmware esp8089-firmware"
|
2023-05-04 18:06:54 +00:00
|
|
|
|
|
|
|
# additional drivers to install:
|
|
|
|
# for a list of additional drivers see packages/linux-drivers
|
|
|
|
# Space separated list is supported,
|
|
|
|
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
|
2023-11-08 14:28:18 +00:00
|
|
|
ADDITIONAL_DRIVERS="RTL8812AU RTL8814AU RTL8821AU RTL8821CU RTL88x2BU"
|
2023-05-15 21:10:22 +00:00
|
|
|
|
2023-05-04 18:06:54 +00:00
|
|
|
# build and install driver addons (yes / no)
|
|
|
|
DRIVER_ADDONS_SUPPORT="no"
|
|
|
|
|
|
|
|
# driver addons to install:
|
|
|
|
# for a list of additinoal drivers see packages/linux-driver-addons
|
|
|
|
# Space separated list is supported,
|
|
|
|
DRIVER_ADDONS=""
|
|
|
|
|
|
|
|
# debug tty path
|
|
|
|
DEBUG_TTY="/dev/ttyFIQ0"
|
|
|
|
|
|
|
|
# Disable 32BIT support
|
|
|
|
ENABLE_32BIT="true"
|
|
|
|
|
|
|
|
# build and install bluetooth support (yes / no)
|
2023-08-10 16:23:00 +00:00
|
|
|
BLUETOOTH_SUPPORT="yes"
|
2023-05-04 18:06:54 +00:00
|
|
|
|
|
|
|
# build and install Avahi (Zeroconf) daemon (yes / no)
|
|
|
|
AVAHI_DAEMON="no"
|
|
|
|
|
|
|
|
# build with NFS support (mounting nfs shares via the OS) (yes / no)
|
|
|
|
NFS_SUPPORT="no"
|
|
|
|
|
|
|
|
# build with Samba Client support (mounting samba shares via the OS) (yes / no)
|
|
|
|
SAMBA_SUPPORT="no"
|
|
|
|
|
|
|
|
# build and install Samba Server (yes / no)
|
|
|
|
SAMBA_SERVER="yes"
|
|
|
|
|
|
|
|
# build and install SFTP Server (yes / no)
|
|
|
|
SFTP_SERVER="yes"
|
|
|
|
|
2023-12-22 13:56:32 +00:00
|
|
|
# build and install Simple HTTP Server (yes / no)
|
|
|
|
SIMPLE_HTTP_SERVER="yes"
|
|
|
|
|
2023-05-04 18:06:54 +00:00
|
|
|
# build and install OpenVPN support (yes / no)
|
|
|
|
OPENVPN_SUPPORT="no"
|
|
|
|
|
|
|
|
# build and install diskmounter support (udevil)
|
|
|
|
# this service provide auto mounting support for external drives in the
|
|
|
|
# mediacenter also automount internally drives at boottime via udev (yes / no)
|
|
|
|
UDEVIL="yes"
|
|
|
|
|
|
|
|
# build and install exFAT fuse support (yes / no)
|
|
|
|
EXFAT="yes"
|
|
|
|
|
|
|
|
# build and install NTFS-3G fuse support (yes / no)
|
2023-07-05 18:47:07 +00:00
|
|
|
NTFS3G="no"
|
2023-05-04 18:06:54 +00:00
|
|
|
|
|
|
|
# build and install hfs filesystem utilities (yes / no)
|
|
|
|
HFSTOOLS="no"
|
|
|
|
|
|
|
|
# Support for partitioning and formating disks in initramfs (yes / no)
|
|
|
|
# This adds support for parted and mkfs.ext3/4 to initramfs for OEM usage
|
|
|
|
INITRAMFS_PARTED_SUPPORT="no"
|
|
|
|
|
|
|
|
# build with swap support (yes / no)
|
|
|
|
SWAP_SUPPORT="yes"
|
|
|
|
|
|
|
|
# swap support enabled per default (yes / no)
|
|
|
|
SWAP_ENABLED_DEFAULT="yes"
|
|
|
|
|
|
|
|
# swapfile size if SWAP_SUPPORT=yes in MB
|
|
|
|
SWAPFILESIZE="384"
|
|
|
|
|
|
|
|
# cron support (yes / no)
|
|
|
|
CRON_SUPPORT="no"
|
|
|
|
|
|
|
|
# Settings package name - blank if not required
|
|
|
|
DISTRO_PKG_SETTINGS=""
|
|
|
|
|
|
|
|
# htop tool (yes / no)
|
|
|
|
HTOP_TOOL="yes"
|