Skip to content

Instantly share code, notes, and snippets.

Sagemcom F@ast 5250 (Fast 5250) Boot
Firmware version: SG9F11000E (8a.37.5.2)
Serial port, 115200N8
Primary boot with ubi support
Version: 5.18.0.2-Bonding-256M (Oct 2 2014 - 09:50:40)
Copyright (C) 2011 - 2013 Sagemcom All rights reserved
gpio in: fe87fffd
@kissste
kissste / gist:280274c0c2808c5f2de00b48a5b77068
Created September 22, 2018 12:20
RTL8710 OTA, Recovery, Image, ram_all and etc
https://forum.pine64.org/showthread.php?tid=2500&pid=22739#pid22739
I finally received a handful of PADI modules last week and spent a little quite some time over the weekend analyzing the OTA update and firmware recovery methods. Generally speaking, the firmware on the PADI is an improvement over the one on the B&T modules, but there are still a few caveats involved.
First, a few definitions:
Bootloader (BL) / Img1
First stage image loaded by ROM code, always located at flash address 0x0. No source available in any SDK.
Img2
Runtime firmware image, loaded by Bootloader.
+-----------+--------+-------+-------+
| Module | .text | .data | .bss |
+-----------+--------+-------+-------+
| Fill | 249 | 35 | 130 |
| Misc | 325715 | 5797 | 84238 |
| Subtotals | 325964 | 5832 | 84368 |
+-----------+--------+-------+-------+
Allocated Heap: 163840 bytes
Allocated Stack: 2048 bytes
Total Static RAM memory (data + bss): 90200 bytes
mbed compile -vv -m UNO_91H -t ARM --source TESTS/TARGET_RDA/usbdevice_msd/ --source ./ -c
mbed compile -m UNO_91H -t ARM --source TESTS/TARGET_RDA/usbdevice_msd/ --source ./ -c
@kissste
kissste / RDA5981_bootloader.h
Created April 26, 2018 02:46
RDA5981 Boot ROM versions
#ifndef RDA5991H_BOOTROM_API_H_
#define RDA5991H_BOOTROM_API_H_
//#define RDA5991H_U04
#define RDA5991H_U02
#define RDA5991H_DEBUG
//#if defined RDA5991H_U04
#if defined (UNO_81A_U04) || defined (UNO_81AM_U04)|| defined (UNO_81C_U04)