-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
intel_adsp_cavs15: signing not correct thus download firmware failed #31819
Comments
@lyakh can you check what is going on? |
@nashif Signing using |
@lyakh the root cause is the xman will be wrote in zephyr.ri, as my understanding, we run kernel testing not use SOF's way to load image by kernel DSP driver, so it do not need the xman in zephyr.ri and it cause check the image failed from SOF. I will add a option in sign.py to control if we need xman or not, what do you think of? |
@KangJianX but you did use the "-e" option when you ran |
Yes, use 'west sign' will show a command, it is same with run by manually. The difference is script will has a additional process like this: |
@KangJianX ok, so you want to add a parameter to |
@lyakh Yes, I want add a option to avoid this after signing with rimage. Do you think it is make sense? |
@KangJianX sure, if it fixes your problem and doesn't change the default behaviour I don't see a problem with that. |
Describe the bug
When run testcases we use west script(sign.py) to signing with image (no error and show completed) then invoke download script to load firmware, it has some error log at firmware loaded step. By debug, found signing not correct in fact(even if show completed without error), if we use command to signing by ourselves without west script(sign.py) it will download successful.
To Reproduce
Steps to reproduce the behavior:
west build -b intel_adsp_cavs15 tests/kernel/thread/thread_apis/
west sign -t rimage -p ../modules/audio/sof/zephyr/ext/rimage/build/rimage -D ../modules/audio/sof/zephyr/ext/rimage/config/ -- -k ../modules/audio/sof/keys/otc_private_key.pem
boards/xtensa/intel_adsp_cavs15/tools/fw_loader.py -f /home/ztest/work/zephyrproject/zephyr/build/zephyr/zephyr.ri
See error
west build -b intel_adsp_cavs15 tests/kernel/thread/thread_apis/
../modules/audio/sof/zephyr/ext/rimage/build/rimage -k ../modules/audio/sof/keys/otc_private_key.pem -o /home/ztest/work/zephyrproject/zephyr/build/zephyr/zephyr.ri -c ../modules/audio/sof/zephyr/ext/rimage/config/apl.toml -i 3 -e /home/ztest/work/zephyrproject/zephyr/build/zephyr/bootloader.elf.mod /home/ztest/work/zephyrproject/zephyr/build/zephyr/zephyr.elf.mod
boards/xtensa/intel_adsp_cavs15/tools/fw_loader.py -f /home/ztest/work/zephyrproject/zephyr/build/zephyr/zephyr.ri
load firmware successful
Environment (please complete the following information):
OS: Fedora28
Toolchain: Zephyr-sdk-0.12.1
Commit ID: 3f1d1f5
The text was updated successfully, but these errors were encountered: