summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2019-04-25 10:36:29 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-04-27 08:06:41 +0000
commitc9ab726b5db8eb692171079fdc6a781b8277d4c8 (patch)
treed495eed6afcb311456b0f42e06cd42e06a0e68e3
parent6a9b7c7073cb6c77cdab296e88731a13ac88dbc4 (diff)
downloadtalos-openbmc-c9ab726b5db8eb692171079fdc6a781b8277d4c8.zip
talos-openbmc-c9ab726b5db8eb692171079fdc6a781b8277d4c8.tar.gz
Add customized IPL screen
-rwxr-xr-xmeta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-bi14
-rw-r--r--meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-static-background.pngbin0 -> 22524 bytes
-rw-r--r--meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm.service8
-rw-r--r--meta-rcs/meta-common/recipes-phosphor/video/fbterm_git.bbappend19
-rw-r--r--meta-rcs/meta-common/recipes-phosphor/video/fbv_git.bb31
5 files changed, 72 insertions, 0 deletions
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-bi b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-bi
new file mode 100755
index 0000000..8bb3c47
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-bi
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# fbterm-bi: a wrapper script to enable background image with fbterm
+# usage: fbterm-bi /path/to/image fbterm-options
+
+echo -ne "\e[?25l" # hide cursor
+
+fbv -ciuker "$1" << EOF
+q
+EOF
+
+shift
+export FBTERM_BACKGROUND_IMAGE=1
+exec fbterm "$@"
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-static-background.png b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-static-background.png
new file mode 100644
index 0000000..d438859
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-static-background.png
Binary files differ
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm.service b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm.service
new file mode 100644
index 0000000..efcc020
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=UART renderer
+Requires=obmc-console@ttyVUART0.service
+
+[Service]
+EnvironmentFile={envfiledir}/fbterm
+ExecStartPre=/usr/sbin/fbset $FB_MODE
+ExecStart=/usr/bin/fbterm-bi /usr/share/images/fbterm-static-background.png --write-only obmc-console-client --color-foreground=0 --color-background=7 --font-names=mono
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbterm_git.bbappend b/meta-rcs/meta-common/recipes-phosphor/video/fbterm_git.bbappend
new file mode 100644
index 0000000..1b2b3bf
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbterm_git.bbappend
@@ -0,0 +1,19 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/fbterm:"
+SRC_URI += "file://fbterm-static-background.png"
+SRC_URI += "file://fbterm.service"
+SRC_URI += "file://fbterm-bi"
+
+do_install_append() {
+ install -d ${D}${systemd_system_unitdir}
+ install -m 0644 ${WORKDIR}/fbterm.service ${D}${systemd_system_unitdir}
+
+ install -d ${D}/usr/share/images/
+ install -m 0644 ${WORKDIR}/fbterm-static-background.png ${D}/usr/share/images/
+
+ install -d ${D}/usr/bin/
+ install -m 0755 ${WORKDIR}/fbterm-bi ${D}/usr/bin/
+}
+
+FILES_${PN} += " /usr/share/images/* /usr/bin/*"
+
+RDEPENDS_${PN} += "bash fbv"
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbv_git.bb b/meta-rcs/meta-common/recipes-phosphor/video/fbv_git.bb
new file mode 100644
index 0000000..1dd268a
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbv_git.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Frame Buffer Viewer"
+LICENSE = "GPL"
+LIC_FILES_CHKSUM = "file://COPYING;md5=130f9d9dddfebd2c6ff59165f066e41c"
+DEPENDS = "libpng jpeg"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/fbv_git:"
+
+SRC_URI += "git://scm.raptorcs.com/scm/git/fbv;protocol=https"
+SRCREV = "e0bfd6744c82dd0fd0fea9aa80fb0aafc361c327"
+
+CFLAGS += "-D_GNU_SOURCE -D__KERNEL_STRICT_NAMES"
+LDFLAGS += "-lpng"
+
+S = "${WORKDIR}/git"
+
+do_configure() {
+ CC="${CC}" ./configure
+}
+
+do_compile() {
+ oe_runmake CC="${CC}"
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 fbv ${D}${bindir}
+
+# man
+ install -d ${D}${mandir}/man1/
+ install -m 0644 fbv.1 ${D}${mandir}/man1/fbv.1
+}
OpenPOWER on IntegriCloud