CFW Encoded Bin Format

From Joey's Wiki
Jump to navigation Jump to search

CFW(Custom Firmware) has been a part of the Ninebot Scooter scene since its early days.

Firmware updates were previously unencrypted, meaning that CFW was also unencrypted.

The bin format is simply the unencrypted firmware update package that overwrites the area after the bootloader on the STM32/STM8 MCU's.

After Ninebot began encrypting firmware updates with TEA (Tiny Encryption Algorithm), apps like XiaoTea and others allowed legacy bin files to be converted to .enc.bin files.

This format was known as CFW Encoded Bin Format.

CFW generators like the ones from ScooterHacking began delivering zip files containing both bin and encoded bin formats.

This was the Zip V1 format.


Tools like XiaoTea and some others can create encoded/encrypted bin CFW files from plain bin files.

If you have a zip v1 or zip v2 file both bin types should be present in the form of FIRM.bin and FIRM.bin.enc.