From 88e7a15a69c32ee7d040216c585291670f3b98b4 Mon Sep 17 00:00:00 2001 From: Yuan Yao Date: Fri, 7 Dec 2018 18:10:04 +0800 Subject: meta-hxt: add sol support (From meta-hxt rev: 983f81795dcfb10acd7a9a138206476a0a3a1bb0) Change-Id: I745e731c32cfaf3c8e367a56b596dc2e6140a01f Signed-off-by: Yuan Yao Signed-off-by: Andrew Geissler --- .../recipes-phosphor/console/obmc-console/obmc-console.conf | 2 ++ .../recipes-phosphor/console/obmc-console_%.bbappend | 2 ++ .../console/stardragon4800-rep2-console-client.bb | 10 ++++++++++ .../stardragon4800-rep2-console-client.sh | 5 +++++ .../stardragon4800-rep2-console-client@.service | 9 +++++++++ 5 files changed, 28 insertions(+) create mode 100644 meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/obmc-console/obmc-console.conf create mode 100644 meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/obmc-console_%.bbappend create mode 100644 meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client.bb create mode 100644 meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client/stardragon4800-rep2-console-client.sh create mode 100644 meta-hxt/meta-stardragon4800-rep2/recipes-phosphor/console/stardragon4800-rep2-console-client/stardragon4800-rep2-console-client@.service (limited to 'meta-hxt') 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 000000000..85f35c190 --- /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 000000000..91909f129 --- /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 000000000..879f7a520 --- /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 000000000..a95c1a656 --- /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 000000000..dce0eec0d --- /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} -- cgit v1.2.3