2024-05-17 23:04:34 +08:00
|
|
|
name: AYN Odin 2
|
|
|
|
arch: aarch64
|
|
|
|
soc: qcs8550
|
|
|
|
device: ayn-odin2
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# hypdtbo for platform ABL boot
|
2024-05-17 23:04:34 +08:00
|
|
|
device_suffix: -hypdtbo
|
|
|
|
pacman:
|
|
|
|
install:
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# For regulatory.db
|
2024-05-17 23:04:34 +08:00
|
|
|
- wireless-regdb
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# Qualcomm firmwares for AYN Odin2
|
2024-05-17 23:04:34 +08:00
|
|
|
- linux-firmware-ayn-odin2
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# Mainline kernel for AYN Odin2
|
2024-05-17 23:04:34 +08:00
|
|
|
- linux-ayn-odin2-edge
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# Adreno 740 GPU
|
2024-05-17 23:04:34 +08:00
|
|
|
- mesa-qcom-git
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# Vulkan test tools
|
2024-05-17 23:04:34 +08:00
|
|
|
- vulkan-tools
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# Vulkan dependency
|
2024-05-17 23:04:34 +08:00
|
|
|
- xcb-util-keysyms
|
|
|
|
systemd:
|
|
|
|
disable:
|
2024-05-20 09:56:42 +08:00
|
|
|
# No modem in this device
|
2024-05-17 23:04:34 +08:00
|
|
|
- rmtfs.service
|
|
|
|
filesystem:
|
|
|
|
files:
|
2024-05-20 09:56:42 +08:00
|
|
|
# GamePAD workaround
|
2024-05-17 23:04:34 +08:00
|
|
|
- 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
|
|
|
|
sysconf:
|
|
|
|
chassis: handset
|
|
|
|
environments:
|
2024-05-20 09:56:42 +08:00
|
|
|
# Force to use zink driver for OpenGL
|
2024-05-17 23:04:34 +08:00
|
|
|
__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
|
2024-05-21 11:26:18 +08:00
|
|
|
path: /boot
|
|
|
|
kernel: Image
|
|
|
|
initramfs: initramfs-linux.img
|
|
|
|
devicetree: dtbs/${platform}/${soc}-${device}${device_suffix}.dtb
|
2024-05-17 23:04:34 +08:00
|
|
|
mkinitcpio:
|
|
|
|
files:
|
2024-05-20 09:56:42 +08:00
|
|
|
# Put these firmware to initramfs for boot
|
|
|
|
# TODO: do not put they into initramfs
|
2024-05-17 23:04:34 +08:00
|
|
|
- /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
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# Generic qualcomm related config
|
2024-05-17 23:04:34 +08:00
|
|
|
- device/qcom
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# USB Gadget tools
|
2024-05-17 23:04:34 +08:00
|
|
|
- packages/systemd-gadget
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# OpenSSH Server
|
2024-05-17 23:04:34 +08:00
|
|
|
- packages/openssh
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# Text editor
|
2024-05-17 23:04:34 +08:00
|
|
|
- packages/editor
|
2024-05-20 09:56:42 +08:00
|
|
|
|
|
|
|
# Bluetooth related services
|
2024-05-17 23:04:34 +08:00
|
|
|
- packages/bluez
|