summaryrefslogtreecommitdiff
path: root/configs/os
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-08-31 21:00:15 +0300
committerDevaev Maxim <[email protected]>2020-08-31 21:00:15 +0300
commit4d7b439443070d15c21e0f6cfa763656b85fe0ac (patch)
tree7c6b1019a8868d5d4cfc870e9a99dcc3392327a4 /configs/os
parente62a3bedc9707b17b521faec2cf2ab2473cdbaef (diff)
rpi1
Diffstat (limited to 'configs/os')
-rw-r--r--configs/os/boot-config/v0-hdmi-rpi.txt9
-rw-r--r--configs/os/boot-config/v0-hdmiusb-rpi.txt7
-rw-r--r--configs/os/cmdline/v0-hdmi-rpi.sed3
-rw-r--r--configs/os/cmdline/v0-hdmiusb-rpi.sed2
-rw-r--r--configs/os/udev/v0-hdmi-rpi.rules4
-rw-r--r--configs/os/udev/v0-hdmiusb-rpi.rules4
6 files changed, 29 insertions, 0 deletions
diff --git a/configs/os/boot-config/v0-hdmi-rpi.txt b/configs/os/boot-config/v0-hdmi-rpi.txt
new file mode 100644
index 00000000..ad8fa478
--- /dev/null
+++ b/configs/os/boot-config/v0-hdmi-rpi.txt
@@ -0,0 +1,9 @@
+# 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
+dtoverlay=disable-bt
diff --git a/configs/os/boot-config/v0-hdmiusb-rpi.txt b/configs/os/boot-config/v0-hdmiusb-rpi.txt
new file mode 100644
index 00000000..5d41ab3c
--- /dev/null
+++ b/configs/os/boot-config/v0-hdmiusb-rpi.txt
@@ -0,0 +1,7 @@
+# See /boot/overlays/README for all available options
+initramfs initramfs-linux.img followkernel
+
+hdmi_force_hotplug=1
+gpu_mem=16
+enable_uart=1
+dtoverlay=disable-bt
diff --git a/configs/os/cmdline/v0-hdmi-rpi.sed b/configs/os/cmdline/v0-hdmi-rpi.sed
new file mode 100644
index 00000000..81cc40cb
--- /dev/null
+++ b/configs/os/cmdline/v0-hdmi-rpi.sed
@@ -0,0 +1,3 @@
+s/rootwait/cma=64M rootwait/g
+s/console=ttyAMA0\,115200//g
+s/kgdboc=ttyAMA0\,115200//g
diff --git a/configs/os/cmdline/v0-hdmiusb-rpi.sed b/configs/os/cmdline/v0-hdmiusb-rpi.sed
new file mode 100644
index 00000000..57f42700
--- /dev/null
+++ b/configs/os/cmdline/v0-hdmiusb-rpi.sed
@@ -0,0 +1,2 @@
+s/console=ttyAMA0\,115200//g
+s/kgdboc=ttyAMA0\,115200//g
diff --git a/configs/os/udev/v0-hdmi-rpi.rules b/configs/os/udev/v0-hdmi-rpi.rules
new file mode 100644
index 00000000..90812eaa
--- /dev/null
+++ b/configs/os/udev/v0-hdmi-rpi.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=="20801000.csi|20801000.csi1", GROUP="kvmd", SYMLINK+="kvmd-video", TAG+="systemd"
+KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"
diff --git a/configs/os/udev/v0-hdmiusb-rpi.rules b/configs/os/udev/v0-hdmiusb-rpi.rules
new file mode 100644
index 00000000..933f7337
--- /dev/null
+++ b/configs/os/udev/v0-hdmiusb-rpi.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=="video0", SUBSYSTEM=="video4linux", GROUP="kvmd", SYMLINK+="kvmd-video"
+KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"