summaryrefslogtreecommitdiff
path: root/configs/os
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-28 05:22:45 +0300
committerDevaev Maxim <[email protected]>2019-09-28 05:41:31 +0300
commitebe1255921742fa0ed93c7f8eff7ddc7437025be (patch)
tree3dcdb2c75ad19b42ea279b03e64abcd8bc87f267 /configs/os
parentc16e4c953ca197951c77a1cbab14e435d282c72b (diff)
v2 configs
Diffstat (limited to 'configs/os')
-rw-r--r--configs/os/boot-config/v2-hdmi-rpi4.txt10
-rw-r--r--configs/os/cmdline/v2-hdmi.sed1
-rw-r--r--configs/os/modules-load/v2-hdmi.conf3
-rw-r--r--configs/os/udev/v2-hdmi-rpi4.rules6
4 files changed, 20 insertions, 0 deletions
diff --git a/configs/os/boot-config/v2-hdmi-rpi4.txt b/configs/os/boot-config/v2-hdmi-rpi4.txt
new file mode 100644
index 00000000..621868b9
--- /dev/null
+++ b/configs/os/boot-config/v2-hdmi-rpi4.txt
@@ -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=pi3-disable-bt
+dtoverlay=dwc2
diff --git a/configs/os/cmdline/v2-hdmi.sed b/configs/os/cmdline/v2-hdmi.sed
new file mode 100644
index 00000000..803b9b03
--- /dev/null
+++ b/configs/os/cmdline/v2-hdmi.sed
@@ -0,0 +1 @@
+s/rootwait/cma=128M rootwait/g
diff --git a/configs/os/modules-load/v2-hdmi.conf b/configs/os/modules-load/v2-hdmi.conf
new file mode 100644
index 00000000..af538dba
--- /dev/null
+++ b/configs/os/modules-load/v2-hdmi.conf
@@ -0,0 +1,3 @@
+dwc2
+libcomposite
+tc358743
diff --git a/configs/os/udev/v2-hdmi-rpi4.rules b/configs/os/udev/v2-hdmi-rpi4.rules
new file mode 100644
index 00000000..9d12ab4c
--- /dev/null
+++ b/configs/os/udev/v2-hdmi-rpi4.rules
@@ -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", GROUP="kvmd", SYMLINK+="kvmd-video"
+KERNEL=="sd[a-z]", SUBSYSTEM=="block", KERNELS=="1-1.4:1.0", GROUP="kvmd", SYMLINK+="kvmd-msd"
+KERNEL=="hidg0", GROUP="kvmd", SYMLINK+="kvmd-hid-keyboard"
+KERNEL=="hidg1", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse"