Skip to content

Instantly share code, notes, and snippets.

@D3vl0per
Last active January 3, 2025 00:29
Show Gist options
  • Select an option

  • Save D3vl0per/90822522f2d7a9a44d3b28231968816f to your computer and use it in GitHub Desktop.

Select an option

Save D3vl0per/90822522f2d7a9a44d3b28231968816f to your computer and use it in GitHub Desktop.
LILYGO T-Deck / T-Deck Plus New Meshtastic UI
--- lib/device-ui/source/ViewController.cpp 2025-01-03 00:59:58
+++ lib/device-ui/source/ViewController.cpp 2025-01-03 01:00:17
@@ -490,7 +490,7 @@
bytes[208], bytes[209], bytes[210], bytes[211], bytes[212], bytes[213], bytes[214], bytes[215],
bytes[216], bytes[217], bytes[218], bytes[219], bytes[220], bytes[221], bytes[222], bytes[223],
bytes[224], bytes[225], bytes[226], bytes[227], bytes[228], bytes[229], bytes[230], bytes[231],
- bytes[232], bytes[233], bytes[234], bytes[235], bytes[236]}},
+ bytes[232]}},
.want_response = wantRsp}, // FIXME: traceRoute, requestPosition, remote config: true
.id = requestId,
.hop_limit = hopLimit,

General setup

  1. git clone https://github.com/meshtastic/firmware.git
  2. cd firmware
  3. git submodule update --init
  4. Download the fix.patch in the firmware folder
  5. patch < fix.patch
  6. pio run -e t-deck-tft
  7. pio run -e t-deck-tft -t buildfs
  8. wget https://github.com/meshtastic/firmware-ota/releases/download/latest/firmware-s3.bin

ESPtool flashing (A)

  1. Enable Download Mode
  2. esptool.py --port /dev/<serial-port> chip_id
  3. This will erase all settings and key on the device:
   esptool.py --port /dev/<serial-port> erase_flash
  1. esptool.py --port /dev/<serial-port> write_flash 0x00 .pio/build/t-deck-tft/firmware.factory.bin
  2. esptool.py --port /dev/<serial-port> write_flash 0x260000 firmware-s3.bin
  3. esptool.py --port /dev/<serial-port> write_flash 0x300000 .pio/build/t-deck-tft/littlefs.bin
  4. esptool.py --port /dev/<serial-port> --baud 115200 write_flash 0x10000 .pio/build/t-deck-tft/firmware.bin

Browser-based ESP flashing (B)

  1. Enable Download Mode
  2. Visit https://esp.huhn.me/
  3. Press the Connect button
  4. This will erase all settings and key on the device: Press the Erase button
  5. Setup and "upload" the files accordingly:
0x field Firmware file
0x00 .pio/build/t-deck-tft/firmware.factory.bin
0x260000 firmware-s3.bin
0x300000 .pio/build/t-deck-tft/littlefs.bin
0x10000 .pio/build/t-deck-tft/firmware.bin
  1. Press the Program button

Download mode (From https://meshtastic.org)

  1. Ensure the device's power switch is toggled OFF.
  2. Press and hold the TRACKBALL.
  3. Toggle device's power switch ON.
  4. After 2-3 seconds, release the TRACKBALL button.
  5. If the device screen is black and the backlight is off, the device is in the Firmware Download mode. If the backlight is on, repeat these steps.

FAQ

  1. command not found: pio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment