Skip to content

wolfboot with wolfHSM - NVM tool #565

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

Closed
Jpgig opened this issue Apr 17, 2025 · 2 comments
Closed

wolfboot with wolfHSM - NVM tool #565

Jpgig opened this issue Apr 17, 2025 · 2 comments
Assignees

Comments

@Jpgig
Copy link

Jpgig commented Apr 17, 2025

wbaurixtool.sh script at line no. 331 is using nvmtool to generate the NVM image.
It fails to execute with below error.

Image

Seems whnvmtool bin is not present. I also searched for instructions to build i but no instructions are available. ANy help to resolve this issue?

@Jpgig
Copy link
Author

Jpgig commented Apr 21, 2025

I built whnvmtool tool as below:

  1. go the folder where whnvmtool is located.
    path : \wolfBoot\IDE\AURIX\wolfHSM-infineon-tc3xx\wolfHSM\tools\whnvmtool
    execute make command and this will build whnvmtool elf.
  2. Give the path of whnvmtool tool in wbaurixtool.sh file
    NVMTOOL_DIR="$WOLFBOOT_DIR/IDE/AURIX/wolfHSM-infineon-tc3xx/wolfHSM/tools/whnvmtool"
    WHNVMTOOL="$NVMTOOL_DIR/whnvmtool"

then change belwo line
whnvmtool --image="$NVM_BIN" --size=0x10000 --invert-erased-byte "$NVM_CONFIG"
to "$WHNVMTOOL" --image="$NVM_BIN" --size=0x10000 --invert-erased-byte "$NVM_CONFIG".

This resolved the issue.

@bigbrett
Copy link
Contributor

fixed in #569

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

No branches or pull requests

3 participants