Signing zephyr sample application using secure boot v2

rana.roy
Posts: 3
Joined: Thu Feb 15, 2024 11:54 am

Signing zephyr sample application using secure boot v2

Postby rana.roy » Tue Sep 24, 2024 9:04 am

Describe the issue
I have signed the bootloader and flashed it into the ESP32S3_Devkitm. Now I am trying to sign the Zephyr sample application of ADC using secure boot v2. I tried the following commands:
- esptool.py --chip esp32c3 -p /dev/ttyACM0 elf2image --pad-to-size 4KB --secure-pad-v2 ./build/zephyr.elf
- espsecure.py sign_data -v 2 -k ./secure_boot_signing_key.pem -o ./build/signed_zephyr.bin ./build/zephyr.bin
- esptool.py -p /dev/ttyACM0 --no-stub write_flash 0x20000 build/signed_zephyr.bin

The code is getting hanged. The logs are visible in the attached screenshot.
Screenshot from 2024-09-24 14-24-44.png
Screenshot from 2024-09-24 14-24-44.png (147.92 KiB) Viewed 605 times
I do not have much clarity about the pad-to-size argument of the elf2image command. It would be constructive if I could get some insights to frame the commands.

Who is online

Users browsing this forum: aapee-jcv and 386 guests