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

Ultra does not start hashing #511

Closed
STSMiner1 opened this issue Nov 23, 2024 · 12 comments
Closed

Ultra does not start hashing #511

STSMiner1 opened this issue Nov 23, 2024 · 12 comments

Comments

@STSMiner1
Copy link

STSMiner1 commented Nov 23, 2024

Release firmware v2.4.0 - 205 works fine.

Firmware built 11/21/24 (locally) onwards with recent updates / PR's that have been merged to the master branch are causing issues with the Ultra 205, issues are not seen on Supra (401) or Gamma (601).

1/ Visual issue with Dashboard
2/ Low hash rate (hash rate not seen poolside either from what I could see).
3/ Power readings all are wrong (Power & Input Voltage).
4/ ASIC Temp low, like it's not hashing.

Logs enclosed (startup) for both firmware builds from the 205 board show no issues that I can see.

Releasefirmware-v2.4.0.txt - (Works fine)

Firmware built 11/21/24 with latest updates that day. ("esp-miner.bin" & "www.bin")
PreRelease-11.21.2022.txt (v2.4.0-7-g4100402-dirty) (typo in the filename)

Screenshot of visual issues (and more) of the Dashboard from the Ultra 205 enclosed.

Releasefirmware-v2.4.0.txt

PreRelease-11.21.2022.txt

205-masterbranch-11-21-2022-2

I only noticed this today after building the firmware ("esp-miner.bin" & "www.bin") today with the latest additions and flashed the files to all the devices I have here to test.

Reverted back to the release build on the Ultra 205.

image

@STSMiner1 STSMiner1 changed the title Master Branch - PR's / Updates that have been pushed / merged around 11/21/2022 to the Master branch are causing an issue with 205 board. Master Branch - PR's / Updates that have been pushed / merged around 11/21/2022 to the Master branch are causing issues with 205 board. Nov 23, 2024
@STSMiner1 STSMiner1 changed the title Master Branch - PR's / Updates that have been pushed / merged around 11/21/2022 to the Master branch are causing issues with 205 board. Master Branch - PR's / Updates that have been pushed / merged around 11/21/2024 to the Master branch are causing issues with 205 board. Nov 23, 2024
@STSMiner1
Copy link
Author

Typo's in report (year), sorry about that.

@STSMiner1
Copy link
Author

Pulled the repo down fresh and re-built the firmware to rule that out, flashed both files to the Ultra 205, no change.

205 v2 4 0-12-g29a543d-dirty

@eandersson
Copy link
Collaborator

What happens if you change the frequency?

@STSMiner1
Copy link
Author

STSMiner1 commented Nov 23, 2024

Nothing changes with how it performs, voltage readings and temps show wrong along with hash rate.

ASIC Frequency updates on the Dashboard as does the Measured ASIC Voltage when changed in the Settings page.

Something that's been merged to the master branch after v2.4.0 was released is causing an issue with the 205 I have here.

@eandersson
Copy link
Collaborator

Can you try to comment out this line to see if it makes a difference? might be some weird race condition
https://github.com/skot/ESP-Miner/blob/master/components/asic/serial.c#L51

@mutatrum
Copy link
Contributor

Can you zoom in on the actual commit by doing a git bisect?

@skot
Copy link
Owner

skot commented Nov 27, 2024

this happens on my 204

@skot skot changed the title Master Branch - PR's / Updates that have been pushed / merged around 11/21/2024 to the Master branch are causing issues with 205 board. Ultra does not start hashing Nov 27, 2024
@skot
Copy link
Owner

skot commented Nov 27, 2024

Narrowing it down: problem does not happen in 1787306 and happens in 4100402

@skot
Copy link
Owner

skot commented Nov 27, 2024

Well that is surprising; it's caused by the uart_wait_tx_done() on this line...

uart_wait_tx_done(UART_NUM_1, 1000 / portTICK_PERIOD_MS);

from PR #503

this smells like a sneaky timing problem.

@eandersson
Copy link
Collaborator

Well that is surprising; it's caused by the uart_wait_tx_done() on this line...

uart_wait_tx_done(UART_NUM_1, 1000 / portTICK_PERIOD_MS);

from PR #503

this smells like a sneaky timing problem.

Yep - this is what I was asking about in the firmware testing channel. It's a really sneaky problem, but has been difficult for me to troubleshoot as I unfortunately don't have any of the older devices.

@eandersson
Copy link
Collaborator

eandersson commented Nov 27, 2024

btw during my testing I found that after changing the baud it left the device unable to communicate with the ASIC due to some sort of race condition on the Supra. This feels like the same issue, but different timing issue.

The original issue I was solving was basically if we were a few CPU cycle faster (e.g. removing a single log line before BAUD is setup) it would break the ASIC startup.

I wish we had some sort of sanity check after all setup is done, for my testing I just used the ASIC count check to verify that we could still communicated.

11/23/2024 07:25:11 PM E (26772) MAIN: BAUD RATE set to 115201
11/23/2024 07:25:16 PM E (26772) MAIN: Number of ASIC: 1 (Setup successful)

@WantClue
Copy link
Collaborator

WantClue commented Dec 1, 2024

fixed in #532

@WantClue WantClue closed this as completed Dec 1, 2024
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

No branches or pull requests

5 participants