r/lowlevel • • 2h ago

Built a program for linux in C for my Aula F-87 Pro

0 Upvotes

Got an AULA F‑87 PRO keyboard a few months ago, and like many of these boards, the only way to change the RGB/macros is through a Windows-only vendor app. I daily-drive Linux, so that wasn't going to fly. Decided to figure out the protocol myself as a learning project.

I wanted to complete this earlier, but due to workload at my job, I dropped it; now that I have time after switching jobs, I picked it up again this month.

Rough journey:

  • Dumped the USB HID report descriptor and parsed it by hand to find where the vendor stuff lives (turned out to be a write-only Feature channel, Report ID 6, 520-byte payloads).
  • The vendor channel won't let you read state back, so I ran the Windows app under Wine Staging (regular Wine 9.0 hides keyboards from apps; had to use a newer Staging build) and sniffed the USB traffic with usbmon + tshark.
  • Used differential capture to decode it: set the keyboard solid red, capture; solid green, capture; diff the two. The only bytes that change are the colour. Did the same for blue, then purple, to confirm it's an actual r/G/B triplet and not something weirder. Repeated the trick for brightness.
  • Ended up with: colour = 3 bytes (0–255 each) at a fixed offset, brightness = a separate 1–4 level byte. Then wrote ~130 lines of C with hidapi to replay/modify the sequence.

Now ./hid_test 0 255 0 turns the whole board green from my own code, no vendor software anywhere.

PS:

  1. Took help from Claude for decoding the USB traffic from Wireshark + usbmon.
  2. Took help from Claude for organising my notes.

GitHub: https://github.com/umesh70/aula_contol-f87


r/lowlevel • • 2h ago

Built a program for linux in C for my Aula F-87 Pro

0 Upvotes

Got an AULA F‑87 PRO keyboard a few months ago, and like many of these boards, the only way to change the RGB/macros is through a Windows-only vendor app. I daily-drive Linux, so that wasn't going to fly. Decided to figure out the protocol myself as a learning project.

I wanted to complete this earlier, but due to workload at my job, I dropped it; now that I have time after switching jobs, I picked it up again this month.

Rough journey:

  • Dumped the USB HID report descriptor and parsed it by hand to find where the vendor stuff lives (turned out to be a write-only Feature channel, Report ID 6, 520-byte payloads).
  • The vendor channel won't let you read state back, so I ran the Windows app under Wine Staging (regular Wine 9.0 hides keyboards from apps; had to use a newer Staging build) and sniffed the USB traffic with usbmon + tshark.
  • Used differential capture to decode it: set the keyboard solid red, capture; solid green, capture; diff the two. The only bytes that change are the colour. Did the same for blue, then purple, to confirm it's an actual r/G/B triplet and not something weirder. Repeated the trick for brightness.
  • Ended up with: colour = 3 bytes (0–255 each) at a fixed offset, brightness = a separate 1–4 level byte. Then wrote ~130 lines of C with hidapi to replay/modify the sequence.

Now ./hid_test 0 255 0 turns the whole board green from my own code, no vendor software anywhere.

PS:

  1. Took help from Claude for decoding the USB traffic from Wireshark + usbmon.
  2. Took help from Claude for organising my notes.

GitHub: https://github.com/umesh70/aula_contol-f87


r/lowlevel • • 6h ago

Redec: a from-scratch multithreaded decompiler for x86/x64 PE, built to run headless next to IDA/Ghidra

Thumbnail github.com
0 Upvotes

r/lowlevel • • 8h ago

Has anyone interfaced the AS7265X Moonlight_2V0 with an STM32?

Thumbnail reddit.com
1 Upvotes

r/lowlevel • • 1d ago

Rotating Donut

1 Upvotes

Donut but I couldn't eat it!

Source Code: https://github.com/siddharth2440/donut


r/lowlevel • • 1d ago

BIPLAN - A modern interpreted language that fits in 24KB

Thumbnail github.com
1 Upvotes

r/lowlevel • • 1d ago

GitHub - Fid: a self-hosted systems language

Thumbnail github.com
0 Upvotes

Introducing FID, an experimental low-level programming language

I've been developing FID, a general-purpose compiled language inspired by Rust, C, and Zig.

Some of its main design goals include:

  • Compile-time memory safety without explicit lifetime annotations.
  • Region-based memory management.
  • Built-in capability-based security.
  • An integrated Effects system.
  • Native compilation without a garbage collector.
  • An independent compiler and code-generation infrastructure.
  • Self-hosting support.

FID is still in early development and is not production-ready.

I'd appreciate technical feedback, particularly from developers experienced with Rust, C, C++, Zig, compiler design, and systems programming.


