Skip to content

ESP32 Pre encrypt with secure boot and flash encryption not working (QEMU-290) #151

@dzungpv

Description

@dzungpv

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

I follow this guide https://docs.espressif.com/projects/esp-idf/en/latest/esp32/security/security-features-enablement-workflows.html and using QEMU to test it in ESP IDF 6.0 release, include QEMU fork 9.2.2 version.
I burn the efuse with require keys and tag and dump it pre encrypt binary file and merge it and run with this command:

    qemu-system-xtensa -M esp32 -m 4M
    -drive "file=$FLASH_MERGE,if=mtd,format=raw"
    -drive "file=$EFUSE,if=none,format=raw,id=efuse"
    -global "driver=nvram.esp32.efuse,property=drive,value=efuse"
    -global "driver=timer.esp32.timg,property=wdt_disable,value=true"
    -nic "user,model=open_eth"
    -nographic
    -serial "mon:stdio"
    -d "guest_errors"

Actual behavior (suspected bug)

Adding SPI flash device
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
M25P80: Read id (command 0x90/0xAB) is not supported by device

Error logs or terminal output

Steps to reproduce the behavior

Above

Project release version

9.2.2

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

MacOS

Operating system version

26.4

Shell

ZSH

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions