summaryrefslogtreecommitdiff
path: root/configs/os
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-03-14 22:52:42 +0300
committerDevaev Maxim <[email protected]>2021-03-14 22:52:42 +0300
commitb66358eea805b7f4175fd3e3a68543e10efc4217 (patch)
tree4b4a3598d8baee87f29db28aa018333fec42fade /configs/os
parent26487721a7e42ef877bb0d213b8da6eae4ca82f2 (diff)
v3 package
Diffstat (limited to 'configs/os')
-rw-r--r--configs/os/boot-config/v3-hdmi-rpi4.txt19
-rw-r--r--configs/os/cmdline/v3-hdmi-rpi4.sed1
-rw-r--r--configs/os/modules-load/v3-hdmi.conf4
-rw-r--r--configs/os/udev/v3-hdmi-rpi4.rules6
4 files changed, 30 insertions, 0 deletions
diff --git a/configs/os/boot-config/v3-hdmi-rpi4.txt b/configs/os/boot-config/v3-hdmi-rpi4.txt
new file mode 100644
index 00000000..01ef9bd2
--- /dev/null
+++ b/configs/os/boot-config/v3-hdmi-rpi4.txt
@@ -0,0 +1,19 @@
+# See /boot/overlays/README for all available options
+initramfs initramfs-linux.img followkernel
+
+hdmi_force_hotplug=1
+gpu_mem=128
+enable_uart=1
+dtoverlay=tc358743
+dtoverlay=disable-bt
+dtoverlay=dwc2,dr_mode=peripheral
+dtparam=act_led_gpio=13
+
+# HDMI audio capture
+dtoverlay=tc358743-audio
+
+# SPI (AUM)
+dtoverlay=spi0-1cs
+
+# I2C (display)
+dtparam=i2c_arm=on
diff --git a/configs/os/cmdline/v3-hdmi-rpi4.sed b/configs/os/cmdline/v3-hdmi-rpi4.sed
new file mode 100644
index 00000000..803b9b03
--- /dev/null
+++ b/configs/os/cmdline/v3-hdmi-rpi4.sed
@@ -0,0 +1 @@
+s/rootwait/cma=128M rootwait/g
diff --git a/configs/os/modules-load/v3-hdmi.conf b/configs/os/modules-load/v3-hdmi.conf
new file mode 100644
index 00000000..f1ede9d1
--- /dev/null
+++ b/configs/os/modules-load/v3-hdmi.conf
@@ -0,0 +1,4 @@
+dwc2
+libcomposite
+tc358743
+i2c-dev
diff --git a/configs/os/udev/v3-hdmi-rpi4.rules b/configs/os/udev/v3-hdmi-rpi4.rules
new file mode 100644
index 00000000..d401ee9e
--- /dev/null
+++ b/configs/os/udev/v3-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", 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=="sd[a-z]", SUBSYSTEM=="block", KERNELS=="1-1.4:1.0", GROUP="kvmd", SYMLINK+="kvmd-msd-aum"