summaryrefslogtreecommitdiff
path: root/configs/os
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-23 21:27:34 +0300
committerMaxim Devaev <[email protected]>2022-11-23 21:27:34 +0300
commit0c25e89f466f5ddfb1263b793cc193382954dcb4 (patch)
tree8326a8ff90ebbfadb0af7f2197ac969fbf72ad88 /configs/os
parent41c8c41e4d6eb52a92b8aaf66245c410e5fb9618 (diff)
nextgen
Diffstat (limited to 'configs/os')
-rw-r--r--configs/os/boot-config/v4mini-hdmi-rpi4.txt21
-rw-r--r--configs/os/boot-config/v4plus-hdmi-rpi4.txt21
-rw-r--r--configs/os/cmdline/v4mini-hdmi-rpi4.sed1
-rw-r--r--configs/os/cmdline/v4plus-hdmi-rpi4.sed1
-rw-r--r--configs/os/modules-load/v4mini-hdmi.conf4
-rw-r--r--configs/os/modules-load/v4plus-hdmi.conf4
-rw-r--r--configs/os/sudoers/v4mini-hdmi2
-rw-r--r--configs/os/sudoers/v4plus-hdmi2
-rw-r--r--configs/os/udev/v4mini-hdmi-rpi4.rules6
-rw-r--r--configs/os/udev/v4plus-hdmi-rpi4.rules6
10 files changed, 68 insertions, 0 deletions
diff --git a/configs/os/boot-config/v4mini-hdmi-rpi4.txt b/configs/os/boot-config/v4mini-hdmi-rpi4.txt
new file mode 100644
index 00000000..abb8e006
--- /dev/null
+++ b/configs/os/boot-config/v4mini-hdmi-rpi4.txt
@@ -0,0 +1,21 @@
+# PiKVM
+# See /boot/overlays/README for all available options
+initramfs initramfs-linux.img followkernel
+
+hdmi_force_hotplug=1
+gpu_mem=128
+enable_uart=1
+dtoverlay=disable-bt
+
+# USB emulation
+dtoverlay=dwc2,dr_mode=peripheral
+
+# Video and audio
+dtoverlay=tc358743,4lane=1
+dtoverlay=tc358743-audio
+
+# I2C (display)
+dtparam=i2c_arm=on
+
+# Clock
+dtoverlay=i2c-rtc,pcf8563
diff --git a/configs/os/boot-config/v4plus-hdmi-rpi4.txt b/configs/os/boot-config/v4plus-hdmi-rpi4.txt
new file mode 100644
index 00000000..abb8e006
--- /dev/null
+++ b/configs/os/boot-config/v4plus-hdmi-rpi4.txt
@@ -0,0 +1,21 @@
+# PiKVM
+# See /boot/overlays/README for all available options
+initramfs initramfs-linux.img followkernel
+
+hdmi_force_hotplug=1
+gpu_mem=128
+enable_uart=1
+dtoverlay=disable-bt
+
+# USB emulation
+dtoverlay=dwc2,dr_mode=peripheral
+
+# Video and audio
+dtoverlay=tc358743,4lane=1
+dtoverlay=tc358743-audio
+
+# I2C (display)
+dtparam=i2c_arm=on
+
+# Clock
+dtoverlay=i2c-rtc,pcf8563
diff --git a/configs/os/cmdline/v4mini-hdmi-rpi4.sed b/configs/os/cmdline/v4mini-hdmi-rpi4.sed
new file mode 100644
index 00000000..803b9b03
--- /dev/null
+++ b/configs/os/cmdline/v4mini-hdmi-rpi4.sed
@@ -0,0 +1 @@
+s/rootwait/cma=128M rootwait/g
diff --git a/configs/os/cmdline/v4plus-hdmi-rpi4.sed b/configs/os/cmdline/v4plus-hdmi-rpi4.sed
new file mode 100644
index 00000000..803b9b03
--- /dev/null
+++ b/configs/os/cmdline/v4plus-hdmi-rpi4.sed
@@ -0,0 +1 @@
+s/rootwait/cma=128M rootwait/g
diff --git a/configs/os/modules-load/v4mini-hdmi.conf b/configs/os/modules-load/v4mini-hdmi.conf
new file mode 100644
index 00000000..f1ede9d1
--- /dev/null
+++ b/configs/os/modules-load/v4mini-hdmi.conf
@@ -0,0 +1,4 @@
+dwc2
+libcomposite
+tc358743
+i2c-dev
diff --git a/configs/os/modules-load/v4plus-hdmi.conf b/configs/os/modules-load/v4plus-hdmi.conf
new file mode 100644
index 00000000..f1ede9d1
--- /dev/null
+++ b/configs/os/modules-load/v4plus-hdmi.conf
@@ -0,0 +1,4 @@
+dwc2
+libcomposite
+tc358743
+i2c-dev
diff --git a/configs/os/sudoers/v4mini-hdmi b/configs/os/sudoers/v4mini-hdmi
new file mode 100644
index 00000000..673d4033
--- /dev/null
+++ b/configs/os/sudoers/v4mini-hdmi
@@ -0,0 +1,2 @@
+kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-remount
+kvmd-pst ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-pst-remount
diff --git a/configs/os/sudoers/v4plus-hdmi b/configs/os/sudoers/v4plus-hdmi
new file mode 100644
index 00000000..673d4033
--- /dev/null
+++ b/configs/os/sudoers/v4plus-hdmi
@@ -0,0 +1,2 @@
+kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-remount
+kvmd-pst ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-pst-remount
diff --git a/configs/os/udev/v4mini-hdmi-rpi4.rules b/configs/os/udev/v4mini-hdmi-rpi4.rules
new file mode 100644
index 00000000..88ba66b1
--- /dev/null
+++ b/configs/os/udev/v4mini-hdmi-rpi4.rules
@@ -0,0 +1,6 @@
+# https://unix.stackexchange.com/questions/66901/how-to-bind-usb-device-under-a-static-name
+# https://wiki.archlinux.org/index.php/Udev#Setting_static_device_names
+KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="fe801000.csi|fe801000.csi1", ATTR{name}=="unicam-image", GROUP="kvmd", SYMLINK+="kvmd-video", TAG+="systemd"
+KERNEL=="hidg0", GROUP="kvmd", SYMLINK+="kvmd-hid-keyboard"
+KERNEL=="hidg1", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse"
+KERNEL=="hidg2", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse-alt"
diff --git a/configs/os/udev/v4plus-hdmi-rpi4.rules b/configs/os/udev/v4plus-hdmi-rpi4.rules
new file mode 100644
index 00000000..88ba66b1
--- /dev/null
+++ b/configs/os/udev/v4plus-hdmi-rpi4.rules
@@ -0,0 +1,6 @@
+# https://unix.stackexchange.com/questions/66901/how-to-bind-usb-device-under-a-static-name
+# https://wiki.archlinux.org/index.php/Udev#Setting_static_device_names
+KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="fe801000.csi|fe801000.csi1", ATTR{name}=="unicam-image", GROUP="kvmd", SYMLINK+="kvmd-video", TAG+="systemd"
+KERNEL=="hidg0", GROUP="kvmd", SYMLINK+="kvmd-hid-keyboard"
+KERNEL=="hidg1", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse"
+KERNEL=="hidg2", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse-alt"