E-DOC-CTC-20071119-0003 v1.0
35
3| Firmware Upgrade and Configuration Update
3.1.2 Single Memory Bank Firmware Upgrade
Introduction
All Thomson Gateway residential RTEMS devices have a single memory bank (Flash).
Description
First, the CPE receives a Download RPC from the ACS. If the FileType argument is set to “1 Firmware Upgrade
Image”, a firmware upgrade is started.
A single memory bank firmware upgrade process includes following steps:
1 After downloading the first 125 bytes of the file to SDRAM (volatile memory), the new firmware image
header is checked for integrity.
2 The old firmware image in Flash (persistent memory) is deleted.
3 Using a reasonably small buffer, parts of the new firmware image are downloaded (over TCP) and written
to Flash (= flashed).
4 When completed, a reboot is initiated to load and run the new firmware.
Finally, the completion (success or failures) of the firmware upgrade is indicated to the ACS
(TransferComplete RPC).
Firmware upgrade flow
The different steps of the firmware upgrade process are depicted in following illustration:
Firmware
Flash
SDRAM
BL
Image
BL
Firmware
Firmware
BL
Image*
Firmware*
BL
Image*
Erase image
in Flash
Flash
image
Reboot/Load
new firmware
Upgrade
Command
Upgrade
Complete
Download
Image