From 4d7b439443070d15c21e0f6cfa763656b85fe0ac Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 31 Aug 2020 21:00:15 +0300 Subject: rpi1 --- configs/kvmd/main/v0-hdmi-rpi.yaml | 62 ++++++++++++++++++++++++++ configs/kvmd/main/v0-hdmiusb-rpi.yaml | 72 +++++++++++++++++++++++++++++++ configs/os/boot-config/v0-hdmi-rpi.txt | 9 ++++ configs/os/boot-config/v0-hdmiusb-rpi.txt | 7 +++ configs/os/cmdline/v0-hdmi-rpi.sed | 3 ++ configs/os/cmdline/v0-hdmiusb-rpi.sed | 2 + configs/os/udev/v0-hdmi-rpi.rules | 4 ++ configs/os/udev/v0-hdmiusb-rpi.rules | 4 ++ 8 files changed, 163 insertions(+) create mode 100644 configs/kvmd/main/v0-hdmi-rpi.yaml create mode 100644 configs/kvmd/main/v0-hdmiusb-rpi.yaml create mode 100644 configs/os/boot-config/v0-hdmi-rpi.txt create mode 100644 configs/os/boot-config/v0-hdmiusb-rpi.txt create mode 100644 configs/os/cmdline/v0-hdmi-rpi.sed create mode 100644 configs/os/cmdline/v0-hdmiusb-rpi.sed create mode 100644 configs/os/udev/v0-hdmi-rpi.rules create mode 100644 configs/os/udev/v0-hdmiusb-rpi.rules (limited to 'configs') diff --git a/configs/kvmd/main/v0-hdmi-rpi.yaml b/configs/kvmd/main/v0-hdmi-rpi.yaml new file mode 100644 index 00000000..81c476b9 --- /dev/null +++ b/configs/kvmd/main/v0-hdmi-rpi.yaml @@ -0,0 +1,62 @@ +# 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: serial + reset_pin: 4 + device: /dev/kvmd-hid + + atx: + type: gpio + power_led_pin: 24 + hdd_led_pin: 22 + power_switch_pin: 23 + reset_switch_pin: 27 + + msd: + type: disabled + + 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/v0-hdmiusb-rpi.yaml b/configs/kvmd/main/v0-hdmiusb-rpi.yaml new file mode 100644 index 00000000..879d304d --- /dev/null +++ b/configs/kvmd/main/v0-hdmiusb-rpi.yaml @@ -0,0 +1,72 @@ +# 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: serial + reset_pin: 4 + device: /dev/kvmd-hid + + atx: + type: gpio + power_led_pin: 24 + hdd_led_pin: 22 + power_switch_pin: 23 + reset_switch_pin: 27 + + msd: + type: disabled + + streamer: + quality: 0 + resolution: 1920x1080 + available_resolutions: + - 1920x1080 + - 1600x1200 + - 1360x768 + - 1280x1024 + - 1280x960 + - 1280x720 + - 1024x768 + - 800x600 + - 720x576 + - 720x480 + - 640x480 + unix: /run/kvmd/ustreamer.sock + cmd: + - "/usr/bin/ustreamer" + - "--device=/dev/kvmd-video" + - "--persistent" + - "--format=jpeg" + - "--resolution={resolution}" + - "--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/os/boot-config/v0-hdmi-rpi.txt b/configs/os/boot-config/v0-hdmi-rpi.txt new file mode 100644 index 00000000..ad8fa478 --- /dev/null +++ b/configs/os/boot-config/v0-hdmi-rpi.txt @@ -0,0 +1,9 @@ +# See /boot/overlays/README for all available options +initramfs initramfs-linux.img followkernel + +hdmi_force_hotplug=1 +gpu_mem=64 +start_x=1 +enable_uart=1 +dtoverlay=tc358743 +dtoverlay=disable-bt diff --git a/configs/os/boot-config/v0-hdmiusb-rpi.txt b/configs/os/boot-config/v0-hdmiusb-rpi.txt new file mode 100644 index 00000000..5d41ab3c --- /dev/null +++ b/configs/os/boot-config/v0-hdmiusb-rpi.txt @@ -0,0 +1,7 @@ +# See /boot/overlays/README for all available options +initramfs initramfs-linux.img followkernel + +hdmi_force_hotplug=1 +gpu_mem=16 +enable_uart=1 +dtoverlay=disable-bt diff --git a/configs/os/cmdline/v0-hdmi-rpi.sed b/configs/os/cmdline/v0-hdmi-rpi.sed new file mode 100644 index 00000000..81cc40cb --- /dev/null +++ b/configs/os/cmdline/v0-hdmi-rpi.sed @@ -0,0 +1,3 @@ +s/rootwait/cma=64M rootwait/g +s/console=ttyAMA0\,115200//g +s/kgdboc=ttyAMA0\,115200//g diff --git a/configs/os/cmdline/v0-hdmiusb-rpi.sed b/configs/os/cmdline/v0-hdmiusb-rpi.sed new file mode 100644 index 00000000..57f42700 --- /dev/null +++ b/configs/os/cmdline/v0-hdmiusb-rpi.sed @@ -0,0 +1,2 @@ +s/console=ttyAMA0\,115200//g +s/kgdboc=ttyAMA0\,115200//g diff --git a/configs/os/udev/v0-hdmi-rpi.rules b/configs/os/udev/v0-hdmi-rpi.rules new file mode 100644 index 00000000..90812eaa --- /dev/null +++ b/configs/os/udev/v0-hdmi-rpi.rules @@ -0,0 +1,4 @@ +# 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=="20801000.csi|20801000.csi1", GROUP="kvmd", SYMLINK+="kvmd-video", TAG+="systemd" +KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid" diff --git a/configs/os/udev/v0-hdmiusb-rpi.rules b/configs/os/udev/v0-hdmiusb-rpi.rules new file mode 100644 index 00000000..933f7337 --- /dev/null +++ b/configs/os/udev/v0-hdmiusb-rpi.rules @@ -0,0 +1,4 @@ +# 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=="video0", SUBSYSTEM=="video4linux", GROUP="kvmd", SYMLINK+="kvmd-video" +KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid" -- cgit v1.2.3