[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109943":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":12,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":14,"starSnapshotCount":14,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},109943,"franken_firmware","Dicklesworthstone\u002Ffranken_firmware","Dicklesworthstone","Memory-safe Rust replacement firmware for the Sonos hardware you already own — BE-PowerPC + BE-MIPS, S1 + S2. Research workspace: toolchain bake-offs, QEMU proofs, board evidence. Companion to frankensonos.",null,"Rust",58,1,53,0,5,41.9,"Other",false,"main",true,[22,23,24,25,26,27,28,29,30,31,32,33],"big-endian","cross-compilation","embedded","firmware","memory-safety","mips","musl","powerpc","qemu","reverse-engineering","rust","sonos","2026-11-19 03:17:42","2026-11-19 08:56:09","\u003Cdiv align=\"center\">\n\n# FrankenFirmware\n\n**Replacement firmware for the Sonos hardware you already own**, written in\nmemory-safe Rust. The fleet: eight Play:5 Gen1, four Play:1, a Play:3, a Sub,\na Playbar, three Bridges. Two instruction-set families appear in the\nextracted firmware images (big-endian PowerPC and big-endian MIPS; the exact\nSoCs and which units run which image are still unresolved), two firmware\ngenerations (S1 and S2), one target codebase.\n\n![status: research](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstatus-research%2Fpre--alpha-orange)\n![language: Rust 2021\u002F2024](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-2021%2F2024-dea584)\n![license: MIT + rider](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT%20%2B%20OpenAI%2FAnthropic%20rider-blue)\n![toolchain targets: mips BE · powerpc BE](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ftoolchain%20targets-mips%20BE%20%C2%B7%20powerpc%20BE-7b4bff)\n![safety: forbid(unsafe_code) app crates](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fsafety-forbid%28unsafe_code%29%20app%20crates-blue)\n\n\u003C\u002Fdiv>\n\n> **Status: research workspace, pre-alpha.** The live tracker has 56 beads;\n> the 2026-11-05 review found six closed (E01, E03, E05, E06, E07 and Q00).\n> Use `br list --all --deferred --limit 0 --json` for current counts and\n> `br ready --json` for actionable work. The Rust workspace, offline suites\n> and cross-target evidence are implemented in this tree; each open bead\n> still requires its own acceptance review. Passing host tests or cross-checks\n> does not qualify playback on Sonos hardware.\n\n---\n\n## Why\n\nSonos hardware lasts for years; the software around it does not keep up. The\nS1 line is frozen, S2 dropped it, and the two generations cannot share a\ngroup. The companion project\n[**FrankenSonos**](https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Ffrankensonos) already\nreplaced the controller side with a Rust daemon that runs the whole house\nover the speakers' own UPnP\u002FSOAP\u002FGENA protocols. FrankenFirmware is the\nfirmware side of that plan: new software on hardware the owner already\npossesses, on the owner's own LAN.\n\nThe architecture follows the assessment (two independent peer reviews) and\nthe bead graph.\n\nRetained kernel first: a static-musl Rust userspace runs under the stock\nkernel layout class; a from-scratch OS is a later, separate ambition. The\naudio path uses the retained stock drivers behind audited HAL adapters\n(E04, P04, D04).\n\nHost coordination can provide shared sessions and decode-once PCM distribution.\nRequired native integrations, including native Tailscale, remain in scope and\nmust qualify under each selected board profile; host assistance cannot stand\nin for native qualification. The 32 MiB endpoints (the eight Play:5 Gen1 units\nare the fleet's center of gravity) need a bounded render and network runtime.\nPer-profile resource and service evidence decides which configurations can run.\n\nThe fsonos contract survives: a compatibility adapter (G03) keeps the\nexisting daemon, CLI and MCP surfaces working over the new firmware, so the\nhouse keeps working through the migration.\n\nReversibility is designed in from the start: signed staged artifacts with\nanti-rollback (U02), a human-led activation runbook with rollback triggers\n(U03), and calibration\u002Fstate custody handled before any activation (U01).\n\nNative integrations are gated. Spotify (S01-S03) is the first source;\nAirPlay (A01-A02), Alexa (X01-X05, including optional local voice on\nmicrophone-bearing boards), Tailscale (T01-T04) and video sync (V01-V02)\neach carry their own qualification beads, and a bead closes only when its\nqualification evidence does.\n\n## The plan: 56 beads\n\nTask state lives in `.beads\u002F` (the beads tracker). The graph has two roots,\nE01 (reconcile device\u002Ffirmware identity evidence) and Q00 (deterministic\ntest\u002Freceipt infrastructure); everything else waits on them in a dependency\ngraph 19 waves deep, with no cycles (`br dep cycles` is clean). Run\n`br ready --json` for what is actionable right now. The families:\n\n| Family | Beads | What it covers |\n|---|---|---|\n| E — Evidence | 7 | board\u002Ffirmware identity reconciliation, incumbent baselines, legacy kernel ABI matrix, retained audio driver ownership, boot\u002Frollback semantics, dependency audit, BE bootstrap harness repair |\n| P — Platform | 6 | Rust workspace and build profiles, legacy platform capability layer, bounded Asupersync execution profile, board HAL adapters, Asupersync upstream adaptation, portable Franken library subsets |\n| D — DSP\u002Frender | 4 | fixed-size audio blocks, board protection DSP, drift correction and resampling, render scheduling against the retained HAL |\n| N — Network transport | 7 | authenticated stream framing, bounded control channel, group clock and synchronized join, jitter and concealment, RaptorQ evaluation, bounded FEC, link lifecycle and paced delivery |\n| G — Groups\u002Fcontrol | 3 | unified cross-generation group state machine, volume\u002Fmute\u002Froles, fsonos compatibility adapter |\n| S — Spotify | 3 | source session contract, codec profile qualification, cache and source placement |\n| U — Update\u002Fstate | 4 | persistent state and calibration custody, signed staged artifacts, reversible activation handoff, readiness\u002Frecovery UX |\n| Q — Qualification | 8 | test infrastructure, virtual-house harness, footprint and deadline budgets, acoustic\u002Fnetwork qualification, combined-candidate qualification, release handoff, external-gate validation, real-process E2E |\n| T\u002FA\u002FX\u002FV\u002FL — Integrations | 14 | Tailscale (4), AirPlay (2), Alexa (5), video sync (2), line-in (1) |\n\n## Repository layout\n\n```\nAGENTS.md                  rules for AI agents (also the human onboarding path)\nFIRMWARE_ASSESSMENT.md     engineering assessment with two peer-review reconciliations\ninventory\u002F                 sanitized fleet inventory + capture scripts (no personal data)\ntoolchain\u002F                 bake-off sources, initramfs builder, boot scripts, results\ndocs\u002F                      per-bead contracts and sanitized planning artifacts\n.beads\u002F                    local task graph managed with br (git-ignored)\n.local-real\u002F               git-ignored raw captures with real IPs\u002FMACs\u002Fserials\n```\n\n## What is proven so far\n\nEvidence lives in `toolchain\u002Fresults\u002F` with committed serial logs.\n\n| Gate | Target | Status |\n|---|---|---|\n| Hello `\u002Finit` builds | `mips-unknown-linux-musl` (BE) | done: 2,068 B static ELF, `file(1)`-verified |\n| Hello `\u002Finit` builds | `powerpc-unknown-linux-musl` (BE) | done: 1,588 B static ELF |\n| Boot as PID 1, banner on serial, clean reboot | BE-MIPS (QEMU Malta, 4.19 kernel) | done, full cycle |\n| Initramfs unpack, `\u002Finit` exec, user→kernel syscalls, clean reboot | BE-PPC (QEMU g3beige\u002FOpenBIOS, 4.9 kernel) | done; userspace output reaches the serial console through the `pmac_zilog` driver (`\u002Fdev\u002FttyPZ0`, `console=ttyPZ0`); run `toolchain\u002Fresults\u002Fruns\u002F1412ac47120d4e5b865f9de6e05f50fe` |\n| std + full dependency graph cross-compiles | BE-PPC via `-Z build-std` | done |\n| asupersync legacy runtime on BE-PPC | | the initial `AtomicU64` compile blocker has been addressed; P05 remains open for its bounded-runtime acceptance and target evidence (`docs\u002Fcontracts\u002Fp05.md`) |\n\nThese are cross-build and emulation results on generic QEMU machines (Malta,\ng3beige). They show the toolchain and boot path work for the two big-endian\ninstruction-set families; they say nothing about Sonos silicon. The committed\nimage evidence records no ISA revision, ABI or float ABI for the MIPS image\n(`abi: null` in `inventory\u002Fimage-evidence.json`), and no live unit is mapped to\nthat image (`inventory\u002FINVENTORY.md`, `docs\u002Fcontracts\u002Fe01.md` §11).\n\nTwo porting bugs were found and fixed along the way, and both are documented\nin `toolchain\u002Fresults\u002FRESULTS.md`: MIPS o32 syscall numbers are 4000-based\n(`write` is 4004; using the generic numbers fails silently), and `asm!` on\nthese targets needs `asm_experimental_arch` with explicit `$N` register\nbindings.\n\n## Safety and scope\n\nThis repo never touches hardware. Flashing, device experiments and\nunlock\u002Fexploit work are human-led and live in the frankensonos project\n(`docs\u002FSCOPE.md` there). Activation of anything onto a speaker is bead U03:\na human-led runbook with rollback.\n\nPublic repo hygiene: no real IPs, MACs, serials, household IDs, captures,\nkeys or firmware images. Raw captures live in git-ignored `.local-real\u002F`.\n\nMemory-safety contract: `forbid(unsafe_code)` in application, protocol and\nDSP crates; minimal audited `unsafe` only in platform crates (startup, MMIO,\nDMA), per the assessment.\n\n## Working on this repo\n\n`AGENTS.md` is the onboarding path. The tracker is beads: `br ready --json`\nshows actionable work, `br show \u003Cid> --json` gives scope and acceptance\ncriteria, and each bead's owned outputs (a contract doc under\n`docs\u002Fcontracts\u002F` plus code) land as the bead is worked. Beads commit\nalongside code (`br sync --flush-only` before `git add .beads\u002F`).\n\n## Related\n\n- [FrankenSonos](https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Ffrankensonos): the live\n  host-side controller and daemon; its docs hold the installed-firmware\n  ground truth and the human-led hardware process.\n- asupersync, franken_kernel, frankenlibc, frankenfs, franken_remote: the\n  franken library stack; bead P06 owns extracting the portable subsets.\n\n## License\n\nMIT with an OpenAI\u002FAnthropic rider; see [LICENSE](LICENSE).\n","FrankenFirmware 是一个面向现有 Sonos 硬件的内存安全型 Rust 替代固件项目，支持大端 PowerPC 和 MIPS 架构（S1\u002FS2 两代设备）。其核心特点是采用 forbid(unsafe_code) 的纯安全 Rust 实现、基于静态 musl 用户空间并复用原厂内核与音频驱动，通过 HAL 适配层保障硬件兼容性。项目当前处于研究预发布阶段，聚焦工具链验证、QEMU 模拟测试及板级逆向证据收集，不提供开箱即用的刷机方案。适用于嵌入式爱好者、逆向工程研究者及希望延长老旧 Sonos 设备生命周期的技术用户，在本地局域网内探索固件级自主控制与协议兼容演进。",2,"2026-11-24 04:37:58","CREATED_QUERY"]