How rdkcentral/rdkfwupdater works
This repository implements RDK firmware update and recovery: an invoked updater gathers device/RFC context, queries XCONF, interprets firmware instructions, downloads the selected image, and flashes it while reporting status. A D-Bus-facing manager and asynchronous client API provide another product interface. The README documents the main upgrade sequence; the source index confirms several module references, but unsampled implementations limit confidence about finer-grained calls and some integrations.
Main entry points: rdkv_upgrade.c Upgrade orchestration · rdkv_main.c Updater main · rdkFwupdateMgr_handlers.c D-Bus handlers · device_api.c Device information
Components 22
Update workflow
- Updater main
src/rdkv_main.c - XCONF response parsing
src/json_process.c - Upgrade selection
src/rdkFwupdateMgr.c
Download and recovery
- Upgrade orchestration
src/rdkv_upgrade.c - Direct CDN download
src/directcdn.c - Chunk download
src/chunk.c - Image flashing
src/flash.c
Device integration
- Device information
src/deviceutils/device_api.c - Device utilities
src/deviceutils/deviceutils.c - RFC settings
src/rfcInterface/rfcinterface.c - mTLS credentials
src/cedmInterface/mtlsUtils.c - Download status
src/download_status_helper.c - Device and recovery state
src/device_status_helper.c - IARM events
src/iarmInterface/iarmInterface.c
Application interfaces
- D-Bus server
src/dbus/rdkv_dbus_server.c - D-Bus handlers
src/dbus/rdkFwupdateMgr_handlers.c - Async client API
librdkFwupdateMgr/src/rdkFwupdateMgr_api.c - Async operations
librdkFwupdateMgr/src/rdkFwupdateMgr_async.c
Other components
- Update script
- XCONF service
- Codebig / SSR
- Device flash storage
Connections 22
- Update script → Updater main: invokes
README - Updater main → Device information: reads context
README - Updater main → RFC settings: reads settings
README - Updater main → mTLS credentials: uses credentials
- Updater main → XCONF service: requests firmware
README - Updater main → XCONF response parsing: processes response
README - Updater main → Upgrade selection: checks upgrade
README - Upgrade selection → Upgrade orchestration: triggers download
README - Upgrade orchestration → Direct CDN download: selects download
README - Upgrade orchestration → Codebig / SSR: falls back
README - Upgrade orchestration → Chunk download: downloads chunks
- Upgrade orchestration → Device and recovery state: checks recovery
README - Upgrade orchestration → Image flashing: flashes image
README - Image flashing → Device flash storage: writes image
README - Upgrade orchestration → Download status: updates status
README - Upgrade orchestration → IARM events: reports events
README - Updater main → D-Bus server: starts service
- D-Bus server → D-Bus handlers: dispatches
src/dbus/rdkv_dbus_server.c - D-Bus handlers → Device information: uses device APIs
src/dbus/rdkFwupdateMgr_handlers.c - D-Bus handlers → Upgrade orchestration: uses upgrade API
src/dbus/rdkFwupdateMgr_handlers.c - Async client API → Async operations: starts operations
librdkFwupdateMgr/src/rdkFwupdateMgr_api.c - Device information → Device utilities: uses utilities
src/deviceutils/device_api.c