Skip to content
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

ESP32S3 QEMU: octal SPI is not working for PSRAM (QEMU-227) #109

Open
3 tasks done
albkharisov opened this issue Dec 6, 2024 · 4 comments
Open
3 tasks done

ESP32S3 QEMU: octal SPI is not working for PSRAM (QEMU-227) #109

albkharisov opened this issue Dec 6, 2024 · 4 comments
Assignees
Labels
Resolution: NA Status: Done Issue is done internally

Comments

@albkharisov
Copy link

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 expect PSRAM to be working on ESP32S3 in QEMU when it's configured as Octal SPIRAM.

Actual behavior (suspected bug)

Instead, it doesn't. It works only with Quad SPIRAM.

Error logs or terminal output

E (99) octal_psram: PSRAM ID read error: 0x00000000, PSRAM chip not found or not supported, or wrong PSRAM line mode

Steps to reproduce the behavior

  • git checkout 1311d7b
  • ../configure --target-list=xtensa-softmmu --enable-gcrypt --enable-slirp --disable-user --disable-capstone --disable-vnc --disable-gtk
  • build with ninja/make
  • create project for esp32s3
  • make configuration:
    CONFIG_SPIRAM=y
    CONFIG_SPIRAM_MODE_OCT=y
  • build and run qemu:
    qemu-system-xtensa -nographic -serial mon:stdio -monitor null -machine esp32s3 -drive file=result.bin,if=mtd,format=raw -m 8M
  • see that PSRAM is not recognized

Project release version

v5.3.1

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Linux

Operating system version

Ubuntu 24.04

Shell

ZSH

Additional context

I understand that ESP32S3 doesn't support PSRAM in QEMU in latest release (v9.0.0).
But it's already implemented as described here: Issue 103.
So I got 1311d7b (latest for now on esp-develop), built it and it failed to work with OCTAL PSRAM setup.

In QEMU it works with QUAD mode, but not OCTAL.
And actually, my esp32s3-wroom-1 N8R8 works only for OCTAL, but not QUAD.

I'm asking for adding QEMU-driver property to select manually type of SPIRAM. Best is to make it automated, but I'm not sure it's possible since we have to somehow point QEMU how much lines SPI uses (AFAIU).

@github-actions github-actions bot changed the title ESP32S3 QEMU: octal SPI is not working for PSRAM ESP32S3 QEMU: octal SPI is not working for PSRAM (QEMU-227) Dec 6, 2024
@igrr
Copy link
Member

igrr commented Dec 6, 2024

Hi @albkharisov, so far we haven't implemented octal PSRAM support in QEMU, please switch your project configuration to quad PSRAM when building the project for QEMU. We'll consider adding support for octal Flash/PSRAM in a future release.

@albkharisov
Copy link
Author

Thank you for reply, @igrr
Do you have a date of next release? Approximately.

@igrr
Copy link
Member

igrr commented Dec 6, 2024

We plan to do the next release in the next 2-3 weeks.

However i didn't mean to say that octal PSRAM will be supported in the next release of QEMU, just in a future release :) Sorry that I can't be more specific on when we'll implement up this feature.

@cheungxiongwei
Copy link

3 weeks have passed, is the release going smoothly? @igrr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

5 participants