-
Notifications
You must be signed in to change notification settings - Fork 0
dump subcommand apparently nonfunctional #160
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
Comments
Absolutely. (note: 74e720c lists bug id #138 --or do you mean some other kind of bug id? Like in airtable?) About this specific problem: That's probably because the spi mode in the image is invalid for that processor generation. That was always iffy and is now not allowed anymore. Please keep that image so we can examine it. Could you try editing amd-efs v0.3.0 like so:
and then edit amd-host-image-builder like so
(or with appropriate path to the directory of the edited amd-efs) Then compile and run amd-host-image-builder in dump mode. That should give you the struct and field name that caused the We should add that error reporting to amd-efs permanently once it does work. |
Here are a few images that reproduce this error; the changes in the diffs above don't compile. I'm currently at 9ccc964 with ../amd-efs at d2b1f0567d63b41bd7195a5f509d3550bad2ee2a and the above diff; I get:
milan-ethanol-x.img.gz |
Thanks for the images. I could reproduce the problem locally now. As for the With that and your image milan-ethanol-x.img.gz (and your other images, too), dump says:
I'll think about whether it's possible without too many downsides to still make that dump, but just leave the spi mode off in the resulting file. But with #157 the error message is already a lot better (... for that special case). But changing src/serializers.rs like we do here makes it better for all fields, so what we are doing here would still be very useful. [1] This |
More generally, we probably want to be able to dump even if some fields can't be properly decoded. FWIW, these were generated recently but apparently without the change made in oxidecomputer/helios#74 (which doesn't seem to have been propagated to the examples). I can obviously fix that in the image, but if we want to be able to use the dump feature for its most important use case -- exploring unknown attributes of images from new processor families -- it's probably going to be necessary. |
Sorry. I was looking for the convention I'm used to, the one we use in all the illumos repos, and overlooked the separate line with a link to the issue, which I think I confused with something produced by git. Or something. At some point we should probably adopt the same convention as is used elsewhere, but that's not a reason I couldn't have found the ticket in this instance. |
The
dump
subcommand added by 74e720c without a bug ID is undocumented and doesn't seem to work:Note that there is no reference to the
dump
subcommand. But if one does:it becomes clear that it exists. Unfortunately, it doesn't ever seem to work, always displaying the same error message regardless of what input image it's given, including those that were generated by the tool itself:
As a general rule, the introduction of a feature (in any of our software) should have the following attributes:
This ticket covers filling those gaps in 74e720c.
The text was updated successfully, but these errors were encountered: