meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.54k stars 880 forks source link

Cannot flash under macOS as the shell script use python -m esptool #4648

Closed kwccoin closed 2 months ago

kwccoin commented 2 months ago

Based on https://meshtastic.org/docs/getting-started/flashing-firmware/esp32/cli-script/ and the firmware in https://github.com/meshtastic/firmware (and download from the latest on the left).

There were one minor and one major issue for macOS users.

First minor issue is whether tcxo or not, which I choose to use non-tcxo

%ls firmware-tlora-v2-1-1_6* #btw the site use -1. but actually it is 1_
...
firmware-tlora-v2-1-1_6-2.4.2.5b45303.bin       firmware-tlora-v2-1-1_6-tcxo-2.4.2.5b45303.bin

I suspect my LilyGo 433/470 MHz T3_V1.6.1 20210104 is not the tcxo which I found some other chip info and probably is a totally different chip.

LoRa1280 FCC & CE TCXO LoRa 2.4G RF module Long distance 2.4G lora RF module range measurement SX1280 chip
kwccoin commented 2 months ago

Second major issue is the shell script does not work i.e.

./device-install.sh firmware-tlora-v2-1-1_6-2.4.2.5b45303.bin

would not work as under macOS one has to use esptool.py erase not python -m esptool erase ... etc.

kwccoin commented 2 months ago

I assume based on my reading of the shell script is that for my first 2 device both flora (but I also have T-deck and others), it would be :

  esptool.py erase_flash
  esptool.py write_flash 0x00 firmware-tlora-v2-1-1_6-2.4.2.5b45303.bin

and seems work but reading the shell script I am not sure about and have not executed this:

  esptool.py write_flash 0x300000 littlefs-*.bin # or just littlefs-2.4.2.5b45303.bin

Please confirm as I am not very good in reading shell script logic.

(For future T-deck, would it be:

  esptool.py erase_flash
  esptool.py write_flash 0x00 firmware-t-deck-2.4.2.5b45303.bin

once again I am not sure about these two

  esptool.py write_flash 0x260000 bleota-c3.bin
  esptool.py write_flash 0x300000 littlefs-*.bin # or just littlefs-2.4.2.5b45303.bin

as I only have 1 T-Deck I have not tried until confirmed here I hope what is going on.

)

garthvh commented 2 months ago

sh device-install.sh -f firmware-tlora-v2-1-1_6-2.4.2.5b45303.bin