Leah Rowe dd9e681eb9 util/spkmodem-decode: also auto-detect separator
the tone detection currently only tracks data, not
the separator. track both instead, for improved
detection reliability.

e.g.

separator tone ≈ 9
data low tone ≈ 18
data high tone ≈ 24

two fir windows produce e.g.
freq data 9 sep 0
then 18, 9
then 24, 9
18, 9

so we take min(data, separator)

that gives 9,9,9,9

now we have the separator cluster

however, if both windows are active during transitions,
you can also capture the higher clusters, which would
allow freq_max to grow

so when you learn e.g.:

freq min = 9
freq max 24

then the learned threshold would be:

(9 + 24) / 2 = 16

and now you know how to separate the tones

fir already suppresses noise so the pulse should
be reliable. so freq/sep only go non-zero when an
actual tone exists

this should now result in being able to sync with
spkmodem encoders with no prior knowledge of the
correct tone frequences. we just use maths.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-03-12 23:12:40 +00:00
2026-02-26 00:58:06 +00:00
2021-05-18 13:56:12 +01:00
2025-11-14 18:22:51 +00:00

Libreboot

Documentation: libreboot.org
Support: #libreboot on Libera IRC

Libreboot provides libre boot firmware on supported motherboards. It replaces proprietary vendor BIOS/UEFI implementations, by

  • Using coreboot to initialize the hardware (e.g. memory controller, CPU, etc.) while minimizing unwanted functionality (e.g. backdoors such as the Intel Management Engine)
  • ... which runs a payload such as SeaBIOS, GRUB, or U-Boot
  • ... which loads your operating system's boot loader (BSD and Linux-based systems are supported).

Why use Libreboot, and what is coreboot?

A lot of users who use libre operating systems still use proprietary boot firmware, which often contain backdoors and bugs, hampering user freedom and right to repair.

coreboot provides libre boot firmware by initializing the hardware then running a payload. However, coreboot is notoriously difficult to configure and install for most non-technical users, requiring detailed technical knowledge of hardware.

Libreboot solves this by being a coreboot distribution (in the same way that Alpine Linux is a Linux distribution). It provides a fully automated build system that downloads and compiles pre-configured ROM images for supported motherboards, so end-users could easily fetch images to flash onto their devices.

Libreboot also produces documentation aimed at non-technical users and excellent user support via IRC.

Contribute

You can check bugs listed on the bug tracker.

You may use Codeberg pull requests to send patches with bug fixes or other improvements. This repository hosts the code for the main build system. The website lives in a separate repository.

Development is also done on the IRC channel.

License for this README

It's just a README file. It is released under Creative Commons Zero, version 1.0.

Languages
C 72.4%
Shell 12%
Roff 11%
Python 2.6%
Makefile 1.1%
Other 0.9%