hn.today

Making musl and proprietary NVIDIA drivers work together

chimera-linux.org4 points0 comments
Screenshot of Making musl and proprietary NVIDIA drivers work together

The piece describes Chimera Linux’s effort to make NVIDIA’s proprietary graphics drivers run on a musl-based system, where the drivers’ glibc assumptions normally prevent proper operation. Support is particularly important for older cards: NVIDIA’s free Nouveau/NVK drivers can be much slower, and Maxwell/Pascal cards cannot raise their clocks without unreleased firmware. Chimera has working, though not yet finished, pull requests for NVIDIA’s 580 and 620 driver branches on x86_64 and aarch64. The author argues that stock musl is not sufficient and outlines the compatibility changes needed.

First, Chimera adopted GLVND, NVIDIA’s vendor-neutral OpenGL dispatch system, rebuilding Mesa to use it. The driver also needs gcompat to provide glibc symbols; its latest development revision supplies symbols missing from the tagged release. Packaging uses patchelf to remove or replace glibc library dependencies and add gcompat. A remaining relocation error came from GNU IFUNC, which musl deliberately does not support; Chimera adapted an Alpaquita musl patch to handle the required relocation and packages the result as musl-nvidia. Even after these steps, the driver exposes a thread-local-storage complication: its libraries use static TLS and x86_64 TPOFF64 relocations. The supplied material identifies this issue but does not show how it is resolved.

Read on chimera-linux.org0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

MeccanicOS

MeccanicOS

MeccanicOS is a keyboard-driven NixOS distribution designed to run from USB or install with full-disk encryption. It includes offline apps and drivers, a command bar, reproducible atomic upgrades, and optional local AI tools. (meccanicos.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.