obmc-console: Support 8 slots for Yosemite 4
Support ttyS5~ttyS8 if multi-host is needed.
Support server/client conf 2204~2207 for console redirection.
Support ttyS5~ttyS8 host-logger.
Tested:
- Do obmc-console to link from uart1 to uart9
- List log of lost-logger
Change-Id: I558f71992f2cdab6c2a6338f728cdf5d476bcff2
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/meta-facebook/recipes-phosphor/console/obmc-console/fb-compute-multihost/obmc-console-ttyS8-ssh-host@.service b/meta-facebook/recipes-phosphor/console/obmc-console/fb-compute-multihost/obmc-console-ttyS8-ssh-host@.service
new file mode 100644
index 0000000..3a40ba3
--- /dev/null
+++ b/meta-facebook/recipes-phosphor/console/obmc-console/fb-compute-multihost/obmc-console-ttyS8-ssh-host@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Phosphor Host Console SSH socket for Slot8
+Wants=obmc-console@ttyS8.service
+
+[Service]
+ExecStartPre=/usr/bin/select-uart-mux slot8 host
+ExecStart=/usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -c "/usr/bin/obmc-console-client -i host7" $DROPBEAR_EXTRA_ARGS
+SyslogIdentifier=console-client-ttyS8
+ExecReload=/bin/kill -HUP $MAINPID
+StandardInput=socket
+KillMode=process