ane-baremetal

joshuaswarren

A bare-metal C and ARM64 payload that powers and runs an fp16 addition on Apple's Neural Engine.

CCreated

What is joshuaswarren/ane-baremetal?

ane-baremetal demonstrates driving the Apple Neural Engine directly on bare metal without an operating system, kernel, firmware, or driver. Built in C and ARM64 assembly and MIT-licensed, it targets a 16-inch M1 Max MacBook Pro and verifies an exact 64-lane fp16 addition over the dockchannel serial console.

The flat payload binary is pushed over USB via an m1n1 debug proxy, powers up the Neural Engine islands through PMGR registers, configures all three 16K-page T6000 DART2 IOMMUs across 16 streams including a secondary leaf table for microcode workspace, enqueues the h13 add program, and checks completion interrupts and CPU-cached output. Repository files include register maps, linker scripts, the bmn-push loader script, an operational run card, an acceptance contract, and passing serial logs alongside a T8103 control build.

Running it requires an aarch64 cross toolchain, a remotely recoverable target Mac, and a second host running m1n1 over USB; only the 64-lane add is implemented so far.

Before you startThe README says

Runs on
Bare metal on Apple Silicon (tested on 16-inch M1 Max MacBook Pro)
Needs
aarch64 cross toolchain, second machine running m1n1 over USB, remotely recoverable target Mac
How you get it
Clone GitHub repository, build with make CHIP=t6001, push via m1n1
Not yet
Only runs 64-lane add; workspace root slot hard-coded; boot SHA printout pending

Facts from GitHub (updated Dec 1, 2026) and the project's README. License summaries are simplified: check the license file. RepoRanking reviews listings for relevance and spam, and doesn't test or vouch for code.