summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorYura80 <[email protected]>2020-12-14 05:59:57 -0500
committerGitHub <[email protected]>2020-12-14 13:59:57 +0300
commit28b4f20ef339d9f559a66cb8a9900877600d2519 (patch)
tree26fd0952e1f40e4d45ff5f4874da3819d36158f9 /configs
parent53a5d19e3b11b26e905804e40321670416c46bf6 (diff)
added v2-hdmi-rpi3 config for rpi3 model a (#20)
Diffstat (limited to 'configs')
-rw-r--r--configs/kvmd/main/v2-hdmi-rpi3.yaml64
-rw-r--r--[-rwxr-xr-x]configs/kvmd/main/v2-hdmiusb-generic.yaml0
-rw-r--r--configs/os/boot-config/v2-hdmi-rpi3.txt10
-rw-r--r--configs/os/cmdline/v2-hdmi-rpi3.sed1
-rw-r--r--configs/os/udev/v2-hdmi-rpi3.rules5
5 files changed, 80 insertions, 0 deletions
diff --git a/configs/kvmd/main/v2-hdmi-rpi3.yaml b/configs/kvmd/main/v2-hdmi-rpi3.yaml
new file mode 100644
index 00000000..5b319c04
--- /dev/null
+++ b/configs/kvmd/main/v2-hdmi-rpi3.yaml
@@ -0,0 +1,64 @@
+# Don't touch this file otherwise your device may stop working.
+# Use override.yaml to modify required settings.
+# You can find a working configuration in /usr/share/kvmd/configs.default/kvmd.
+
+override: !include override.yaml
+
+logging: !include logging.yaml
+
+kvmd:
+ server:
+ unix: /run/kvmd/kvmd.sock
+
+ auth: !include auth.yaml
+
+ hid:
+ type: otg
+ keyboard:
+ device: /dev/kvmd-hid-keyboard
+ mouse:
+ device: /dev/kvmd-hid-mouse
+
+ atx:
+ type: gpio
+ power_led_pin: 24
+ hdd_led_pin: 22
+ power_switch_pin: 23
+ reset_switch_pin: 27
+
+ msd:
+ type: otg
+
+ streamer:
+ unix: /run/kvmd/ustreamer.sock
+ cmd:
+ - "/usr/bin/ustreamer"
+ - "--device=/dev/kvmd-video"
+ - "--persistent"
+ - "--dv-timings"
+ - "--format=uyvy"
+ - "--encoder=omx"
+ - "--glitched-resolutions=720x480,720x576"
+ - "--workers=3"
+ - "--quality={quality}"
+ - "--desired-fps={desired_fps}"
+ - "--drop-same-frames=30"
+ - "--last-as-blank=0"
+ - "--unix={unix}"
+ - "--unix-rm"
+ - "--unix-mode=0660"
+ - "--exit-on-parent-death"
+ - "--process-name-prefix={process_name_prefix}"
+ - "--notify-parent"
+ - "--no-log-colors"
+
+ipmi:
+ kvmd:
+ unix: /run/kvmd/kvmd.sock
+
+vnc:
+ kvmd:
+ unix: /run/kvmd/kvmd.sock
+
+ streamer:
+ unix: /run/kvmd/ustreamer.sock
diff --git a/configs/kvmd/main/v2-hdmiusb-generic.yaml b/configs/kvmd/main/v2-hdmiusb-generic.yaml
index 1f96865b..1f96865b 100755..100644
--- a/configs/kvmd/main/v2-hdmiusb-generic.yaml
+++ b/configs/kvmd/main/v2-hdmiusb-generic.yaml
diff --git a/configs/os/boot-config/v2-hdmi-rpi3.txt b/configs/os/boot-config/v2-hdmi-rpi3.txt
new file mode 100644
index 00000000..93f623d0
--- /dev/null
+++ b/configs/os/boot-config/v2-hdmi-rpi3.txt
@@ -0,0 +1,10 @@
+# See /boot/overlays/README for all available options
+initramfs initramfs-linux.img followkernel
+
+hdmi_force_hotplug=1
+gpu_mem=256
+start_x=1
+enable_uart=1
+dtoverlay=tc358743
+dtoverlay=disable-bt
+dtoverlay=dwc2,dr_mode=peripheral
diff --git a/configs/os/cmdline/v2-hdmi-rpi3.sed b/configs/os/cmdline/v2-hdmi-rpi3.sed
new file mode 100644
index 00000000..803b9b03
--- /dev/null
+++ b/configs/os/cmdline/v2-hdmi-rpi3.sed
@@ -0,0 +1 @@
+s/rootwait/cma=128M rootwait/g
diff --git a/configs/os/udev/v2-hdmi-rpi3.rules b/configs/os/udev/v2-hdmi-rpi3.rules
new file mode 100644
index 00000000..0cd04cba
--- /dev/null
+++ b/configs/os/udev/v2-hdmi-rpi3.rules
@@ -0,0 +1,5 @@
+# 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=="3f801000.csi|3f801000.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"