diff options
author | George Hung <george.hung@quantatw.com> | 2020-05-14 13:48:33 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-06-08 22:24:33 +0300 |
commit | 8bb7af7435fc42f4992748bbed1e6c51822d5ca8 (patch) | |
tree | 2ee7cd032de7bbaed9dc9ad71fcecc4025d777ad /meta-quanta/meta-gbs | |
parent | 6e5a99448106c6ff703bdcfa08ea1e6ce5c318c0 (diff) | |
download | openbmc-8bb7af7435fc42f4992748bbed1e6c51822d5ca8.tar.xz |
meta-quanta: gbs: add configuration of obmc-console
1. Host serial port 1 to BMC UART1
2. modify the udev rules for console config
Tested: run obmc-console-client and then can redirect
to host console
(From meta-quanta rev: b64af2ce0a7d55ee8a765e44788d3c96fb9ba971)
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I20a70ff7e3bed278642d7903f1154664f805c20c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-quanta/meta-gbs')
3 files changed, 15 insertions, 0 deletions
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/console/files/80-gbs-nuvoton-sol.rules b/meta-quanta/meta-gbs/recipes-phosphor/console/files/80-gbs-nuvoton-sol.rules new file mode 100644 index 000000000..3d0670bc3 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/console/files/80-gbs-nuvoton-sol.rules @@ -0,0 +1 @@ +SUBSYSTEM=="tty", ATTRS{iomem_base}=="0xF0002000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS1" SYMLINK+="ttyS1", TAG+="systemd" diff --git a/meta-quanta/meta-gbs/recipes-phosphor/console/files/obmc-console.conf b/meta-quanta/meta-gbs/recipes-phosphor/console/files/obmc-console.conf new file mode 100644 index 000000000..666e66aac --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/console/files/obmc-console.conf @@ -0,0 +1 @@ +baud = 115200 diff --git a/meta-quanta/meta-gbs/recipes-phosphor/console/obmc-console_%.bbappend b/meta-quanta/meta-gbs/recipes-phosphor/console/obmc-console_%.bbappend new file mode 100644 index 000000000..f78e3c22d --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/console/obmc-console_%.bbappend @@ -0,0 +1,13 @@ +FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/files:" +SRC_URI_append_gbs = " file://80-gbs-nuvoton-sol.rules" + +do_install_append_gbs() { + install -m 0755 -d ${D}${sysconfdir}/${BPN} + rm -f ${D}${sysconfdir}/${BPN}/server.ttyVUART0.conf + install -m 0644 ${WORKDIR}/${BPN}.conf ${D}${sysconfdir}/ + ln -sr ${D}${sysconfdir}/${BPN}.conf ${D}${sysconfdir}/${BPN}/server.ttyS1.conf + + install -d ${D}/lib/udev/rules.d + rm -f ${D}/lib/udev/rules.d/80-obmc-console-uart.rules + install -m 0644 ${WORKDIR}/80-gbs-nuvoton-sol.rules ${D}/lib/udev/rules.d +} |