-
Notifications
You must be signed in to change notification settings - Fork 112
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 all metadata blocks to info #173
Conversation
Are these "metadata blocks" equivalent to the "blocks" from the "block loop" described in section 5.1.5 of the RP2350 datasheet? I wonder if it'd also be useful to print the item_type of each block? |
Yes, that’s what these blocks are - the item_type is per item in the block (eg vector_table_item, image_def_item), but I can add a print for the block type (image_def, partition_table or ignored) |
So from what little I understand of section 5.9 of the RP2350 datasheet, I think this means "copy 0x4e2c bytes from 0x10000000 to 0x20070000", but I guess a naive interpretation might think that the
to indicate that a range of bytes (which I assume is Flash) is being copied to some other range of bytes (which I assume is SRAM) ? Similarly, perhaps
would be less ambiguous if written as
? 🤷♂️ EDIT: Ah, I've just noticed that you're already using |
Right, I guess I meant "block type" rather than "item type" 🙂 |
I've improved the load_map printouts to be |
Just for reference, could you update the examples in the first post please? 🙂 |
This is all very nice, but I think:
load map/vector table should be guarded by |
I think I agree with Graham - probably makes sense to show the load map stuff when doing |
It will only display that line if it's present, and then say verified or incorrect depending on whether the verification succeeded. I can add verbose printout of the raw signature/hash bytes and public key when using |
I think I've made all those changes - I've updated the description to the current state |
Looks good! 🙌 |
For bootloaders with embedded partition tables, now prints bootloader details before the partitions
Use start->end instead of start+size
…or -a) Also add full hash and sig bytes printouts when verbose
cam you update the comment with |
Added to the description - |
Only a small nitpick, but I wonder if it might make sense to reorder these rows slightly:
so that you get the "verified" after the values?
🤷 |
I actually prefer it this way round - so you can see the important bit first (that the sig/hash is verified), and then the extra info comes after |
i agree with above; one last nit though can we put the -m info after everything else; the info is kind of in the order of what user cares about most |
Done - I've moved it to just before device info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
This adds the
-m, --metadata
option topicotool info
to print out details of all the metadata blocks in a binary.Also standardise the indent for the whole
picotool info
command, so you don't get different sections with different indents.For example, with the encrypted bootloader example it prints out:
whereas the basic info only contains the metadata of the "best" block (the chosen block when performing an Arm boot)
All info contains the metadata info, plus all the usual info