summaryrefslogtreecommitdiff
path: root/configs/os
diff options
context:
space:
mode:
Diffstat (limited to 'configs/os')
-rw-r--r--configs/os/boot-config/v0-hdmi-zero2w.txt8
-rw-r--r--configs/os/boot-config/v0-hdmiusb-zero2w.txt7
-rw-r--r--configs/os/boot-config/v2-hdmi-zero2w.txt9
-rw-r--r--configs/os/cmdline/v0-hdmi-zero2w.sed5
-rw-r--r--configs/os/cmdline/v0-hdmiusb-zero2w.sed4
-rw-r--r--configs/os/cmdline/v2-hdmi-zero2w.sed1
-rw-r--r--configs/os/udev/v0-hdmi-zero2w.rules4
-rw-r--r--configs/os/udev/v0-hdmiusb-zero2w.rules4
-rw-r--r--configs/os/udev/v2-hdmi-zero2w.rules6
9 files changed, 48 insertions, 0 deletions
diff --git a/configs/os/boot-config/v0-hdmi-zero2w.txt b/configs/os/boot-config/v0-hdmi-zero2w.txt
new file mode 100644
index 00000000..54459566
--- /dev/null
+++ b/configs/os/boot-config/v0-hdmi-zero2w.txt
@@ -0,0 +1,8 @@
+# See /boot/overlays/README for all available options
+initramfs initramfs-linux.img followkernel
+
+hdmi_force_hotplug=1
+gpu_mem=96
+enable_uart=1
+dtoverlay=tc358743,i2c_pins_28_29=1
+dtoverlay=disable-bt
diff --git a/configs/os/boot-config/v0-hdmiusb-zero2w.txt b/configs/os/boot-config/v0-hdmiusb-zero2w.txt
new file mode 100644
index 00000000..5d41ab3c
--- /dev/null
+++ b/configs/os/boot-config/v0-hdmiusb-zero2w.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/boot-config/v2-hdmi-zero2w.txt b/configs/os/boot-config/v2-hdmi-zero2w.txt
new file mode 100644
index 00000000..6ec3dc54
--- /dev/null
+++ b/configs/os/boot-config/v2-hdmi-zero2w.txt
@@ -0,0 +1,9 @@
+# See /boot/overlays/README for all available options
+initramfs initramfs-linux.img followkernel
+
+hdmi_force_hotplug=1
+gpu_mem=96
+enable_uart=1
+dtoverlay=tc358743,i2c_pins_28_29=1
+dtoverlay=disable-bt
+dtoverlay=dwc2,dr_mode=peripheral
diff --git a/configs/os/cmdline/v0-hdmi-zero2w.sed b/configs/os/cmdline/v0-hdmi-zero2w.sed
new file mode 100644
index 00000000..7ed427ec
--- /dev/null
+++ b/configs/os/cmdline/v0-hdmi-zero2w.sed
@@ -0,0 +1,5 @@
+s/console=ttyAMA0\,115200//g
+s/kgdboc=ttyAMA0\,115200//g
+s/console=serial0\,115200//g
+s/kgdboc=serial0\,115200//g
+s/rootwait/cma=96M rootwait/g
diff --git a/configs/os/cmdline/v0-hdmiusb-zero2w.sed b/configs/os/cmdline/v0-hdmiusb-zero2w.sed
new file mode 100644
index 00000000..d2ac8b1e
--- /dev/null
+++ b/configs/os/cmdline/v0-hdmiusb-zero2w.sed
@@ -0,0 +1,4 @@
+s/console=ttyAMA0\,115200//g
+s/kgdboc=ttyAMA0\,115200//g
+s/console=serial0\,115200//g
+s/kgdboc=serial0\,115200//g
diff --git a/configs/os/cmdline/v2-hdmi-zero2w.sed b/configs/os/cmdline/v2-hdmi-zero2w.sed
new file mode 100644
index 00000000..f350c89c
--- /dev/null
+++ b/configs/os/cmdline/v2-hdmi-zero2w.sed
@@ -0,0 +1 @@
+s/rootwait/cma=96M rootwait/g
diff --git a/configs/os/udev/v0-hdmi-zero2w.rules b/configs/os/udev/v0-hdmi-zero2w.rules
new file mode 100644
index 00000000..e60aa798
--- /dev/null
+++ b/configs/os/udev/v0-hdmi-zero2w.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=="3f801000.csi|3f801000.csi1", ATTR{name}=="unicam-image", GROUP="kvmd", SYMLINK+="kvmd-video", TAG+="systemd"
+KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"
diff --git a/configs/os/udev/v0-hdmiusb-zero2w.rules b/configs/os/udev/v0-hdmiusb-zero2w.rules
new file mode 100644
index 00000000..933f7337
--- /dev/null
+++ b/configs/os/udev/v0-hdmiusb-zero2w.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"
diff --git a/configs/os/udev/v2-hdmi-zero2w.rules b/configs/os/udev/v2-hdmi-zero2w.rules
new file mode 100644
index 00000000..6c6a6d3e
--- /dev/null
+++ b/configs/os/udev/v2-hdmi-zero2w.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=="3f801000.csi|3f801000.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=="hidg2", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse-alt"