Skip to content

change anti-tamper patch logic to skip calculating checksums only#26

Open
m-kozlowski wants to merge 2 commits intoAsmageddon:masterfrom
m-kozlowski:patch_tamper_without_breaking_uart
Open

change anti-tamper patch logic to skip calculating checksums only#26
m-kozlowski wants to merge 2 commits intoAsmageddon:masterfrom
m-kozlowski:patch_tamper_without_breaking_uart

Conversation

@m-kozlowski
Copy link

@m-kozlowski m-kozlowski commented Feb 24, 2026

...not bootloader stage entirely ;)

this is required to allow flashing over UART on airbreak firmware.
Previous implementation caused bootloader to jump directly to CDX code
image

(While patching three bytes would be enough to achieve the same effect in a cleaner way, I went with the longer approach, figuring that since we don’t care about the checksum value, there’s no point wasting time calculating it.)

It doesn't really make much sense given the current state of support
for this platform, handling this exception does no harm and at least
prevents careless bootloader corruption.
BTW, Lumis SX584-0204 is so far the only case I have encountered with
a different bootloader and a different memory block layout.
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

Successfully merging this pull request may close these issues.

1 participant