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-06-03 13:53:27 +08:00
|
|
|
- linux-ayn-odin2-stable
|
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
|
2024-05-24 03:01:00 +08:00
|
|
|
|
|
|
|
# AYN Odin2 RGB LED Tuner
|
|
|
|
- rgb-led
|
2024-06-03 13:53:27 +08:00
|
|
|
|
|
|
|
# picked by sakuramist
|
|
|
|
- yay
|
|
|
|
- btop
|
|
|
|
- chromium
|
|
|
|
- box64-sd8g2-git
|
|
|
|
- ayn-odin2-meta
|
|
|
|
- base-devel
|
|
|
|
|
2024-05-17 23:04:34 +08:00
|
|
|
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
|
2024-05-24 00:49:08 +08:00
|
|
|
enable:
|
|
|
|
- bt-update-mac.service
|
|
|
|
- net-update-mac@wlp1s0.service
|
2024-06-03 13:53:27 +08:00
|
|
|
- systemd-timesyncd.service
|
2024-05-17 23:04:34 +08:00
|
|
|
filesystem:
|
|
|
|
files:
|
|
|
|
- path: /etc/systemd/system.conf.d/show-status.conf
|
|
|
|
content: |
|
|
|
|
[Manager]
|
|
|
|
ShowStatus=yes
|
|
|
|
- path: /etc/systemd/resolved.conf.d/no-mdns.conf
|
|
|
|
content: |
|
|
|
|
[Resolve]
|
|
|
|
MulticastDNS=no
|
|
|
|
LLMNR=no
|
2024-06-03 13:53:27 +08:00
|
|
|
- path: /etc/dconf/profile/user
|
|
|
|
content: |
|
|
|
|
user-db:user
|
|
|
|
system-db:local
|
|
|
|
- path: /etc/dconf/profile/gdm
|
|
|
|
content: |
|
|
|
|
user-db:user
|
|
|
|
system-db:local
|
|
|
|
- path: /etc/dconf/db/local.d/00-hidpi
|
2024-05-23 17:20:54 +08:00
|
|
|
content: |
|
2024-06-03 13:53:27 +08:00
|
|
|
[org/gnome/mutter]
|
|
|
|
experimental-features=['scale-monitor-framebuffer']
|
|
|
|
- path: /etc/dconf/db/locks/hidpi
|
|
|
|
content: |
|
|
|
|
/org/gnome/mutter/experimental-features
|
|
|
|
- path: /etc/chromium-flags.conf
|
|
|
|
content: |
|
|
|
|
--ozone-platform-hint=auto
|
|
|
|
- path: /var/lib/gdm/.config/monitors.xml
|
|
|
|
content: |
|
|
|
|
<monitors version="2">
|
|
|
|
<configuration>
|
|
|
|
<logicalmonitor>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
|
|
|
<scale>1.5</scale>
|
|
|
|
<primary>yes</primary>
|
|
|
|
<monitor>
|
|
|
|
<monitorspec>
|
|
|
|
<connector>DSI-1</connector>
|
|
|
|
<vendor>unknown</vendor>
|
|
|
|
<product>unknown</product>
|
|
|
|
<serial>unknown</serial>
|
|
|
|
</monitorspec>
|
|
|
|
<mode>
|
|
|
|
<width>1920</width>
|
|
|
|
<height>1080</height>
|
|
|
|
<rate>60.000</rate>
|
|
|
|
</mode>
|
|
|
|
</monitor>
|
|
|
|
</logicalmonitor>
|
|
|
|
</configuration>
|
|
|
|
</monitors>
|
|
|
|
- path: /etc/skel/.config/monitors.xml
|
|
|
|
stage: pre-user
|
|
|
|
content: |
|
|
|
|
<monitors version="2">
|
|
|
|
<configuration>
|
|
|
|
<logicalmonitor>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
|
|
|
<scale>1.5</scale>
|
|
|
|
<primary>yes</primary>
|
|
|
|
<monitor>
|
|
|
|
<monitorspec>
|
|
|
|
<connector>DSI-1</connector>
|
|
|
|
<vendor>unknown</vendor>
|
|
|
|
<product>unknown</product>
|
|
|
|
<serial>unknown</serial>
|
|
|
|
</monitorspec>
|
|
|
|
<mode>
|
|
|
|
<width>1920</width>
|
|
|
|
<height>1080</height>
|
|
|
|
<rate>60.000</rate>
|
|
|
|
</mode>
|
|
|
|
</monitor>
|
|
|
|
</logicalmonitor>
|
|
|
|
</configuration>
|
|
|
|
</monitors>
|
|
|
|
|
2024-05-17 23:04:34 +08:00
|
|
|
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
|
2024-06-03 13:53:27 +08:00
|
|
|
ELECTRON_OZONE_PLATFORM_HINT: auto
|
2024-05-17 23:04:34 +08:00
|
|
|
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
|
|
|
|
2024-05-24 00:51:51 +08:00
|
|
|
# Android Debug Bridge Daemon via USB Gadget
|
|
|
|
- packages/adbd
|
|
|
|
|
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
|
2024-05-23 17:53:13 +08:00
|
|
|
|
2024-05-24 00:49:08 +08:00
|
|
|
# Persistent MAC Address
|
|
|
|
- common/persistent-mac
|
|
|
|
|
2024-05-23 17:53:13 +08:00
|
|
|
# Root without password
|
|
|
|
- common/wheel-nopasswd
|
2024-06-03 13:53:27 +08:00
|
|
|
|
|
|
|
- common/dconf-update
|