DM870 AirPlay Firmware DeepWiki
Complete reverse-engineered architectural reference for dm870_airplay.bin (3.88 MiB SDRAM app) and dm870_stage2_loader.bin (8 KiB TCM loader) — running BridgeCo's KnOS RTOS, 1,435-class C++ BCO service framework (6,333 class-bound virtual methods in Ghidra), AirPlay/RAOP, Spotify Connect, DLNA/UPnP, Sulu Wi-Fi, and multi-codec audio DSP.
01 System Architecture Overview
Inside the Harman Kardon Aura, the BridgeCo DM870-CE2 (Sulu) is a triple-core network-audio SoC (240 MHz ARM926EJ-S + 160 MHz SIMD Audio Engine + 160 MHz Secure Co-processor, module CX870-3IB) with 8 MiB external MX29GL640E NOR flash, 16 MiB SDRAM, 64 KiB unified on-chip SRAM, integrated 802.11b/g MAC/baseband (T6201 RF) (SuluWLAN), and I2S audio output feeding the STM32-managed AK7742 DSP (STM32 Wiki • BL1 Wiki).
Codebase Composition (18,392 Functions in dm870_airplay.bin)
02 Two-Stage Boot Chain & Runtime Memory Map
NOR partition 0x1C0000..0x5B0000 (CRC-32 0xCDC12327, build 20150804070002) holds the 8 KiB Stage-2 Loader (dm870_stage2_loader.bin @ on-chip SRAM 0x0040DA00) and the 3.88 MiB main application (dm870_airplay.bin @ SDRAM 0x60008000, Fletcher-32 0xAFB432F9).
| Memory Block | Address Range | Size | Origin & Role |
|---|---|---|---|
| TCM_CODE | 0x00400000 – 0x00403147 | 12.3 KiB | Copied from 0x603E601C. ARM IRQ dispatcher (0x00400040), RTOS timer queues, audio DMA descriptors. |
| TCM_DATA | 0x00403148 – 0x004032F7 | 432 B | RVCT LZ77-decompressed from 0x603E9164. Hot IRQ/scheduler state. |
| TCM_BSS | 0x004032F8 – 0x0040408F | 3.4 KiB | Zeroed by __scatterload_zeroinit. Fast IRQ handler tables. |
| TCM_STACK_ID | 0x00404090 – 0x0040FFFF | 47.9 KiB | Boot/IRQ stacks (SP 0x0040FA00), Stage-2 slot (0x0040DA00), device ID byte 0x0040FFFF. |
| SDRAM_LOW_BSS | 0x60000000 – 0x600047FF | 18 KiB | Low SDRAM zero-initialized region. |
| SDRAM_CODE (ram) | 0x60008000 – 0x603E9173 | 3.88 MiB | Loaded dm870_airplay.bin: ARM/Thumb code, 1,435 RTTI typeinfo, 1,308 vtables, compressed init data. |
| SDRAM_DATA | 0x60418000 – 0x6041F15B | 28.3 KiB | RVCT LZ77-decompressed from 0x603E1E84. Global C++ singletons & service tables. |
| SDRAM_BSS | 0x6041F15C – 0x60472B97 | 334.6 KiB | Static zero-initialized globals, sockets, audio buffers, KnOS state; followed by SDRAM heap. |
03 Reconstructed C++ Class Hierarchy & BridgeCo Core
Built with ARM RVCT C++ with intact Itanium-ABI RTTI (0x603D03FC / 0x603D040C / 0x603D041C): 1,435 classes (218 root, 1,104 single, 113 multiple inheritance), 1,308 vtables (1,305 applied in Ghidra), and 6,333 class-bound methods (`6,243` typed with `ClassName *this`).
| Root Base Class | Descendants | Role in BridgeCo Firmware |
|---|---|---|
IBCOInterface | 199 | Root COM-style service interface (IBCOService, INapManager, IUPnPModule, IWlControlService, IGenaService, ISpotifyService). |
Functor | 187 | Type-safe callback closures (MemberFunctor0/1/2, SynchMemberFunctor, FreeFunctor). |
ShellCmd | 164 | Telnet/serial CLI commands (PersParamShell, SysStreamStatCommand, WLAN/DMA/AVE tools). |
IObservable / IObserver | 83 / 26 | Publish-subscribe change notifications (NestedObserver<T, Key>) for SDS, Wi-Fi, PLL, UI. |
RemoteRegisterCallback | 67 | SPI RemoteReg handlers bridging DM870 subsystems to STM32F105. |
BCOServiceHandle | 61 | Smart runtime service lookup handles (TBCOServiceHandle<T>). |
HSMTopState<Host> | 45+ | Hierarchical State Machines for NapManager (15), NapAvPortOutput (14), NapCore (10), ShellHSMHost. |
04 Sulu Wi-Fi Driver, WPA/WPS & Networking
Native SuluWlanDevice (0x60131D10) with embedded wpa_supplicant (0x601BAF6C), WPA2-PSK/WPS (wlan_wps_pin_join @ 0x60214470), JBCONNECT Setup AP (HK_Aura***** @ 192.168.1.1 + DHCPServer @ 0x60077EC0), antenna diversity ([ANTDIV]), TLS/SSL (SSLClientServiceImpl), and ParaventHtContentHandler HTTP server.
05 AirPlay, RAOP Audio & Bonjour mDNS
AirPlayReceiverServerControl (0x6005DAAC), AirtunesProcessor (0x6003A87C), Bonjour/mDNS (_raop._tcp / _airplay._tcp), RTSP, binary/XML plist parser, FairPlay/RSA/AES audio decryption, album art serving, and on-chip SRAM TGen AV PLL Observer (0x004012B8) sample-clock drift locking.
06 UPnP / DLNA Renderer & Streaming Services
Full DLNA Digital Media Renderer (UPnPMediaRenderer, SsdpWorker, GenaServiceImpl @ 0x6013B048, UpnpAvDidlReader) plus Spotify Connect (SpotifyServiceInit @ 0x600E4BD8, SpotifyService_selectAndPlay @ 0x600E76C8) and BridgeCo SDK modules for QPlay, Pandora, Lastfm, Sirius, Rhapsody, Shoutcast, Napster, Flickr, and DTCP/Cardea.
07 NAP Audio Engine, Codecs & DSP
NapManager (15-state HSM) feeds pluggable StreamProcessor/NapDecoder decoders — AAC/ALAC, MP3, FLAC, Ogg Vorbis, WMA, WAVE/LPCM/AIFF — into NapAvPortOutput and on-chip SRAM audio DMA (dma_setChannelDescriptor @ 0x00401040) driving I2S output to the AK7742 DSP.
08 STM32 Host Bridge (SPI RemoteReg / LAC)
SPIRegisterTransportLayer_process (0x601FCE74) frames variable-length SPI register packets dispatched across 67 RemoteRegisterCallback handlers (Wi-Fi on/off, IP profile, WPS, Wi-Fi test, rr:// OTA transfer) with NOR persistence via PersParam (0x601A6708) and FlashDriver.
09 Telnet Shell (:8000), WebCfg & Diagnostics
TelnetShellService (/dev/TelnetShell @ 0x601E2808, port 8000) dispatches 164 ShellCmd classes (`persparam`, `sys wlan test`, `drc`, `ave`, `sulu`, `ssdp`, `sds`, `rtp`); the embedded HTTP WebCfg server provides ASP configuration pages (`webCfg_configureProfileSettings`, `webCfg_configureAirplayPassword`, etc.).
10 Interactive Function, C++ Class & Ghidra Object Explorer
Browse all live Ghidra objects from dm870_airplay.bin and dm870_stage2_loader.bin: 18,392 app functions (6,333 class-bound), 1,435 C++ classes, 2,740 vtable & typeinfo labels, and 41 Stage-2 bootloader functions. Press / anywhere to search.