aboutsummaryrefslogtreecommitdiff
path: root/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc
diff options
from:
to:
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-08-03 21:15:01 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-08-03 21:15:14 +0700
commita776fe5f94c6b673498addecf2e8835de286d424 (patch)
tree6175b4ac7161bb8f8a7a34a4998a5ad575f01efc /root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc
parent6ecf2b2f21e4063df705ac7e8b385a2a50c1f89f (diff)
downloadkiwi-descriptions-a776fe5f94c6b673498addecf2e8835de286d424.tar.gz
kiwi-descriptions-a776fe5f94c6b673498addecf2e8835de286d424.zip
feat: kiwi descriptions adaptation for surface pro 12"
Diffstat (limited to 'root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc')
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/anaconda/conf.d/90-surface-pro-12-inch.conf19
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dracut.conf.d/surface-pro-12-inch.conf24
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/cmdline1
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/devicetree1
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/install.conf1
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/hexagonrpc.service10
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/iio-sensor-proxy.service11
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service13
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/udev/rules.d/61-sensors-surface-pro-12-inch.rules1
9 files changed, 81 insertions, 0 deletions
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/anaconda/conf.d/90-surface-pro-12-inch.conf b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/anaconda/conf.d/90-surface-pro-12-inch.conf
new file mode 100644
index 0000000..0b46109
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/anaconda/conf.d/90-surface-pro-12-inch.conf
@@ -0,0 +1,19 @@
+# Surface Pro 12" (Snapdragon X1P-42-100): do not hide the GRUB menu.
+#
+# /etc/anaconda/profile.d/fedora-workstation.conf sets menu_auto_hide = True,
+# and os-release here has VARIANT_ID=workstation, so anaconda selects that
+# profile. Its grub2.py then writes both variables into grubenv:
+#
+# grub2-editenv - set menu_auto_hide=1 boot_success=1
+#
+# deliberately, "so that the menu is hidden on the boot after install". On this
+# firmware a hidden menu means GRUB counts down GRUB_TIMEOUT with nothing on
+# screen and then crashes during the hand-off, so the very first boot of a fresh
+# install always fails; it only succeeds from the second attempt, once the menu
+# is drawn. Keeping the menu visible avoids that path entirely.
+#
+# conf.d is read after profile.d and is documented as the override location, and
+# this file only needs to exist in the live installer environment -- it has no
+# effect on, and is not needed by, the installed system.
+[Bootloader]
+menu_auto_hide = False
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dracut.conf.d/surface-pro-12-inch.conf b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dracut.conf.d/surface-pro-12-inch.conf
new file mode 100644
index 0000000..9c7a9bd
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dracut.conf.d/surface-pro-12-inch.conf
@@ -0,0 +1,24 @@
+# Surface Pro 12" (Snapdragon X1P-42-100)
+#
+# Keep the ADSP/CDSP remoteproc driver out of the initramfs.
+#
+# qcom_q6v5_pas has auto_boot set, so it powers up the DSPs the moment it
+# probes. In a hostonly initramfs it gets pulled in and probes at ~1.7s, long
+# before root is mounted, and the firmware it needs lives on the root
+# filesystem:
+#
+# remoteproc remoteproc0: adsp is available
+# Direct firmware load for .../qcadsp8380.mbn failed with error -2
+# remoteproc remoteproc0: request_firmware failed: -2
+#
+# remoteproc does not retry after that, so both DSPs stay offline for the whole
+# boot -- which means no glink edge, no fastrpc devices, and therefore no
+# sensors. Nothing in the initramfs needs the DSPs to mount root, so deferring
+# the driver until after switch-root lets auto_boot find its firmware and
+# succeed. The alternative, install_items with the blobs, adds ~45MB to every
+# initramfs for no benefit.
+#
+# dracut reads this from the target's /etc/dracut.conf.d during anaconda's
+# initramfs regeneration, so it survives installation (unlike /etc/default/grub,
+# which anaconda rewrites from a fixed key set).
+omit_drivers+=" qcom_q6v5_pas "
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/cmdline b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/cmdline
new file mode 100644
index 0000000..9479627
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/cmdline
@@ -0,0 +1 @@
+rootflags=subvol=root clk_ignore_unused pd_ignore_unused systemd.tpm2_wait=0 rhgb quiet
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/devicetree b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/devicetree
new file mode 100644
index 0000000..37226e7
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/devicetree
@@ -0,0 +1 @@
+qcom/x1p42100-microsoft-surface-pro-12-inch.dtb
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/install.conf b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/install.conf
new file mode 100644
index 0000000..03aec7d
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/kernel/install.conf
@@ -0,0 +1 @@
+BOOT_ROOT=/boot
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/hexagonrpc.service b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/hexagonrpc.service
new file mode 100644
index 0000000..5b252fd
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/hexagonrpc.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=HexagonRPC Service
+After=network.target
+
+[Service]
+ExecStart=/usr/local/bin/hexagonrpcd -f /dev/fastrpc-adsp-secure -s
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/iio-sensor-proxy.service b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/iio-sensor-proxy.service
new file mode 100644
index 0000000..f0eb446
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/iio-sensor-proxy.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=IIO Sensor Proxy Service
+After=network.target hexagonrpc.service
+Requires=hexagonrpc.service
+
+[Service]
+ExecStart=/usr/libexec/iio-sensor-proxy
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service
new file mode 100644
index 0000000..538d79a
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Wire up Surface Pro rear camera (media-ctl pipeline)
+After=dev-media0.device
+Wants=dev-media0.device
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+ExecStart=/usr/local/bin/wireupcameras.sh
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/udev/rules.d/61-sensors-surface-pro-12-inch.rules b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/udev/rules.d/61-sensors-surface-pro-12-inch.rules
new file mode 100644
index 0000000..e6ddb1f
--- /dev/null
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/udev/rules.d/61-sensors-surface-pro-12-inch.rules
@@ -0,0 +1 @@
+ACTION=="add|change", SUBSYSTEM=="misc", KERNEL=="fastrpc-adsp-secure", ENV{ACCEL_MOUNT_MATRIX}="-1, 0, 0; 0, -1, 0; 0, 0, 1"