summaryrefslogtreecommitdiff
path: root/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service
diff options
context:
space:
mode:
authorJohn Wang <wangzhiqiang.bj@bytedance.com>2020-09-30 08:19:08 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-12-31 19:41:05 +0300
commita66aa8aecb7f3809f878aa4eba9151748f94cc6b (patch)
tree891f4ff0c80ec385cc974ebb53ab1988c0152f25 /meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service
parentd1f2e5a37f8b472456dea4909005b08de84d995e (diff)
downloadopenbmc-a66aa8aecb7f3809f878aa4eba9151748f94cc6b.tar.xz
bytedance: g220a: Add sol config
Tested: ssh -p 2200, SOL works well. (From meta-bytedance rev: 1f40f6da4fc2e00fc06128ae6ba7dd1f045c8a84) Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com> Change-Id: I2abd1e11c5158da887ac382bb2a98f94d85a4749 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service')
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service b/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service
new file mode 100644
index 000000000..1a1dfffa1
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Phosphor Console Muxer listening on device /dev/%I
+BindsTo=dev-%i.device
+After=dev-%i.device
+
+[Service]
+ExecStartPre=/bin/sh -c 'echo -n "uart3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart1'
+ExecStartPre=/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart3'
+ExecStartPre=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart4'
+ExecStartPre=/bin/sh -c 'echo -n "uart4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/io1'
+ExecStart=/usr/bin/env obmc-console-server --config {sysconfdir}/obmc-console.conf %i
+ExecStopPost=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart1'
+ExecStopPost=/bin/sh -c 'echo -n "io3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart3'
+ExecStopPost=/bin/sh -c 'echo -n "io4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart4'
+ExecStopPost=/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/io1'
+SyslogIdentifier=obmc-console-server
+Restart=always
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}