mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
back out patch of the opcode change -- the backup script did that in error
This commit is contained in:
parent
89d050891b
commit
a0791ff092
1 changed files with 3 additions and 4 deletions
|
|
@ -195,10 +195,9 @@ def main():
|
||||||
if backup_version == 0x10001:
|
if backup_version == 0x10001:
|
||||||
logging.info("Doing hash verification of pt+ct metadata")
|
logging.info("Doing hash verification of pt+ct metadata")
|
||||||
hasher = SHA512.new(truncate="256")
|
hasher = SHA512.new(truncate="256")
|
||||||
check_region = bytearray(check_region)
|
# this is where the backup upcode is located. It should be 0
|
||||||
# patch the backup opcode back to the one used to compute the checksum, because the version
|
# check_region = bytearray(check_region)
|
||||||
# written to disk had the opcode manipulated to "2" which instructs the system to do a restore
|
# check_region[140:144] = [0, 0, 0, 0]
|
||||||
check_region[140:144] = [0, 0, 0, 0]
|
|
||||||
hasher.update(check_region)
|
hasher.update(check_region)
|
||||||
computed_checksum = hasher.digest()
|
computed_checksum = hasher.digest()
|
||||||
if computed_checksum != checksum:
|
if computed_checksum != checksum:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue