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

Add support for PAKs targeting 64-bit devices #4

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

AT0myks
Copy link
Contributor

@AT0myks AT0myks commented Apr 10, 2023

The tests I mentioned in #3 were to try and figure out the difference(s) between the RLN36 and the rest, and it looks like the bitness is indeed the answer. Based on this, I added a is_64bit function to identify the different layout, the corresponding constants and made the required changes which should be completely backward compatible.

I have ideas to make the code a little nicer but that would also break the backward compatibility.

Fixes #1.

Also, turns out #3 helped uncover a non-empty section for RLN36 firmwares.

@vmallet
Copy link
Owner

vmallet commented Apr 11, 2023

Thanks! Looks good overall, I'd like to get a chance to test it first and I won't be able to do that right away. Please ping if I take too long.

pakler.py Show resolved Hide resolved
@vmallet vmallet merged commit 760dc70 into vmallet:main Apr 12, 2023
@AT0myks AT0myks deleted the 64-bit branch April 12, 2023 22:03
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.

Reolink RLN36
2 participants