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

Python firmware patch script #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

colinoflynn
Copy link
Collaborator

This will close issue #10, hopefully having fixed issues with PR #18.

Script now uses command-line arguments for most things by default. There are a few "forward references" for certain options (such as logo patching & for serial monitor). The options are broken right now, as required dependencies are in my fork... will be fixed shortly. This python script is more critical however, so made sense to submit this PR first (then add the support stuff back).

@dblunk88
Copy link

dblunk88 commented May 1, 2020

Whow! Nice!

Copy link

@dblunk88 dblunk88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added compatibility

"""This class contains the actual patching scripts for specific items"""

known_units = [
ASUnits("AirSense 10 Autoset", "37028", "SX567-0401", "533b91127aa22e05b933db203ad56c449dc12a8c3fd62f57bd88c472a8061775"),
Copy link

@dblunk88 dblunk88 May 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add SX567-0306 with hash of 363a204ba217f31223e929365d58b8f5ce038a7681e362fe157e190c2eacbd30 ?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may as well put in a request for "AirCurve 10 VAuto", "37051", "SX567-0401", "6790b548e0b37c57bc118772d4a04a599c0b74b16cd92e821071b9c7ba5ab711"


if self.asf.hash == self.known_units[0].hash:
self.asf.patch(fw, 0xBB734, clobber=True)
else:
Copy link

@dblunk88 dblunk88 May 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add an "elif" for SX567-0306 to patch to offset 0xbb4d4

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.

3 participants