mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
zerow configs
This commit is contained in:
parent
fa40676136
commit
976130bcd9
2
PKGBUILD
2
PKGBUILD
@ -129,7 +129,7 @@ for _variant in "${_variants[@]}"; do
|
||||
|
||||
install -DTm644 configs/os/sysctl.conf \"\$pkgdir/etc/sysctl.d/99-kvmd.conf\"
|
||||
install -DTm644 configs/os/udev/$_platform-$_board.rules \"\$pkgdir/etc/udev/rules.d/99-kvmd.rules\"
|
||||
install -DTm444 configs/kvmd/main/$_platform.yaml \"\$pkgdir/etc/kvmd/main.yaml\"
|
||||
install -DTm444 configs/kvmd/main/$_platform-$_board.yaml \"\$pkgdir/etc/kvmd/main.yaml\"
|
||||
|
||||
if [ -f configs/os/modules-load/$_platform.conf ]; then
|
||||
backup=(\"\${backup[@]}\" etc/modules-load.d/kvmd.conf)
|
||||
|
||||
54
configs/kvmd/main/v0-hdmi-rpi3.yaml
Normal file
54
configs/kvmd/main/v0-hdmi-rpi3.yaml
Normal file
@ -0,0 +1,54 @@
|
||||
# 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}"
|
||||
- "--no-log-colors"
|
||||
|
||||
ipmi:
|
||||
kvmd:
|
||||
unix: /run/kvmd/kvmd.sock
|
||||
55
configs/kvmd/main/v0-vga-rpi3.yaml
Normal file
55
configs/kvmd/main/v0-vga-rpi3.yaml
Normal file
@ -0,0 +1,55 @@
|
||||
# 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:
|
||||
sync_delay: 1.0
|
||||
init_delay: 3.0
|
||||
desired_fps: 0
|
||||
unix: /run/kvmd/ustreamer.sock
|
||||
cmd:
|
||||
- "/usr/bin/ustreamer"
|
||||
- "--device=/dev/kvmd-video"
|
||||
- "--tv-standard=pal"
|
||||
- "--format=yuyv"
|
||||
- "--encoder=cpu"
|
||||
- "--quality={quality}"
|
||||
- "--desired-fps={desired_fps}"
|
||||
- "--resolution=720x576"
|
||||
- "--fake-resolution=800x600"
|
||||
- "--last-as-blank=0"
|
||||
- "--unix={unix}"
|
||||
- "--unix-rm"
|
||||
- "--unix-mode=0660"
|
||||
- "--exit-on-parent-death"
|
||||
- "--process-name-prefix={process_name_prefix}"
|
||||
- "--no-log-colors"
|
||||
|
||||
ipmi:
|
||||
kvmd:
|
||||
unix: /run/kvmd/kvmd.sock
|
||||
57
configs/kvmd/main/v1-hdmi-rpi3.yaml
Normal file
57
configs/kvmd/main/v1-hdmi-rpi3.yaml
Normal file
@ -0,0 +1,57 @@
|
||||
# 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: relay
|
||||
target_pin: 12
|
||||
reset_pin: 13
|
||||
device: /dev/kvmd-msd
|
||||
|
||||
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}"
|
||||
- "--no-log-colors"
|
||||
|
||||
ipmi:
|
||||
kvmd:
|
||||
unix: /run/kvmd/kvmd.sock
|
||||
61
configs/kvmd/main/v1-vga-rpi3.yaml
Normal file
61
configs/kvmd/main/v1-vga-rpi3.yaml
Normal file
@ -0,0 +1,61 @@
|
||||
# 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: relay
|
||||
target_pin: 12
|
||||
reset_pin: 13
|
||||
device: /dev/kvmd-msd
|
||||
|
||||
streamer:
|
||||
cap_pin: 17
|
||||
conv_pin: 18
|
||||
sync_delay: 1.0
|
||||
init_delay: 3.0
|
||||
init_restart_after: 1.0
|
||||
desired_fps: 0
|
||||
unix: /run/kvmd/ustreamer.sock
|
||||
cmd:
|
||||
- "/usr/bin/ustreamer"
|
||||
- "--device=/dev/kvmd-video"
|
||||
- "--tv-standard=pal"
|
||||
- "--format=yuyv"
|
||||
- "--encoder=cpu"
|
||||
- "--quality={quality}"
|
||||
- "--desired-fps={desired_fps}"
|
||||
- "--resolution=720x576"
|
||||
- "--fake-resolution=800x600"
|
||||
- "--last-as-blank=0"
|
||||
- "--unix={unix}"
|
||||
- "--unix-rm"
|
||||
- "--unix-mode=0660"
|
||||
- "--exit-on-parent-death"
|
||||
- "--process-name-prefix={process_name_prefix}"
|
||||
- "--no-log-colors"
|
||||
|
||||
ipmi:
|
||||
kvmd:
|
||||
unix: /run/kvmd/kvmd.sock
|
||||
56
configs/kvmd/main/v2-hdmi-zerow.yaml
Normal file
56
configs/kvmd/main/v2-hdmi-zerow.yaml
Normal file
@ -0,0 +1,56 @@
|
||||
# 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=1"
|
||||
- "--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}"
|
||||
- "--no-log-colors"
|
||||
|
||||
ipmi:
|
||||
kvmd:
|
||||
unix: /run/kvmd/kvmd.sock
|
||||
10
configs/os/boot-config/v2-hdmi-zerow.txt
Normal file
10
configs/os/boot-config/v2-hdmi-zerow.txt
Normal file
@ -0,0 +1,10 @@
|
||||
# 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,i2c_pins_28_29=1
|
||||
dtoverlay=pi3-disable-bt
|
||||
dtoverlay=dwc2
|
||||
3
configs/os/cmdline/v1-hdmi-rpi2.sed
Normal file
3
configs/os/cmdline/v1-hdmi-rpi2.sed
Normal file
@ -0,0 +1,3 @@
|
||||
s/console=ttyAMA0\,115200//g
|
||||
s/kgdboc=ttyAMA0\,115200//g
|
||||
s/rootwait/cma=128M rootwait/g
|
||||
3
configs/os/cmdline/v1-hdmi-rpi3.sed
Normal file
3
configs/os/cmdline/v1-hdmi-rpi3.sed
Normal file
@ -0,0 +1,3 @@
|
||||
s/console=ttyAMA0\,115200//g
|
||||
s/kgdboc=ttyAMA0\,115200//g
|
||||
s/rootwait/cma=128M rootwait/g
|
||||
2
configs/os/cmdline/v1-vga-rpi2.sed
Normal file
2
configs/os/cmdline/v1-vga-rpi2.sed
Normal file
@ -0,0 +1,2 @@
|
||||
s/console=ttyAMA0\,115200//g
|
||||
s/kgdboc=ttyAMA0\,115200//g
|
||||
2
configs/os/cmdline/v1-vga-rpi3.sed
Normal file
2
configs/os/cmdline/v1-vga-rpi3.sed
Normal file
@ -0,0 +1,2 @@
|
||||
s/console=ttyAMA0\,115200//g
|
||||
s/kgdboc=ttyAMA0\,115200//g
|
||||
1
configs/os/cmdline/v2-hdmi-zerow.sed
Normal file
1
configs/os/cmdline/v2-hdmi-zerow.sed
Normal file
@ -0,0 +1 @@
|
||||
s/rootwait/cma=64M rootwait/g
|
||||
5
configs/os/udev/v2-hdmi-zerow.rules
Normal file
5
configs/os/udev/v2-hdmi-zerow.rules
Normal 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=="20801000.csi|20801000.csi1", GROUP="kvmd", SYMLINK+="kvmd-video"
|
||||
KERNEL=="hidg0", GROUP="kvmd", SYMLINK+="kvmd-hid-keyboard"
|
||||
KERNEL=="hidg1", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse"
|
||||
Loading…
x
Reference in New Issue
Block a user