snom firmware tools and alpha custom firmware for D375
Tools and notes for building custom firmware for snom v10 desk phones.
Currently covers:
| Model |
Line |
Firmware format |
Key type |
Status |
| D375 / D385 |
D3xx |
.bin (RSA-1024 + AES-128-CBC) |
firmware1.pub (RSA-1024) |
CFW working |
| D815W |
D8xx |
.swu (SWUpdate, AES-256-CBC UBIFS) |
firmware1.pub (RSA-2048) + firmware1.aes |
Decryption working |
| D785 |
D7xx |
.bin (RSA-1024 + AES-128-CBC) |
firmware1.pub (RSA-1024) |
Keys dumped |
Flashing modified firmware can brick the phone and voids support. Take a full
backup (docs/recover-from-device.md) before
flashing anything.
CFW Features (D375)
Alpha: not production ready, not hardened. Use on a trusted LAN only.
The phone runs the newer D815 phone app (10.1.226.16) on the D375's own kernel,
with your settings, calls and sound working. Everything below is added on top. The
original app stays in the image. See backport-guide.
Phone app
- D815 phone app (10.1.226.16) in a chroot on the D375 kernel: SIP, calls, handset, speakerphone, backlight, themes and native side button panels work (backport-guide)
- Keys 11 and 12 work, injected by a shim (they have no LEDs or side panel labels)
Access and administration
- Persistent root SSH (default password
snom375), with OpenSSH 10.2p1 and OpenSSL 1.1.1w in place of the stock 8.1p1 / 1.1.1g (ssh-update)
- Extra tools on the phone:
htop, nano, curl (building-nano)
- CFW web panel on port 8080 with tabs (System, Games, Screen, Phone, Logs), login
root + the SSH password (cfw-login, cfw-settings)
- Logs tab: the system log in the browser
- Settings backup (download
snomconfig as a tar) and a reboot button
- Recovery buttons: reset the root password, restore the default
sshd_config
- System info page: uptime, CPU, memory, flash, processes, logs (sysinfo)
- Screenshot button, plus a live remote screen and keypad in the browser (remote)
- Settings → CFW Tools menu on the phone itself, with a CFW info screen
Games (start them from the panel or from Settings → Games on the phone)
- DOOM with sound, Freedoom presets or your own WAD (doom)
- NES (InfoNES) with sound (nes)
- Game Boy / Game Boy Color (Gambatte) (gb)
- Game Boy Advance (gpSP, ARM dynarec) (gba)
- ROMs and WADs load from a URL, bare or inside a
.zip (zip)
- Saves persist on flash and survive reboots (saves)
- Key maps you can edit per game; volume keys work in game (keymap)
- Games on keys: put a game on a function key; pressing it downloads and starts the game (keymap)
- Quitting (red hangup key) returns to the phone in about 30 s, no reboot (quit-without-reboot)
Phone features
- Intercom / baby monitor: streams the microphone to a browser (works in Safari) or a PC while the phone stays usable. You pick the mic: speakerphone, handset, headset jack or both (intercom)
- Network speaker / reverse intercom: play a file from the panel, or add a "snom D375" sound output to a Linux PC (PulseAudio or PipeWire) and hear the PC on the phone's loudspeaker. Works at the same time as the intercom. You choose the output: loudspeaker, or the handset earpiece (experimental) (speaker)
- Navidrome / Subsonic player: browse artists, albums, playlists and search on the phone, play on the loudspeaker; MP3 decoded on the phone with libmad (navidrome)
- Custom ringtones: upload, preview and assign per line (ringtones)
- Scripts menu: run your own shell scripts from the phone, such as wake-on-LAN (scripts)
- Scripts on keys: assign a script to a function key from the panel; survives reboots (backport-guide)
- Custom boot splash: any image, resized in the browser, shown at boot and in the phone app, plus theme icons (theming)
- Idle-screen widgets: panel card exists but does not work with the current app (idle-screen)
Development
- QEMU machines for the D375 and D815 that boot the real firmware images, registered in virt-manager (qemu)
- One CFW tree that builds for several models (started) (multi-model)
- Signed D375 dev images built by GitHub Actions (ci-releases)
How it works
D3xx / D7xx (.bin format)
The phone accepts a firmware image if it is signed with the private half of
the RSA key it stores at /firmware1.pub. Once you have root on the phone, you
can swap that file for your own public key. From then on the phone accepts
images you sign. See docs/firmware-format.md and
docs/signing-keys.md.
stock .bin ──fw-unpack.sh──▶ rootfs ──(your changes)──▶ rootfs/d375 ──build-custom-firmware.sh──▶ custom .bin
▲
running phone ───────────fw-pull-from-device.sh──────────────┘ (recovery path)
D8xx (.swu format)
The D8xx line uses SWUpdate with AES-256-CBC encrypted UBIFS images. The
decryption key+IV are stored at /firmware1.aes on the device. Signature
verification uses RSA-2048 (/firmware1.pub). See
docs/firmware-format-swu.md.
stock .swu ──swu-unpack.sh──▶ rootfs (UBIFS)
Repository layout
Everything is tracked in git, including the signing keys (they are public on
purpose, so anyone can build images for a phone running this CFW).
src/ our code
cfw-d815/ the D815's own panel files; the rest is shared from rootfs/d375/snom/cfw
games/ doom/, nes/, retro/ (the GB/GBC and GBA frontend)
audio/ snd/ (shared halaudio + keymap layer), intercom/, navidrome/
remote/ screen capture and key injection
native/ small C helpers: bindmount, fb24shim (+ keymap.h), rtcap
host/ linux-tel-wrapper (tel: links on a Linux PC)
tools/
fw/ unpack, build, sign and diff firmware images (start: build-custom-firmware.sh)
build/ docker + musl cross-builds of the phone binaries, output in out/
qemu/ QEMU machines, NAND images, virt-manager VMs
device/ scripts that talk to a phone: speaker, intercom, D815 app trials, web password, VPN
backport/ staging the D815 phone app for the D375
media/ splash, icons, theme images
analysis/ one-off reverse-engineering helpers
tests/ on-phone feature tests (tests/lib.sh)
out/ cross-built binaries
rootfs/
d375/ the D375 CFW rootfs; its snom/cfw/ holds the D375 CFW code
d375.manifest owners, modes and device nodes for d375/
d375.exclude files left out of the D375 image
d815/ the D815 CFW rootfs
stock/ stock rootfs trees unpacked by the unpack tools
firmware/
stock/ stock images from snom
custom/ built images; custom/previous/ keeps older builds
keys/
stock/ snom's public keys and the D815 AES key (see keys/README.md)
custom-d375/ our D375 signing key (CI gets it from a repository secret)
custom-d815/ our D815 signing and AES keys
emu/ QEMU board models (board/), D815 overlay, VM disks
backups/ dumps pulled from phones
vpn/ OpenVPN server and phone tarball for the first root
third_party/gpl/ snom's GPL source tarball
docs/ documentation (start here)
.github/workflows/ CI: signed D375 dev images as GitHub pre-releases
Documentation
- docs/root-access.md: getting the first root shell (OpenVPN method) and keeping it
- docs/firmware-format.md:
.bin image layout and crypto (D3xx/D7xx)
- docs/firmware-format-swu.md:
.swu image layout and crypto (D8xx)
- docs/signing-keys.md: trust chain, rekeying, going back to stock
- docs/building.md: building and flashing a custom image
- docs/recover-from-device.md: rebuilding this project from a phone that already runs custom firmware
- docs/device-notes.md: hardware/partition/boot facts
- docs/cfw-settings.md: the CFW Settings web panel (port 8080) and how it's wired in
- docs/building-nano.md: cross-building a static musl
nano for the phone