Skip to content

Conversation

@mutatrum
Copy link
Collaborator

@mutatrum mutatrum commented Sep 15, 2025

This is a ad-hoc way of generating a esp-miner.bin file for devices which have Quad PSRAM.

See #826

@github-actions
Copy link

Test Results

20 tests  ±0   20 ✅ ±0   0s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit d0eadc8. ± Comparison against base commit bbddfdc.

@mutatrum mutatrum linked an issue Sep 15, 2025 that may be closed by this pull request
@mutatrum
Copy link
Collaborator Author

mutatrum commented Sep 15, 2025

It works, with plenty of free heap left:

image

@WantClue
Copy link
Collaborator

I think we abandoned other psram variants ...

@mutatrum
Copy link
Collaborator Author

I think we abandoned other psram variants ...

We currently detect if there's no PSRAM on board, so we have minimal support. However, that won't help anymore as it just crashes shortly after as it runs out of memory before it finished booting. A possible low-effort solution is #1239, which disables non-essential things, so at least the firmware boots, but that's fairly tricky as we would always need to test if that's still functional. If it does work, it helps in troubleshooting, as these out of memory crashes are difficult to analyse. It needs either a detailed picture of the ESP to determine the model (which is hard for some users) or capture of boot logs before the crash (even harder). Alternatively, we could stop the boot if no PSRAM is detected and show a proper error message on the display, instead of just crashing into a boot-loop.

In the case someone has a Quad PSRAM (2MB versions), it's still possible to run the full firmware, as we've only just started to use the PSRAM. This PR was (is) a placeholder just for generating those binaries. This helped a few people already, which is a win. Of course there's #826, but that's more involved.

IMO a combination would be nice: proper error message if no PSRAM is there, and a Quad PSRAM support firmware. Or hopefully espressif/esp-idf#13343 gets solved at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make firmware releases for other PSRAM variants

2 participants