conf: Ship udev rules for launching obmc-console-server
The systemd unit has a ConditionPathExists for the server configuration
file, so we can support listing any number of UARTs in the udev rule
without negatively impacting the system. For the moment however, list
just the two virtual UARTs on the ASPEED SoCs.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie0bebbf64388c62f7cbb77c399f3d064713d586f
diff --git a/conf/80-obmc-console-uart.rules.in b/conf/80-obmc-console-uart.rules.in
new file mode 100644
index 0000000..1cb603a
--- /dev/null
+++ b/conf/80-obmc-console-uart.rules.in
@@ -0,0 +1,2 @@
+SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E787000", ENV{SYSTEMD_WANTS}="obmc-console@ttyVUART0" SYMLINK+="ttyVUART0", TAG+="systemd"
+SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E788000", ENV{SYSTEMD_WANTS}="obmc-console@ttyVUART1" SYMLINK+="ttyVUART1", TAG+="systemd"