Author

Topic: Lucky Miner LV07 - Firmware wanted (Read 219 times)

?
Activity: -
Merit: -
January 01, 2025, 08:19:50 AM
#13
Great work, unpainted, much appreciated.

Are you planning to synchronize your codebase with skot/ESP-Miner:master?

Thank you for your compliments. Of course I'm happy if someone can benefit from my firmware customization!

At the moment I am only planning to adapt the TinyChipHub version of ESP-Miner to the LV07. Everything else is too time-consuming for me. Apart from that, I want to provide a reliable and stable firmware. I don't have the time or inclination for regular testing and releases.
newbie
Activity: 32
Merit: 0
January 01, 2025, 02:08:28 AM
#12
Great work, unpainted, much appreciated.

Are you planning to synchronize your codebase with skot/ESP-Miner:master?
newbie
Activity: 1
Merit: 0
December 14, 2024, 06:46:54 PM
#11
Hey, I'll try anything as long as I know I have a backup that works!  Grin

Plus there's really no way to brick the device if you have a jTAG on hand and know how to use!  Grin Grin

Yes I am aware that the factory file bin contains everything including the NVS data that is read from during boot up. I was wondering how the setup information is installed in the unit. Now I know how to do it thanks to you! Incidentally, this is where the All Time Best Difficulty is stored. So when you install the factory bin file, you erase your highest difficulty found to date. So you have to start from scratch...

My first 2 LV07s both had firmware 1.0.0. My third and last LV07 had 1.1.0. I don't know if there are any hardware changes between the two firmwares. As far as I can tell nothing appears to have changed. All boards have the same manufacture date. I have noticed only one difference. When all three LV07s are running on the same settings (1.25v @550MHz), the last one I bought is showing 4 to 5 more watts of power usage at 3c to 4c cooler temperature. Go figure that one out!   Huh

