mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
v3 package
This commit is contained in:
parent
26487721a7
commit
b66358eea8
92
configs/kvmd/main/v3-hdmi-rpi4.yaml
Normal file
92
configs/kvmd/main/v3-hdmi-rpi4.yaml
Normal file
@ -0,0 +1,92 @@
|
||||
# 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
|
||||
h264_bitrate:
|
||||
default: 5000
|
||||
cmd:
|
||||
- "/usr/bin/ustreamer"
|
||||
- "--device=/dev/kvmd-video"
|
||||
- "--persistent"
|
||||
- "--dv-timings"
|
||||
- "--format=uyvy"
|
||||
- "--encoder=omx"
|
||||
- "--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"
|
||||
- "--sink=kvmd::ustreamer::jpeg"
|
||||
- "--sink-mode=0660"
|
||||
- "--h264-sink=kvmd::ustreamer::h264"
|
||||
- "--h264-sink-mode=0660"
|
||||
- "--h264-bitrate={h264_bitrate}"
|
||||
- "--h264-gop={h264_gop}"
|
||||
|
||||
gpio:
|
||||
scheme:
|
||||
__v3_usb_breaker__:
|
||||
pin: 5
|
||||
mode: output
|
||||
initial: true
|
||||
pulse:
|
||||
delay: 0
|
||||
|
||||
ipmi:
|
||||
kvmd:
|
||||
unix: /run/kvmd/kvmd.sock
|
||||
|
||||
vnc:
|
||||
kvmd:
|
||||
unix: /run/kvmd/kvmd.sock
|
||||
|
||||
streamer:
|
||||
unix: /run/kvmd/ustreamer.sock
|
||||
|
||||
memsink:
|
||||
jpeg:
|
||||
sink: "kvmd::ustreamer::jpeg"
|
||||
h264:
|
||||
sink: "kvmd::ustreamer::h264"
|
||||
|
||||
server:
|
||||
tls:
|
||||
x509:
|
||||
cert: /etc/kvmd/vnc/ssl/server.crt
|
||||
key: /etc/kvmd/vnc/ssl/server.key
|
||||
19
configs/os/boot-config/v3-hdmi-rpi4.txt
Normal file
19
configs/os/boot-config/v3-hdmi-rpi4.txt
Normal file
@ -0,0 +1,19 @@
|
||||
# See /boot/overlays/README for all available options
|
||||
initramfs initramfs-linux.img followkernel
|
||||
|
||||
hdmi_force_hotplug=1
|
||||
gpu_mem=128
|
||||
enable_uart=1
|
||||
dtoverlay=tc358743
|
||||
dtoverlay=disable-bt
|
||||
dtoverlay=dwc2,dr_mode=peripheral
|
||||
dtparam=act_led_gpio=13
|
||||
|
||||
# HDMI audio capture
|
||||
dtoverlay=tc358743-audio
|
||||
|
||||
# SPI (AUM)
|
||||
dtoverlay=spi0-1cs
|
||||
|
||||
# I2C (display)
|
||||
dtparam=i2c_arm=on
|
||||
1
configs/os/cmdline/v3-hdmi-rpi4.sed
Normal file
1
configs/os/cmdline/v3-hdmi-rpi4.sed
Normal file
@ -0,0 +1 @@
|
||||
s/rootwait/cma=128M rootwait/g
|
||||
4
configs/os/modules-load/v3-hdmi.conf
Normal file
4
configs/os/modules-load/v3-hdmi.conf
Normal file
@ -0,0 +1,4 @@
|
||||
dwc2
|
||||
libcomposite
|
||||
tc358743
|
||||
i2c-dev
|
||||
6
configs/os/udev/v3-hdmi-rpi4.rules
Normal file
6
configs/os/udev/v3-hdmi-rpi4.rules
Normal file
@ -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=="sd[a-z]", SUBSYSTEM=="block", KERNELS=="1-1.4:1.0", GROUP="kvmd", SYMLINK+="kvmd-msd-aum"
|
||||
Loading…
x
Reference in New Issue
Block a user