arch-image-builder/configs/device/ayn-odin2.yaml
BigfootACA 37c8f1ff21 configs: device/ayn-odin2: enable packages/adbd
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
2024-05-24 11:58:16 +08:00

129 lines
3.1 KiB
YAML

name: AYN Odin 2
arch: aarch64
soc: qcs8550
device: ayn-odin2
# hypdtbo for platform ABL boot
device_suffix: -hypdtbo
pacman:
install:
# For regulatory.db
- wireless-regdb
# Qualcomm firmwares for AYN Odin2
- linux-firmware-ayn-odin2
# Mainline kernel for AYN Odin2
- linux-ayn-odin2-edge
# Adreno 740 GPU
- mesa-qcom-git
# Vulkan test tools
- vulkan-tools
# Vulkan dependency
- xcb-util-keysyms
systemd:
disable:
# No modem in this device
- rmtfs.service
enable:
- bt-update-mac.service
- net-update-mac@wlp1s0.service
filesystem:
files:
# GamePAD workaround
- path: /etc/udev/rules.d/99-${device}.rules
content: |
SUBSYSTEM=="input", ATTRS{name}=="Ayn Odin2 Gamepad", MODE="0666", ENV{ID_INPUT_MOUSE}="0", ENV{ID_INPUT_JOYSTICK}="1"
- path: /etc/systemd/logind.conf.d/power-key-lock.conf
content: |
[Login]
HandlePowerKey=lock
- path: /etc/systemd/system.conf.d/show-status.conf
content: |
[Manager]
ShowStatus=yes
- path: /etc/systemd/sleep.conf.d/no-suspend.conf
content: |
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
- path: /etc/systemd/resolved.conf.d/no-mdns.conf
content: |
[Resolve]
MulticastDNS=no
LLMNR=no
- path: /etc/NetworkManager/conf.d/80-no-wifi-powersave.conf
content: |
[connection]
wifi.powersave = 2
sysconf:
chassis: handset
environments:
# Force to use zink driver for OpenGL
__GLX_VENDOR_LIBRARY_NAME: mesa
MESA_LOADER_DRIVER_OVERRIDE: zink
GALLIUM_DRIVER: zink
kernel:
cmdline:
- clk_ignore_unused
- pd_ignore_unused
- panic=30
- loglevel=8
- allow_mismatched_32bit_el0
path: /boot
kernel: Image
initramfs: initramfs-linux.img
devicetree: dtbs/${platform}/${soc}-${device}${device_suffix}.dtb
mkinitcpio:
files:
# Put these firmware to initramfs for boot
# TODO: do not put they into initramfs
- /usr/lib/firmware/qcom/sm8550/ayn/odin2/adsp.mbn
- /usr/lib/firmware/qcom/sm8550/ayn/odin2/adsp_dtb.mbn
- /usr/lib/firmware/qcom/sm8550/ayn/odin2/cdsp.mbn
- /usr/lib/firmware/qcom/sm8550/ayn/odin2/cdsp_dtb.mbn
- /usr/lib/firmware/ath12k/WCN7850/hw2.0/amss.bin
- /usr/lib/firmware/ath12k/WCN7850/hw2.0/regdb.bin
- /usr/lib/firmware/ath12k/WCN7850/hw2.0/board-2.bin
- /usr/lib/firmware/ath12k/WCN7850/hw2.0/m3.bin
- /usr/lib/firmware/qca/hmtbtfw20.tlv
- /usr/lib/firmware/qca/hmtnv20.bin
- /usr/lib/firmware/qcom/sm8550/ayn/odin2/a740_zap.mbn
- /usr/lib/firmware/qcom/gmu_gen70200.bin
- /usr/lib/firmware/qcom/a740_sqe.fw
- /usr/lib/firmware/regulatory.db.p7s
- /usr/lib/firmware/regulatory.db
+also:
- os/archlinuxarm
- repo/archlinuxcn
- repo/renegade-project
# Generic qualcomm related config
- device/qcom
# USB Gadget tools
- packages/systemd-gadget
# Android Debug Bridge Daemon via USB Gadget
- packages/adbd
# OpenSSH Server
- packages/openssh
# Text editor
- packages/editor
# Bluetooth related services
- packages/bluez
# Persistent MAC Address
- common/persistent-mac
# Root without password
- common/wheel-nopasswd