From 629631128e1f9adcd6aae5b064190a99d4f0b829 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 7 May 2022 00:04:48 +0200 Subject: pcr: libreboot-utils: Add spkmodem_recv When building Coreboot or Libreboot with CONFIG_SPKMODEM, the boot messages data is encoded as sound and sent to the sound card. To receive them you can record them with another computer (and ideally you need an audio cable for that and to make sure that the volume is not too low or not too high), and you can then decode them in real time with a command similar to that one: parec --channels=1 --rate=48000 --format=s16le | spkmodem-recv This also works with grub spkmodem console output. Note that the messages speed is relatively slow, so if you build Coreboot or Libreboot with that option, your boot might take a long time (like 30min for instance) if you have a lot of messages. Signed-off-by: Denis 'GNUtoo' Carikli --- pcr/libreboot-utils/PKGBUILD | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pcr/libreboot-utils') diff --git a/pcr/libreboot-utils/PKGBUILD b/pcr/libreboot-utils/PKGBUILD index 2da67582b..f5a183b60 100644 --- a/pcr/libreboot-utils/PKGBUILD +++ b/pcr/libreboot-utils/PKGBUILD @@ -4,7 +4,7 @@ # Maintainers: Parabola hackers pkgname=libreboot-utils -pkgrel=6 +pkgrel=7 _upstream_ver=20211122 pkgver=4.15.libreboot${_upstream_ver} pkgdesc="Misc. Coreboot/Libreboot utils (bucts, cbfstool, ECtool, nvramtool, superiotool)" @@ -74,6 +74,9 @@ build() { # Build nvramtool. make -C nvramtool + + # Build spkmodem_recv. + make -C spkmodem_recv } package() { @@ -102,4 +105,7 @@ package() { # Install nvramtool. make -C nvramtool install DESTDIR="${pkgdir}" PREFIX=/usr + + # Install spkmodem_recv. + make -C spkmodem_recv install PREFIX="${pkgdir}/usr" } -- cgit v1.2.3