Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firmware file format and compatibility with stock bootloader #7

Open
mo22 opened this issue Jan 4, 2017 · 1 comment
Open

firmware file format and compatibility with stock bootloader #7

mo22 opened this issue Jan 4, 2017 · 1 comment

Comments

@mo22
Copy link

mo22 commented Jan 4, 2017

Hi,
I have an unmodified sw1pbu and would like to modify the firmware using flash-ota. I'm able to flash an official firmware image without problems, however the device rejects any custom firmware created with hex2eq3.php
Looking at the stock firmware the format seems to be a list of [uint16 length][data][uint16 crc] where length is always a multiple of 16. The first block is 15-1716, then there are interleaved blocks 116 and 1716, and at the end a couple of blocks with 1716 length. as the SPM_PAGESIZE is 256 i assume that the 1716 blocks contain one page worth of data with a 16 byte header?, also the data does not seem to contain any valid atmel code. I assume it is encrypted? maybe the 16 byte header is an aes IV?
Please let me know if it should be possible to flash a custom eq3 file or if that only works after installing the custom bootloader, also, does the custom bootloader accept stock eq3 files?
Thanks,
Mo

@jabdoa2
Copy link
Owner

jabdoa2 commented Jan 4, 2017

Hi Mo,

The custom firmware only works with the custom bootloader. Also the custom bootloader currently will only flash the custom firmware because the original one is encrypted (which might be broken now but was not when i wrote the bootloader).

Jan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants