Skip to content

Added version request parameter#32

Open
c0d3d wants to merge 1 commit into
Xilinx:masterfrom
c0d3d:add-version-arg
Open

Added version request parameter#32
c0d3d wants to merge 1 commit into
Xilinx:masterfrom
c0d3d:add-version-arg

Conversation

@c0d3d
Copy link
Copy Markdown

@c0d3d c0d3d commented Mar 21, 2024

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 --version flag to just dump the banner and exit with status code 0.

@c0d3d
Copy link
Copy Markdown
Author

c0d3d commented Apr 23, 2024

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants