Commit graph

223 commits

Author SHA1 Message Date
bunnie
776a47f4bc missed a file 2022-10-02 02:21:06 +08:00
bunnie
15bcb6328f fixup other refs 2022-09-27 03:09:41 +08:00
bunnie
3579dfdd17 update xous-ipc and xous versions 2022-09-26 16:07:35 +08:00
bunnie
796256cfb0 make usb_update.py appear only once in the tree 2022-09-19 12:44:55 +08:00
bunnie
5461a70be1 add some generated data for later review 2022-09-16 01:52:06 +08:00
bunnie
46a2d8609f add perflib modules
this library can be re-used across multiple scenarios that require
performance profiling
2022-09-16 01:48:59 +08:00
bunnie
3a893213ff update the generated images to the latest data 2022-09-16 01:47:30 +08:00
bunnie
e12f651ac4 update analysis framework to use the binary files output by the latest changes 2022-09-16 01:47:02 +08:00
bunnie
3e79e3e430 add ability to read out data based on a list of virtual sectors
This adds the `--dump` command, which requires a file that is
a copy/paste of a generated virtual to physical table. An example
of this log would look like this:

```
INFO:shellchat::cmds::net_cmd: V|P 6000d000 40799000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 6000e000 4079a000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 6000f000 4079b000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60010000 4079c000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60011000 4079d000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60012000 4079e000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60013000 4079f000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60014000 407a0000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60015000 407a1000 (services\shellchat\src\cmds\net_cmd.rs:770)
```

and so forth. The script can parse this raw log to create the necessary
page table mappings to read a large region of virtual memory and save
it as a contiguous chunk in a file.
2022-09-16 01:39:49 +08:00
bunnie
57291a47f2 add some sample outputs from the analysis scripts 2022-09-11 21:16:45 +08:00
bunnie
088648409e add constant time analysis script 2022-09-11 19:13:38 +08:00
bunnie
2ee0d4dfce remind myself how to update the precursorupdater
the latest docs don't work for us, so, document our method here.
Just can't figure out the .toml method of describing the project...
2022-09-09 15:39:52 +08:00
bunnie
4b72492c3e fix bug #216 2022-09-09 15:07:31 +08:00
bunnie
ca3cc711a4 Re-add usb_update.py, but with modified help to guide users
It's a bit confusing to run the wrong tool but hopefully there
are ample help messages sprinkled in this to guide the average
user to the right location.
2022-08-16 13:57:36 +08:00
bunnie
5e455b60eb add debug to backalyzer to dump encrypted private key 2022-08-12 20:10:19 +08:00
bunnie
58a8264080 fix some bugs in printing errored-out sectors
also print the sector data that errors out -- might be a bit
much at the moment but it's very helpful for immmediately
visualizing a loss-of-power event related write corruption
2022-08-06 16:00:15 +08:00
bunnie
3a5e385b9a add arg to specify file (optionally) in backup 2022-07-29 00:24:40 +08:00
bunnie
a68eb7cc73 add missing files for backalyzer; add PTE conflict resolution 2022-07-28 04:47:02 +08:00
bunnie
e2f7a75f87 improve help message 2022-07-26 03:43:31 +08:00
bunnie
6266101727 backalyzer now works with PDDB in hosted mode.
Specify file as `-f pddb-images/hosted.bin` and use `--hosted`
2022-07-26 03:42:11 +08:00
bunnie
c889f5576f cleanup backalyzer. i think it's basically ready to go now 2022-07-26 03:09:09 +08:00
bunnie
22a85ba022 working draft of backalyzer 2022-07-26 02:53:19 +08:00
bunnie
ba7532a4fe fix backup length
we were accidentally also backing up the WF200 firmware as well,
chop that off so that the analysis scripts & restore works correctly.
2022-07-26 02:52:40 +08:00
bunnie
ef29e6e504 re-org the python pddb analysis scripts
allow for elements of pddbdbg.py to be shared with the backalyzer.py
2022-07-26 00:06:16 +08:00
bunnie
494ec7c2b3 improve the basis name validator - ':' is an illegal character in a basis name. 2022-07-26 00:05:45 +08:00
bunnie
a0a51cab5c emphasize that you must reboot by using the paperclip 2022-07-23 16:23:05 +08:00
bunnie
97b13e7df3 move the OG signing tool to legacy status 2022-07-23 16:08:47 +08:00
bunnie
b4a784391d clean up the tools directory 2022-07-23 16:07:33 +08:00
bunnie
c43aa7f77e remove egg and dist from the index as it is dynamically generated 2022-07-23 00:11:32 +08:00
bunnie
a43e0640f9 i'm not sure if these typically end up in repos, but they're there... 2022-07-22 22:29:32 +08:00
bunnie
5bce709d3c some cosmetic improvements and release notes acknowledgements 2022-07-22 22:28:46 +08:00
Jeremy O'Brien
b47fccde6a precursorupdater python package improvements
move precursorupdater's main into its own namespace and handle both
running from the repo directly and from pip
2022-07-22 09:53:04 -04:00
Jeremy O'Brien
52bcaa58b2 small fixes to make the precursor updater python package work through pip 2022-07-22 09:41:43 -04:00
bunnie
bc758749fb try to explicitly name the package.
this still did not work.
2022-07-22 20:11:57 +08:00
bunnie
11402ec5e6 reorg again 2022-07-22 19:54:06 +08:00
bunnie
80a8bba268 try to re-org again to get this to run as a script 2022-07-22 19:53:46 +08:00
bunnie
237ed14d28 finalize renaming so we don't have to deal with _ vs - ambiguities 2022-07-22 19:06:13 +08:00
bunnie
ee9f815fd6 restructure project 2022-07-22 19:05:26 +08:00
bunnie
4fa1236ce6 remove the _. i don't know the rules for how this transforms to - and when. 2022-07-22 18:54:56 +08:00
bunnie
aed8c89373 more restructer attemptings 2022-07-22 18:54:40 +08:00
bunnie
4e1a3beb3c try to restructure repo to work with...idk why i am even trying. 2022-07-22 18:54:21 +08:00
bunnie
ee4e2e5d65 fix metadata on packaging for precursor_updater
still not sure how to make this actually work as i want it to,
but at least there's a thing you can run to like...get dependencies,
I guess.

lame.
2022-07-22 18:10:32 +08:00
bunnie
8f6fa5f53d add a first draft of precursor_updater.py
this should be an "all in one" updater.
2022-07-22 03:46:31 +08:00
bunnie
bad4865ea3 shift restore.py to look at the tagged releases for artifacts 2022-07-21 01:10:52 +08:00
bunnie
8dc9dddfdd modify pdddbg.py to handle swapped up DNA for verifying rekey ops 2022-07-19 03:17:32 +08:00
bunnie
8f439f8d61 add the beginning of a CI/analysis tool for backups
for now all the tool can do is just make sure that the
header is valid, but it can't decrypt or operate on
the backup itself.
2022-07-17 22:49:03 +08:00
bunnie
8e6728d743 improve error handling in restore script 2022-07-17 22:48:03 +08:00
bunnie
13e13fdfd6 add some explanation in the restore process 2022-07-17 18:50:28 +08:00
bunnie
802decb55a initial drafts at the backup and restore helper scripts
very, very rough but i was able to run through an entire
cycle exactly once successfully.

much more testing needed.
2022-07-17 03:13:42 +08:00
bunnie
9c7b1e3228 update update script verbiage to reflect the latest flow 2022-07-17 03:13:13 +08:00