diff options
Diffstat (limited to 'os/platforms/v2')
-rw-r--r-- | os/platforms/v2/Dockerfile.part | 11 | ||||
-rw-r--r-- | os/platforms/v2/config.txt | 5 | ||||
-rw-r--r-- | os/platforms/v2/modules.load | 1 | ||||
-rw-r--r-- | os/platforms/v2/udev.rules | 4 |
4 files changed, 21 insertions, 0 deletions
diff --git a/os/platforms/v2/Dockerfile.part b/os/platforms/v2/Dockerfile.part new file mode 100644 index 00000000..2e689418 --- /dev/null +++ b/os/platforms/v2/Dockerfile.part @@ -0,0 +1,11 @@ +RUN pkg-install \ + dkms \ + tc358743-dkms + +RUN sed -i -e "s/rootwait/cma=128M rootwait/g" /boot/cmdline.txt + +COPY stages/pikvm-v2/config.txt /boot/ +COPY stages/pikvm-v2/udev.rules /etc/udev/rules.d/pikvm.rules +COPY stages/pikvm-v2/modules.load /etc/modules-load.d/pikvm.conf + +RUN cp /usr/share/kvmd/configs/kvmd/v2.yaml /etc/kvmd.yaml diff --git a/os/platforms/v2/config.txt b/os/platforms/v2/config.txt new file mode 100644 index 00000000..f99b10b4 --- /dev/null +++ b/os/platforms/v2/config.txt @@ -0,0 +1,5 @@ +gpu_mem=16 +start_x=1 +enable_uart=1 +dtoverlay=tc358743,i2c_pins_28_29=1 +dtparam=act_led_gpio=27 diff --git a/os/platforms/v2/modules.load b/os/platforms/v2/modules.load new file mode 100644 index 00000000..5be25408 --- /dev/null +++ b/os/platforms/v2/modules.load @@ -0,0 +1 @@ +tc358743 diff --git a/os/platforms/v2/udev.rules b/os/platforms/v2/udev.rules new file mode 100644 index 00000000..b26a0ff8 --- /dev/null +++ b/os/platforms/v2/udev.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=="soc", SYMLINK+="kvmd-streamer" +KERNEL=="sd[a-z]", SUBSYSTEM=="block", KERNELS=="1-1.4:1.0", SYMLINK+="kvmd-msd" |