diff options
author | Yuan Yao <yao.yuan@hxt-semitech.com> | 2018-12-07 13:10:04 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2019-03-12 16:13:58 +0300 |
commit | 88e7a15a69c32ee7d040216c585291670f3b98b4 (patch) | |
tree | af2627a432b80f5245279264ef2ec086bb258418 /meta-hxt | |
parent | c13f46e1deabb6ba19e818ce5050ccfbebc6d070 (diff) | |
download | openbmc-88e7a15a69c32ee7d040216c585291670f3b98b4.tar.xz |
meta-hxt: add sol support
(From meta-hxt rev: 983f81795dcfb10acd7a9a138206476a0a3a1bb0)
Change-Id: I745e731c32cfaf3c8e367a56b596dc2e6140a01f
Signed-off-by: Yuan Yao <yao.yuan@hxt-semitech.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-hxt')
5 files changed, 28 insertions, 0 deletions
diff --git a/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/obmc-console/obmc-console.conf b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/obmc-console/obmc-console.conf new file mode 100644 index 0000000000..85f35c190d --- /dev/null +++ b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/obmc-console/obmc-console.conf @@ -0,0 +1,2 @@ +local-tty = ttyS2 +local-tty-baud = 115200 diff --git a/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/obmc-console_%.bbappend b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/obmc-console_%.bbappend new file mode 100644 index 0000000000..91909f1294 --- /dev/null +++ b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/obmc-console_%.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS_prepend_stardragon4800-rep2 := "${THISDIR}/${PN}:" +OBMC_CONSOLE_HOST_TTY = "ttyS2" diff --git a/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client.bb b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client.bb new file mode 100644 index 0000000000..879f7a520b --- /dev/null +++ b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client.bb @@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend_stardragon4800-rep2 := "${THISDIR}/${PN}:" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${HXTBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" + +SRC_URI += "file://stardragon4800-rep2-console-client.sh" + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${WORKDIR}/stardragon4800-rep2-console-client.sh ${D}${bindir}/stardragon4800-rep2-console-client.sh +} diff --git a/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client/stardragon4800-rep2-console-client.sh b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client/stardragon4800-rep2-console-client.sh new file mode 100644 index 0000000000..a95c1a6565 --- /dev/null +++ b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client/stardragon4800-rep2-console-client.sh @@ -0,0 +1,5 @@ +#!/bin/sh -e +#Control UART mux for obmc-console-client +echo 0 > /sys/class/gpio/gpio325/value +obmc-console-client +echo 1 > /sys/class/gpio/gpio325/value diff --git a/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client/stardragon4800-rep2-console-client@.service b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client/stardragon4800-rep2-console-client@.service new file mode 100644 index 0000000000..dce0eec0da --- /dev/null +++ b/meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client/stardragon4800-rep2-console-client@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Control UART mux for obmc-console-client + +[Service] +ExecStart=/usr/bin/env stardragon4800-rep2-console-client.sh +SyslogIdentifier=stardragon4800-rep2-console-client.sh + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} |