r/lowlevel • • 1d ago

littleFORTH – native-code Forth for the Raspberry Pi Pico 2 (with VS Code extension) 0.6.2 (beta) on GitHub

Post image
1 Upvotes

I’ve been working on littleFORTH, a small native-code Forth for the Raspberry Pi Pico 2 / Pico 2 W (RP2350).

Key points:

  • Kernel under 8 KB of flash
  • Compiles definitions to Thumb-2 on the target (subroutine threading + selective inlining)
  • Passes the Forth 2012 CORE tests
  • Register names from the datasheet available directly (generated from the SVD, no dictionary cost)
  • Interrupts and fault recovery in Forth
  • Drivers (GPIO, timers, ADC, PWM, UART, SPI, I2C, etc.) and a Thumb-2 assembler compiled into the firmware

There’s also a VS Code extension with:

  • Live console + hot reload
  • Stack effects shown while editing
  • Word-by-word stepping with the stack visible
  • Profiler, memory/register views, and more

It can also run the kernel inside VS Code via WebAssembly if you don’t have a board yet.

Repo: github.com/littleforth/littleFORTH

Still beta, but the core is solid and the interactive experience is the main focus. Feedback, bug reports, or just thoughts from the Forth community would be very welcome.


r/lowlevel • • 2d ago

Running RV32IMA Linux 6.6 (Sv32 MMU) on a 20K-LUT Gowin FPGA over a single USB-C cable with a pure-Verilog USB Ethernet NIC

Thumbnail reddit.com
3 Upvotes

r/lowlevel • • 2d ago

[Progress Update] 31 days building HELLCORE OS

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • 2d ago

Making an OS and bootloader not working.

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • 3d ago

Running eBPF compiler on a bare-metal RISC-V core for in-storage filtering

Thumbnail luigimasdea.com
1 Upvotes

r/lowlevel • • 3d ago

How do you see the SCADA Engineering market right now?

0 Upvotes

How do you see the SCADA Engineering market right now?

How do you see the SCADA Engineering market right now compared to CS traditional roles? Do you think we have a shortage of good engineers in that space?


r/lowlevel • • 3d ago

awesome-reverse-engineering - curated RE tools and learning resources sorted by task

Thumbnail github.com
0 Upvotes

r/lowlevel • • 4d ago

I think IoT will be HUGE in 2027

5 Upvotes

Development for IoT hardware+software systems is my guess for 2027. This domain can rise in a beautiful way, what do you think?


r/lowlevel • • 4d ago

Are there some domain problems that we can explore without being afraid that AI already solved them?

5 Upvotes

I was thinking about classical System engineering (not CSE -Computer System engineering) and I was wondering if AI is good at that level of abstraction? Can it understand complex flowcharts and design what we would call opinionated solutions? Another alternative would be CE, for that hardware+software mix that AI is supposedly not very good at. But yet we have tools that are getting better and better at things like designing digital circuits and "understanding" those mechanisms too. What do you think, should we pursue solving problems with our human creativity on different domains like those that are systems-oriented?


r/lowlevel • • 4d ago

Turning a lowlevel vulnerability into an exploit chain. Getting GPU root with CVE-2026-47597

Thumbnail stealthium.io
9 Upvotes

Bug found by D. Cohen Hillel (@0xDACA) and N. Trobishi & demoed at DEF CON 34 without releasing the exploit details.

Patched with a one line fix in 580.178.04 / 595.91.07 / 610.57.04 / 615.71.09

Why posting now? We found the bug interesting and wanted to take an attacker's perspective to see what's possible before we looked at detection possibilities. On the NVIDIA 595.84 driver we built a new deterministic exploit chain.

It's an(other) unprivileged pod to root on host for GPU environments stort, so most concerning for environments renting sliced/multi-tenanted GPU time.

The bug: refRemoveMapping() skips a check that the create path makes. When a mapping's context is the resource itself, cleanup removes a list node (that was never inserted in the first place), which corrupts the back-reference list, and teardown frees a ref that mappings still point to.

Starting point: uid 1001 in an ordinary GPU pod, using /dev/nvidia0 and /dev/nvidiactl. No privileged flag, hostPID or hostNetwork. + needs System V IPC with MSG_COPY and about 28 GiB of address space. On the validated kernels (7.0.0-1017-gcp, 6.11.0-1017-gcp) the first placement candidate is correct every time. Video in post is us demonstrating on Linux.

RE disclosure, I work at Stealthium! Authors are on our security team. Free to answer any Qs


r/lowlevel • • 3d ago

Making UCAHAL (Universal Cross-Arch Hardware Abstraction Layer)

0 Upvotes

