added v2-hdmi-rpi3 config for rpi3 model a (#20)

This commit is contained in:
Yura80 2020-12-14 05:59:57 -05:00 committed by GitHub
parent 53a5d19e3b
commit 28b4f20ef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 81 additions and 0 deletions

View File

@ -13,6 +13,7 @@ _variants=(
v0-hdmiusb:rpi3
v2-hdmi:zerow
v2-hdmi:rpi3
v2-hdmi:rpi4
v2-hdmiusb:rpi4

View File

@ -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

0
configs/kvmd/main/v2-hdmiusb-generic.yaml Executable file → Normal file
View File

View File

@ -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

View File

@ -0,0 +1 @@
s/rootwait/cma=128M rootwait/g

View File

@ -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"