Added version request parameter#32
Open
c0d3d wants to merge 1 commit into
Open
Conversation
Author
|
@RamyaDarapuneni Please review. |
msreeram-xilinx
pushed a commit
that referenced
this pull request
May 14, 2026
…ug fixes + CDO extensions (#32) * Versal spk hash genaration fix * memory management improvements and fixes * 2025.2 updates - Changing error logging to warning for incorrect CDO length in SpartanUP and Versal image header parsing - Added warnings for private key management in LMS functions - Added ld_code support for SpartanUP - Fixed ib_offset alignment in slr_boot - In IHT optional data, partition number for partial PDI now starts from 1 instead of 0 - Added bootgen architecture help for Telluride * bif include feature * auth optimization + lasssen hsm + ecdsap521 + corepsm * Unified_main: Add Spartanup/Lassen/Telluride enhancements and CDO command extensions Summary of Changes: ================== 1. CDO Command Extensions (utils/): - Added MARKER_DEVICE, MARKER_ARCHITECTURE, MARKER_PART, MARKER_SLRID, MARKER_DATE defines - Added device list and idcode lookup functions (idcode_from_binary, idcode_from_source) - Enabled auto_align by default in cdo-binary.c 2. Spartanup Authentication Enhancements (spartanup/src/authentication-spartanup.cpp): - Modified CreateCertificate() LMS header logic for Lassen vs DL9/Telluride differentiation - Added 4-parameter GetPresign() overload for variable-length LMS/HSS signatures - Updated SetSPKSignatureFile() to auto-detect LMS signatures by file size - Added DoGenerateHashes() guards around signature creation - Enhanced CreateSPKSignature() for hash generation mode without PSK 3. Spartanup Boot Image (spartanup/src/bootimage-spartanup.cpp): - Added ECDSA, ECDSAp521, LMS_SHA2_256, LMS_SHAKE256 to auth validation - Added custom PUF output filename support via GetPufOutputFileName() 4. Spartanup Read Image (spartanup/src/readimage-spartanup.cpp): - Added non-secure header detection (AUTH_HDR_LASSEN_NONSECURE, AUTH_HDR_TELLURIDE_NONSECURE) - Added auto-detection of DL9 series from boot header content - Fixed DisplayBootHeader() field offset comments 5. Encryption Enhancements: - Added GenerateGreyKey() function to spartanup and versal_2ve_2vm encryption contexts - Conditional compilation with ENABLE_OBFUSCATED_KEY macro 6. Parser/Lexer Updates (parser/cmdoptions.l, parser/cmdoptions.y): - Added _PUF token for PUF output filename option - Regenerated bisonflex files 7. Common Improvements: - Added empty filename check in SetSPKSignatureFile() for versal and versal_2ve_2vm - Added PUF output filename support in options.cpp - Fixed partition build order (checksum computed after all fields set) 8. New Features: - SetAuthOptimization() and IsAuthOptimizationEnabled() for authentication optimization - Custom PUF PDI output path support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As part of our build we want to list the version of bootgen being used, currently this is clunky since it requires us to give a bogus argument to get bootgen to run, and causes it to exit with an error code.
Added
--versionflag to just dump the banner and exit with status code 0.