Open PSLLSP opened 7 months ago
I will need to extract them from the platformio logs, but have not time for that in short period, any help or PR will be appreciated
Было бы неплохо в имени файла прошивки указать адрес FLASH-памяти. Это помогает новичкам, это функция самодокументирования.
ПРИМЕР.
Текущие имена файлов прошивки LeafMiner 0.0.13 для ESP32:
bootloader_esp32.bin partitions_esp32.bin firmware_esp32.bin
Лучшие имена файлов:
0x1000_bootloader_esp32.bin 0x8000_partitions_esp32.bin 0x10000_firmware_esp32.bin
Другой момент заключается в том, что прошивку прошивки можно выполнить по сценарию, и когда адрес смещения хранится в имени файла, создать сценарий проще...
Кстати, я только что угадал адреса в своем примере, возможно, я использовал адреса неправильные...
Это список предлагаемых имен файлов, работа в процессе. ESP32 и ESP8266 были проверены на корректность. У меня нет устройства ESP-S2 и GeekMagic-smallTV (я предполагаю, что оно основано на ESP8266).
0x0000_firmware_esp8266.bin 0x0000_firmware_geekmagic-smalltv.bin 0x1000_bootloader_esp32.bin 0x8000_partitions_esp32.bin 0x10000_firmware_esp32.bin 0x0000_bootloader_esp32-s2.bin 0x8000_partitions_esp32-s2.bin 0x10000_firmware_esp32-s2.bin 0x0000_bootloader_esp32-s3.bin 0x8000_partitions_esp32-s3.bin 0x10000_firmware_esp32-s3.bin 0x0000_bootloader_lilygo-t-display-s3.bin 0x8000_partitions_lilygo-t-display-s3.bin 0x10000_firmware_lilygo-t-display-s3.bin
Было бы неплохо в имени файла прошивки указать адрес FLASH-памяти. Это помогает новичкам, это функция самодокументирования.
ПРИМЕР.
Текущие имена файлов прошивки LeafMiner 0.0.13 для ESP32:
bootloader_esp32.bin partitions_esp32.bin firmware_esp32.bin
Лучшие имена файлов:
0x1000_bootloader_esp32.bin 0x8000_partitions_esp32.bin 0x10000_firmware_esp32.bin
Другой момент заключается в том, что прошивку прошивки можно настроить по сценарию, и когда адрес смещения сохраняется в имени файла, создать скрипт проще...
Кстати, я только что угадал адрес в своем почтовом ящике, возможно, я использовал неправильные адреса...
Это список предлагаемых названий файлов, работа в процессе. ESP32 и ESP8266 были проверены на корректность. У меня нет устройства ESP-S2 и GeekMagic-smallTV (я предполагаю, что оно основано на ESP8266).
0x0000_firmware_esp8266.bin 0x0000_firmware_geekmagic-smalltv.bin 0x1000_bootloader_esp32.bin 0x8000_partitions_esp32.bin 0x10000_firmware_esp32.bin 0x0000_bootloader_esp32-s2.bin 0x8000_partitions_esp32-s2.bin 0x10000_firmware_esp32-s2.bin 0x0000_bootloader_esp32-s3.bin 0x8000_partitions_esp32-s3.bin 0x10000_firmware_esp32-s3.bin 0x0000_bootloader_lilygo-t-display-s3.bin 0x8000_partitions_lilygo-t-display-s3.bin 0x10000_firmware_lilygo-t-display-s3.bin
Good afternoon, I need your help, I have several esp8266(esp12e) devices and I would really like to put them into mining. please explain how to do this by programming devices through an online program, for the esp32 series there are bootloader files and others on the site, and for the esp8266 there is only a firmware version. how to flash correctly at addresses 0x0000, 0x8000, 0x10000, I really ask for help, because programming only the firmware program esp12e goes into error after a while, judging by the UART port. And there is another question for the developer, I can't find how to contact him, as far as possible to make sure that there is one esp01 device, for example, and processors such as stm32f103 are connected to it (this is an example) how is it possible to create a kind of hash board with a lot of stm? in order not to overload the Internet router too much, is the idea itself possible? I'm a ge programmer to be able to redo the code for me, it's still difficult, thanks for the answer in advance. The STM32 is cheaper than the ESP series.
Where can I get the esp8266 programming files at addresses 0x0000, 0x8000, they are not in the repository, and what to register at address 0xE000.
@tiger0007t for esp8266 you don't need them
Autoupdate of v0.0.13 to 0.0.14 failed. I assume it is related to change of filename format...
This is ESP8266, v0.0.13:
...
[D] AutoUpdate: Remote Version: 0.0.14
[D] AutoUpdate: New Version: 0.0.14
[D] AutoUpdate: Device supported: esp8266
[D] AutoUpdate: Downloading: https://github.com/matteocrippa/leafminer/releases/download/v0.0.14/firmware_esp8266.bin
[E] AutoUpdate: httpCode: 404
I tried to flash firmware 0.0.14 directly but it doesn't work, I see exception:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 3424, room 16
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8
tail 0
chksum 0x2b
csum 0x2b
v0009f5b0
~ld
���␀�8␂�n��>␒r���n�b␌␘�␌␜�␌␜r␘␂␜b�␛␒�␀␌��␒�␇��␀l�<␒�␄�n�␃��l`␛�>␜r�8␛��l␒ #␌␘�␌�[I] Main: LeafMiner - v.0.0.14 - (C: 1)
[I] Main: Compiled: Apr 20 2024 15:11:44
[I] Main: Free memory: 39640
[I] Main:
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (28):
epc1=0x40237901 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00777220 depc=0x00000000
>>>stack>>>
ctx: cont
sp: 3ffffc40 end: 3fffffc0 offset: 0150
3ffffd90: 00777221 3ffe8368 3ffffdf0 402358fd
3ffffda0: 00000005 feefeffe feefeffe 3ffe8368
3ffffdb0: 00000009 3ffe8368 4023a280 4023a344
3ffffdc0: 00000000 3ffe8a8c 00000000 00000000
3ffffdd0: feefeffe feefeffe feefeffe 3ffe8a96
3ffffde0: 3ffe8a97 3ffe8368 3ffffea0 4023a794
3ffffdf0: 00000000 ffffffff 00000000 00000000
3ffffe00: 00000005 00000009 fe302073 feefeffe
3ffffe10: feefeffe feefeffe feefeffe feefeffe
3ffffe20: feefeffe feefeffe feefeffe 3933effe
3ffffe30: 00303436 feefeffe feefeffe feefeffe
3ffffe40: feefeffe feefeffe 00000000 feefeffe
3ffffe50: 3fffff80 3fffff60 0000000c feefeffe
3ffffe60: 3fffff80 3fffff60 00000008 00000005
3ffffe70: 00000000 feefeffe feefeffe feefeffe
3ffffe80: feefeffe feefeffe feefeffe 3ffe8a8c
3ffffe90: 3fffdad0 3ffe8368 00000000 402378b9
3ffffea0: 00000000 feefeffe 00000000 ffff0208
3ffffeb0: 00000000 00000000 feefeffe feefeffe
3ffffec0: feefeffe feefeffe feefeffe feefeffe
3ffffed0: feefeffe feefeffe feefeffe 4022b521
3ffffee0: 00000002 eb926f86 feefef00 4022b521
3ffffef0: 00000012 feefeffe feefeffe 4022b521
3fffff00: 00000002 3fff1210 3ffeac3c 402253dc
3fffff10: 0000012d 3ffe85d8 3fff1210 402378f5
3fffff20: 3fffff80 3fffff60 00000008 402253dc
3fffff30: 402253d0 3fff1210 3ffea568 402265ed
3fffff40: 3fffdad0 3ffe85d8 3fff1210 402160a4
3fffff50: 3fffff80 3fffff60 00000008 402254d9
3fffff60: 000005dc feefeffe 00777221 00000021
3fffff70: 00000000 00000000 0000004e 3fff13f4
3fffff80: 3fffdad0 0000004e 000005dc 3fff13f4
3fffff90: 3fffdad0 00000000 3ffe85d8 40207705
3fffffa0: feefeffe feefeffe 3fffdab0 40229c27
3fffffb0: feefeffe feefeffe feefeffe 4010129d
<<<stack<<<
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
$ esptool.py flash_id
esptool.py v4.6.2
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 48:3f:da:77:77:77
Uploading stub...
Running stub...
Stub running...
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
Autoupdate should be fixed now, and the crash seems related to the chipID, but I have no esp8266 board next to me to test it, let me just comment it out and force building again 0.0.14
I checked the device and it was already updated to 0.0.14 and mining. I confirm that autoupdate issue was fixed and the exception was fixed too.
Я проверил устройство и оно уже обновилось до 0.0.14 и майнинг. Я подтверждаю, что проблема с автообновлением устранена, а также исправлено исключение.
tell me, does it work stably for you? it runs for 8-10 minutes and stops completely.
I was testing both 0.0.14 and 0.0.15 with Weimos D1 right now and it worked fine, I was still with serial console open
0.0.15 is really something new, it was even going differently and displays information in uart in a completely different way, I will test it while everything is going on stably. Another moment when I could not, as I wrote earlier, download libraries on esp32-s3 (when compiled), the download bar hung on:
esp8266 SUCCESS 00:00:01.479 geekmagic-smalltv SUCCESS 00:00:01.660 esp32 SUCCESS 00:00:05.909 esp32-s2 SUCCESS 00:00:06.286 esp32-s3 SUCCESS 00:00:04.827 lilygo-t-display-s3 SUCCESS 00:00:05.347 ------------------- -------- ------------6 succeeded in 00:00:25.508------------------- -------- ------------ Now I would understand how to connect a ST7789 display there to which connectors and make the LED blink.
then tries to reconnect and find the job
ESP8266 with firmware 0.0.13 fails to autoupdate to v0.0.15:
[D] AutoUpdate: Remote Version: 0.0.15
[D] AutoUpdate: New Version: 0.0.15
[D] AutoUpdate: Device supported: esp8266
[D] AutoUpdate: Downloading: https://github.com/matteocrippa/leafminer/releases/download/v0.0.15/firmware_esp8266.bin
[E] AutoUpdate: httpCode: 404
[I] Network: Connecting to LuckyAP...
[D] Network: Connecting to host pool.vkbit.com...
[I] Network: >>> {"id":1,"method":"mining.subscribe","params":["LeafMiner/0.0.13", null]}
@PSLLSP I think now it should be fine, both for naming and auto updating, isn't it? If so can we close this?
It is not OK...
ESP8266 with 0.0.13 cannot be autoupdated to 0.0.16:
[I] Main: ESP8266 - Disable WDT
[I] Storage: Setup: OK
[I] Blink: Setup
[I] Blink: Blinking 5 times
[I] AutoUpdate: Connecting to LuckyAP...
[D] AutoUpdate: payload: {
"current": "0.0.16",
"link": "https://github.com/matteocrippa/leafminer/releases/download/v{{version}}/firmware_{{device}}.bin",
"devices": [
"esp8266",
"esp32",
"esp32-s2",
"esp32-s3",
"geekmagic-smalltv",
"lilygo-t-display-s3"
]
}
[D] AutoUpdate: Remote Version: 0.0.16
[D] AutoUpdate: New Version: 0.0.16
[D] AutoUpdate: Device supported: esp8266
[D] AutoUpdate: Downloading: https://github.com/matteocrippa/leafminer/releases/download/v0.0.16/firmware_esp8266.bin
[D] AutoUpdate: Downloaded: 653232
[D] AutoUpdate: Begin Update
[E] AutoUpdate: Written: 0
[I] Network: Connecting to LuckyAP...
[D] Network: Connecting to host pool.vkbit.com...
[I] Network: >>> {"id":1,"method":"mining.subscribe","params":["LeafMiner/0.0.13", null]}
It would be nice to have address of FLASH memory in the the firmware filename. It helps beginners, it is self documenting feature.
EXAMPLE.
Current filenames of firmware for LeafMiner 0.0.13 for ESP32:
Better filenames:
Other point is that flashing of firmware could be scripted and when offset address is stored in filename, it is easier to design script...
BTW, I just guessed addresses in my example, it is possible that addresses I used are not correct...
This is list of suggested filenames, work in progress. ESP32 and ESP8266 were verified to be correct. I do not have ESP-S2 device and GeekMagic-smallTV (I assume it is based on ESP8266).