forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenio.conf
More file actions
55 lines (44 loc) · 2.11 KB
/
Copy pathgenio.conf
File metadata and controls
55 lines (44 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
declare -g LINUXFAMILY=genio
declare -g OVERLAY_DIR="/boot/dtb/mediatek/overlay"
declare -g ARCH=arm64
declare -g GOVERNOR=performance
declare -g INSTALL_ARMBIAN_FIRMWARE=no
# U-Boot bootscript configuration
declare -g BOOTCONFIG="none" # Skip U-Boot compilation
declare -g BOOTSCRIPT="boot-genio.cmd:boot.cmd" # Use custom boot script for Genio (compatible with U-Boot without itest/setexpr/bootz)
declare -g BOOTENV_FILE="genio.txt" # Boot environment template for armbianEnv.txt
# GRUB and UEFI configuration (legacy, may be removed)
declare -g UEFI_GRUB_TERMINAL="gfxterm" # Use graphics terminal for GRUB
declare -g UEFI_GRUB_TIMEOUT=3 # GRUB menu timeout
declare -g SERIALCON="ttyS0" # Serial console for GRUB | TODO: Figure out if we can get Grub via HDMI too
declare -g BOARD_FIRMWARE_INSTALL="-full" # Install full firmware for UEFI support
# GRUB configuration with DTB support
declare -g GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0,921600 root=LABEL=armbi_root rootwait rootfstype=ext4 efi=noruntime"
# Kernel configuration
case $BRANCH in
collabora)
declare -g LINUXCONFIG="linux-genio-$BRANCH"
declare -g KERNEL_MAJOR_MINOR="6.18"
declare -g KERNELPATCHDIR='genio-1200-collabora'
declare -g KERNELSOURCE='https://gitlab.collabora.com/mediatek/aiot/linux.git'
declare -g KERNELBRANCH='branch:mediatek-next'
declare -g EXTRAWIFI="no"
declare -g INSTALL_HEADERS="yes"
;;
vendor)
declare -g LINUXCONFIG="linux-genio-vendor"
declare -g KERNEL_MAJOR_MINOR="5.15"
declare -g KERNELPATCHDIR='genio-1200-vendor'
declare -g KERNELSOURCE='https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-mtk/+git/jammy'
declare -g KERNELBRANCH='branch:master-next'
declare -g EXTRAWIFI="no"
declare -g INSTALL_HEADERS="no" #Leads to build error bc custom ubuntu folder for oem drivers
family_tweaks() {
echo "blacklist snd-mixer-oss" > $SDCARD/etc/modprobe.d/blacklist-genio.conf
echo "blacklist snd-pcm-oss" >> $SDCARD/etc/modprobe.d/blacklist-genio.conf
}
;;
esac
# Version string control
declare -g KERNEL_SKIP_MAKEFILE_VERSION="yes"
declare -g LOCALVERSION="-${BRANCH}-${LINUXFAMILY}"