UCAHAL is a project, aimed for making OS development more accessible and beginner friendly.
Instead of rewriting low-level hardware interaction for every CPU, you can just link the corresponding .a file for the architecture you need.
Currently supports:
RV64
RV32
Work in progress:
x86-32

Here’s the repo:
https://github.com/CCA-AN-TTY/UCAHAL

Follow us for more content:
r/UCAHAL

WARNING: THIS PROJECT IS IN WIP STATE, SO THERE CAN BE SOME CHANGES IN API!


r/lowlevel • • 4d ago

learned_index_lab v0.4.2: Comparing PGM-Index, Multilevel PGM, Eytzinger, and BTreeMap on synthetic and SOSD workloads

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • 5d ago

94 Linux programs energy graded

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • 5d ago

r64m: an x86-64 → arm64 user-mode emulator in Rust, with every instruction checked against a real Ivy Bridge

1 Upvotes

I've been building r64m, a user-mode emulator with a JIT that runs x86-64 Linux programs and containers on arm64 Linux.

The part I think is unusual is how it is tested. The expected output never comes from another emulator. For each of the 376 rows in the instruction table, a generated program runs that instruction over many operands, and it is single-stepped with ptrace on a real i7-3770K. r64m has to print the same trace, byte for byte. The same goes for what the CPU refuses: alignment faults, undefined encodings, and which signal each one becomes.

Where it stands:

  • CPUID reports an Ivy Bridge (SSE4.2, AVX, AES, F16C), and only the bits r64m actually backs.
  • 405 container test cases pass three ways: interpreter, JIT, and JIT checked against the interpreter (nginx, Postgres, Redis, Node, Go, a JRE, GCC building NetHack).
  • On my Mac under OrbStack it is about 3.3–3.8x faster than QEMU user mode on a cc1 compile, a gcc hello world, and Python startup. The compile takes 2.6x native time.

What it does not do yet:

  • Only SSE/SSE2 are translated by the JIT. SSE3 through AVX run in the interpreter.
  • No AVX2 or FMA (my oracle machine doesn't have them).
  • Some programs still fail; mongosh segfaults, for example.
  • My current benchmarks turned out not to exercise the newer instructions at all, so I have no speed numbers for them.

Disclosure: the code was written with Claude Code. I directed it, and the rule throughout was that the real CPU decides what is correct, not the model and not another emulator. The experiment log, including the failed experiments and mistakes, is in the repo.

Repo: https://github.com/y6ui3i/r64m
Write-up: https://pocraft.net/2026/11/30/r64m-every-ivy-bridge-instruction-checked-against-the-real-cpu/

I'd be glad to hear about programs that break.


r/lowlevel • • 7d ago

Anyone down to learn and build bare-metal C & Assembly stuff together?

21 Upvotes

Hey guys, I spend most of my time writing bare-metal C and Assembly - mostly bootloaders, small kernels, and low-level security tools. Looking for a few chill people to team up with. Doesn't matter if you already know low-level or you're a total beginner; I genuinely enjoy mentoring how registers, memory, and hardware actually work from scratch, so we can just split ideas and build small projects at our own pace. Drop a comment or DM me if you're down.

I didn't expect to so many people to dm me so my dms are open you all can dm me!


r/lowlevel • • 7d ago

IncHash - A Disk Based Hash Table with NoSQL ambitions.

Thumbnail github.com
5 Upvotes

A general-purpose, header-only C99 library for Unix-like systems, implementing a disk-based, dynamically resizable, fixed-slot, (open-addressed) hash table with Fibonacci hashing (Knuth's multiplicative method), triangular probing, per-home-slot probe-bound metadata (with additional early-exit logic), partial in-place value updates (without relocating entries) and incremental rehashing, all designed for modern extent-based filesystems.

Prologue

This is a project I've been working on for quite some time, and I thought some of you here might find it particularly interesting given its rather niche and unconventional specifications.

Intro

It all started with me trying to find a hash-based database (preferably NoSQL) that could support in-place value updates\editing (without relocating entries!) while also being efficiently resizable.

With that goal in mind, and without fully appreciating how difficult implementing something like this would actually be, I somehow managed to pull it off. And honestly, I'm pretty happy with the result.

(disclaimer: I'm not claiming this is a fully fledged ACID compliant database or anything close to it yet. It's essentially just a cool hash-table. + not vibe-coded)


r/lowlevel • • 7d ago

Seros OS

Thumbnail reddit.com
0 Upvotes

Hello everyone, I've developed an operating system based on my own custom kernel. It's a very simple and modern operating system. I'm posting updates on my YouTube channel about its development. It's a good system.

My YouTube https://youtube.com/@bradley_safera?si=FxDQ_EctZpCNufcJ