espressif / qemu

Fork of QEMU with Espressif patches. See Wiki for details.
https://github.com/espressif/esp-toolchain-docs/blob/main/qemu/README.md
Other
221 stars 55 forks source link

ESP32-S3 documentation (QEMU-201) #98

Open PatrickV82 opened 3 months ago

PatrickV82 commented 3 months ago

I am trying to use the ESP32-S3 implementation that was released with the version 9.0.0

I have the following questions:

  1. Is there a updated documentation for the bootstrapping pins values?
  2. Does the esp32s3 implementation already support the efuses?
  3. Does the esp32s3 implementation support Flash Encryption and SecureBoot ?

When i try to use the efuse in the same manor as the ESP32-C3 i get the following error

qemu-system-xtensa -nographic -machine esp32s3 -global driver=esp32s3.gpio,property=strap_mode,value=0x08 -drive file=build/qemu_efuse.bin,if=none,format=raw,id=efuse -global driver=nvram.esp32s3.efuse,property=drive,value=efuse -serial tcp::5555,server,nowait

QEMU 9.0.0 monitor - type 'help' for more information Not initializing SPI Flash c:\qemu\bin\qemu-system-xtensa: warning: global nvram.esp32s3.efuse.drive has invalid class name

igrr commented 3 months ago

Hi @PatrickV82,

Currently there is a stub of eFuse implementation for ESP32-S3, which is simply a copy of the one from ESP32-C3. I think if you replace driver=nvram.esp32s3.efuse with driver=nvram.esp32c3.efuse then QEMU will run. However, I am not sure yet how different ESP32-C3 and ESP32-S3 eFuse modules are, so this might not actually work with ESP-IDF or esptool.

We'll update this issue once ESP32-S3 eFuse support is done!

To get into the download mode on ESP32-S3, set the strapping value to 0x07.

greenaddress commented 3 months ago

@igrr is there support for openeth driver in qemu for esp32s3? I've tried to build but had some issue around openeth not building for esp32s3 target (but ok for esp32)

igrr commented 3 months ago

@greenaddress It should have been added in https://github.com/espressif/esp-idf/commit/f95caa75. Have you enabled CONFIG_ETH_USE_OPENETH in menuconfig?

greenaddress commented 2 months ago

@igrr We are on 5.2.2 right now, hope 5.2.3 or 5.3.x will have it