I have all 3 LV07s connected to a 200 watt Mean Well PSU as well as 8 large PC fans and 6 individual fan controllers (it's summertime now here in AUS). The PSU has the same voltage on all 3 terminal pair connections. But I'm getting 3 slightly different voltage readings from the LV07s. That's not a problem unless the voltage drops down closer to 11 volts. There is however a graphical issue on the web interface when the input voltage is at 12v or less the dial is skewed to the left the lower it is. At 12.1v or higher the issue goes away. It's obviously a programming error. I might be able to fix this myself...

https://ibb.co/pPJ4zhq   https://ibb.co/dKtpLWy   https://ibb.co/3f8kSY5
?
Activity: -
Merit: -
December 14, 2024, 04:06:44 PM
#10
I'm glad to hear that! And how is my firmware running on your LV07?

Congratulations: as far as I know, you are the first one who dared to install my firmware!  BTC

I've already thought about all the questions I need to ask you so that we can get to the bottom of the problem! Above all, I was afraid that there might be different hardware versions of LV07.  


I was curious how the data in the CVS-file gets written to the NVS partion. You actually have to merge it with the factory file.

Is this correct?
You seem to know more about flashing an ESP32 than I do. I don't know how you could create a single factory binary that you could then flash with the esptool.

I'm just glad the bitaxetool exists and the forked github repository can build the binaries on its own.  Wink


I also installed the esp-miner.bin and www.bin files but it made no difference.
If you flash the factoy binary (approx. 15MB) and the CVS file with the bitaxetool, then you already have everything you need on the ESP32.
The smaller binaries are only for the over the air update of the firmware and the website.
newbie
Activity: 1
Merit: 0
December 14, 2024, 09:59:40 AM
#9
So I used the bitaxetool (through VS Code) and typed the following:

bitaxetool  -c config-lv07.cvs -f esp-miner-merged.bin

Flashing proceeded as normal and took about 164 seconds.

Then I Plugged the power in and the LV07 booted up fine. Except it's still in low power mode. Requested voltage is 1.2V but actual voltage is 0.04v. And the power reading is 6w only. Also the fan running at full speed is not as fast as it should be. Data is being received every 30 seconds and is being queued. Everything works in the web interface as well.

I also installed the esp-miner.bin and www.bin files but it made no difference.

Oh, I forgot to mention the input voltage is 5.3V, so it appears the TPS546 voltage is not at the right level.

Something is still not right...

EDIT: I found the problem. It turns out I grabbed the wrong PSU for my work bench to do the testing. The 5.3 volts I was getting was correct as I was using the 5 volt PSU from my LV06! Doh!

No wonder the ASICs were not switched on.

Boy, do I feel like a clone right now...
newbie
Activity: 1
Merit: 0
December 14, 2024, 08:50:57 AM
#8
Okay, I think I understand it now.

The BitaxeTool can be used to to overwrite some data in the NVS partition with the CVS-file info. This only gets overwritten when flashing the complete factory bin file. Flashing the esp-miner.bin and www.bin files don't write to the NVS partition which is at 0x9000.

Up until now, I've only been using the esptool to flash the bin files.

I was curious how the data in the CVS-file gets written to the NVS partion. You actually have to merge it with the factory file.

Is this correct?
?
Activity: -
Merit: -
December 14, 2024, 08:34:49 AM
#7
I don‘t know the procedure with direct flashing using the esptool. I use the bitaxetool, as mentioned in https://github.com/un-painted/ESP-Miner-TCH/releases/tag/v2.3.3-TCH-LV07:

Code:
bitaxetool /dev/ttyUSB0 -c config-lv07.cvs -f esp-miner-merged.bin

The correct CVS-file is crucial. Without it, the LV07 does not know who he is and what he should do.
newbie
Activity: 1
Merit: 0
December 14, 2024, 06:52:02 AM
#6
Hello again unpainted.

I tried flashing the binaries, both the esp-miner.bin at 0x10000 and www.bin at 0x410000 with no luck. The LV07 powers up, no screen with fan at full speed. power consumption is only 4 watts. It should be around 25 to 30 watts.

I then flashed the esp-miner-merged.bin with the same result as above. So then I flashed back the backup I made only moments before and the LV07 works fine.

So I fired up VS Code and compiled the source code producing the esp-miner.bin and www.bin in the build directory. This time I only flashed the esp-miner.bin and results are same as above.

Am I missing something here? Should the config-lv07.cvs file be copied to the config.cvs file with the correct parameters for the LV07 in the root directory of the source code during the build?
?
Activity: -
Merit: -
December 13, 2024, 12:45:13 PM
#5

Just one question. Was it any easy fix to turn on the ASICs?


Take a look at the small but important changes:
https://github.com/un-painted/ESP-Miner-TCH/commit/29f843211120ce2f9011f56eafbd612ee4d9bd62 and
https://github.com/un-painted/ESP-Miner-TCH/commit/5b4569361a259e1825060c09ce631f12c4e0329f

I treat the LV07 internally as an Ultra-Hex with only two BM1366s. I only had to bring the supply voltage up to the level of a simple Ultra.
In the code, the Hex voltage is three times higher because the Ultra-Hex addresses three BM1366s in one chain.

newbie
Activity: 1
Merit: 0
December 13, 2024, 12:29:07 PM
#4
Sorry, my bad!

I should have realized you flashed your LV07 as you said you tried different firmwares yourself!

I got my first LV07 about 5 months ago and I've been looking for firmware (or the source code) to update my LV07s for months. I'm glad you were able to modify the TCH source code and get the LV07 to respond. About a month ago, I tried about 15 factory firmware, including some of the TCH files. These were the only two I could get to boot up from:

esp-miner-factory-v2.1.10-TCH-All-in-one.bin - This one was receiving the stratum data on regular intervals but the ASIC chips were not powered up.

esp-miner-factory-v2.3.1-TCH-All-in-one-303.bin - This one was reconnecting to wifi every 5 seconds but the ASICs were also in low power state. I know this is for the HEX.

Just one question. Was it any easy fix to turn on the ASICs?

Finally, thank you very much for getting the alternate firmware to work. I'll definitely use your source code now as I have a few tweaks of my own I can add to my 3 LV07s!

Smiley
?
Activity: -
Merit: -
December 13, 2024, 11:10:23 AM
#3
Hello JohnnyBitGoode

I know the procedure for flashing an ESP32 MCU. This is how I got my firmware onto the LV07 using the bitaxetool.
Yes, exactly: my own firmware! I have explained everything in the German thread.

In a nutshell:
- The LV07 with its 2x BM1366 is practically identical to the Bitaxe Ultra-Hex, only with 2 instead of 6 ASIC chips.
- I adapted the firmware from TinyChipHub and made it work for the LV07. So far my LV07 works perfectly.

You can find my firmware at:
Repository: https://github.com/un-painted/ESP-Miner-TCH/tree/unpainted_2.3.3_lv07
Binaries: https://github.com/un-painted/ESP-Miner-TCH/releases see under “Assets”

Warning: I take no responsibility for my firmware. So far everything works fine. But I am not a hardware specialist. And if you break something when flashing the ESP32, it's not my fault.

Enjoy!

Hello unpainted.

Are you familiar with using a jTAG device with a 6 pin probe attached?
If so, I can send you a copy of my LV07 v1.0.0 backup factory firmware and you can flash your LV07 back to life with the jTAG and probe.

...

Thank you for your offer! Unfortunately, I was unable to restore my backup of the 1.1.0 firmware. And since I only have one LV07, I couldn't make a second dump of the firmware.

But: I no longer need the LuckyMiner firmware as I'm using my own firmware. I leave it to others who want to go back to the LuckyMiner version to contact you.

newbie
Activity: 1
Merit: 0
December 13, 2024, 10:18:02 AM
#2
Hello unpainted.

Are you familiar with using a jTAG device with a 6 pin probe attached?
If so, I can send you a copy of my LV07 v1.0.0 backup factory firmware and you can flash your LV07 back to life with the jTAG and probe.
If you take off one of the metal panels on the LV07, it's the one on the left if you're looking directly at the LCD screen, you'll see the jTAG probe points.
I bought both the jTAG and 6 pin probe from AliExpress.

I did the same thing as you and tested several other firmwares on the LV07. But because I learned how to flash my Bitaxe MAX (which has no USB port) and LV06 using the jTAG, I was able to revive them! Luckily I had 2 other LV07 miners and I saved a copy from one of them and flashed it back to the non working one without any problems. The only mistake I made, was not making a backup of my LV07 first before I flashed it as it was my newest LV07 with the newer 1.1.0 firmware!

Regards johnnyBytes...
?
Activity: -
Merit: -
December 07, 2024, 02:23:42 PM
#1
Hello everyone

The same post in German: https://bitcointalksearch.org/topic/lucky-miner-lv07-firmware-gesucht-5521980

I took the risk and flashed my LV07 with open source firmware from https://github.com/bitaxeorg/esp-miner-multichip and https://github.com/TinyChipHub/ESP-Miner-TCH. Had to make a few adjustments because of 2 instead of 6 chips as with the Ultra-Hex. The LV07 identifies itself as board 302.
This worked with both firmwares and the bitaxetool as far as the LV07 came online and showed a web portal. Unfortunately there must be something wrong with the voltage regulator TPS546, because the ASIC chips do not start and do not mine.

Does anyone know a way back to a working LV07? If necessary with the manufacturer's firmware, which is nowhere to be found?

Thank you
Jump to: