Skip to content

Python tools for RT-Thread real-time operating system

License

Notifications You must be signed in to change notification settings

tonybounty/rtthread_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtthread-tools

Python tools for RT-Thread real-time operating system

install :

git clone https://github.com/tonybounty/rtthread_tools
pip install ./rtthread_tools/

OTA Firmware Reader

Decipher and decompress OTA Firmware .RBL

Usage example :

import rtthread_tools.ota_firmware as ota

with open("ota_firmware.rbl", "rb") as r, open("plain_firmware.bin", "wb") as w:
  rblfile = ota.Reader(r.read())
  if rblfile.cipher_type == ota.CipherType.AES:
    w.write(rblfile.Process(key="0123456789ABCDEF0123456789ABCDEF", iv="0123456789ABCDEF"))
  else:
    w.write(rblfile.Process())

QuickLZ and FastLZ compression are currently not supported

About

Python tools for RT-Thread real-time operating system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages