skot / ESP-Miner

A bitcoin ASIC miner for the ESP32
GNU General Public License v3.0
317 stars 114 forks source link

2.1.7 not working on BM1397. How to revert to old firmware? #201

Closed f1uxx1337 closed 1 month ago

f1uxx1337 commented 3 months ago

Is there a way to revert back to old firmware? BM1397 working with the 2.1.7 update.

Zero hashrate and no shares accepted or rejected. Miner has been working for months up until this version.

Thanks

CoanLuciano commented 3 months ago

Just download esp-miner.bin from 2.1.6 release and update using settings page. I presume that you have access to your AxeOs. I did it like this and it worked for me.

pixeldoc2000 commented 3 months ago

Please post any Errors from your Logs before reverting to an older Firmware Version, otherwise there is no way to fix potential issues.

Open Webinterface (AxeOS) with your Browser -> Logs -> Show Logs

Maybe there are some Error Messages about DNS Resolution in the Logs?

₿ (18824034) stratum_task: Socket unable to connect to pool.example.org:3333 (errno 113)
₿ (18829034) stratum_task: Socket created, connecting to 0.0.0.0:3333
pixeldoc2000 commented 3 months ago

Just download esp-miner.bin from 2.1.6 release and update using settings page. I presume that you have access to your AxeOs. I did it like this and it worked for me.

To be on the safe side, always update / downgrade the corresponding www.bin file for the release, too!

paulscode commented 3 months ago

I saw the same on both versions 2.1.7 and 2.1.8. The hash rate remained at 0, and in the log message "bm1397Module: return null" appeared. Downgrading to 2.1.6 (with www.bin from 2.1.5 since there isn't one on 2.1.6 release page) fixed the issue. For reference, the log message appears to be from here: https://github.com/skot/ESP-Miner/blob/92924f72c6f4e28276fcf902429658c575ac2819/components/bm1397/bm1397.c#L413

Looks like there are three conditions where the BM1397_receive_work() function can return null. Since there was none of the other messages proceeding the "bm1397Module: return null" message, the condition being matched in this case appears to be the second one (where received == 0): https://github.com/skot/ESP-Miner/blob/92924f72c6f4e28276fcf902429658c575ac2819/components/bm1397/bm1397.c#L390

Screenshot of the log message attached. bitaxe_logs

yanir99 commented 3 months ago

I've also tried 2.1.7 and 2.1.8 on my BM1397 Bitaxe but they are not working :/ Last version working is 2.1.6. @skot I'm not sure which changes were made that could have cause this, but I suggest that until solved perhaps add a message in the release notes for 2.1.8 also that it doesn't work with BM1397 🤷

chenyang2151 commented 3 months ago

rollback to 2.1.3 or before version ?hi,skot!

mimi59 commented 2 months ago

Last operational release for me is 2.1.6. Both 2.1.7 and 8 did not produce any shares.

skot commented 2 months ago

I broke it in 2.1.8 😬 Fix is coming in 2.1.9

CoanLuciano commented 1 month ago

I did the update to 2.1.9 and it's working with public pool.