USB and command line¶
On this page: the other ways to put firmware on a box. For most partners the web flasher is the right tool; this page covers updating through the setup page, the USB update tool, and full flashing with esptool for development boards.
Always a signed image¶
A box only accepts firmware signed by Lutra, of the same board and build, with a newer version than the one running. This holds for every route below. A full flash with esptool bypasses the running firmware, but the signed image matters there too: the firmware expects its own signature block at start-up, and an unsigned application ends up in a start-up loop. (It can start by accident when an old signature block of an image of exactly the same size is still in the flash; never rely on that.) Never flash an unsigned application.
Update through the setup page (no computer needed)¶
For a site without internet, with a phone or laptop:
- Open the setup page (see Setup page).
- In Update firmware, choose the update file (
.bin) from Lutra. - The box checks the file (signature, version, board and build) and restarts. After the restart it runs its self-test and returns to the previous version if that fails.
To be confirmed
Where partners download signed update files for offline use is not published yet. Until it is, use the web flasher, which fetches the files itself.
USB update tool (running firmware)¶
The USB update tool lutra_usb_update.py talks to the running firmware over the USB console, with the same
protocol as the web flasher:
The tool sends the image in chunks; the box confirms progress, checks version and signature at the end and restarts. Opening the USB port restarts the box, so the tool waits until the box has been up for a while.
To be confirmed
How partners obtain the USB update tool and signed images for it. Until that is published, use the web flasher.
Full flash with esptool (development)¶
Only for development boards. Partners use mode b of the web flasher instead, which does the same with the files of the right build. A full flash erases the box's identity. With esptool, write the four files of one build to these offsets:
| File | Offset |
|---|---|
| Bootloader | 0x0 |
| Partition table | 0x8000 |
| OTA data (initial) | 0xf000 |
| Signed application | 0x20000 |
esptool.py --chip esp32s3 -p <port> write_flash --flash_mode dio --flash_freq 80m --flash_size keep \
0x0 bootloader.bin 0x8000 partition-table.bin 0xf000 ota_data_initial.bin 0x20000 lutra_lite.signed.bin
Use any serial monitor to watch the log. Never write an unsigned application.
To put the chip in download mode manually: hold BOOT while plugging in the USB cable (or while resetting).
How the firmware is made available¶
Lutra Lite firmware is closed source and free to use with Lutra. Lutra builds, tests and signs every image; partners do not build firmware themselves. What a partner needs:
- a supported board;
- a USB-C data cable and a browser with Web Serial, for the web flasher;
- a Lutra Insight account; the web flasher fetches the signed image for the board and build.
Updates after that arrive remotely through the update channels. See Updates and channels.
Related pages¶
Last reviewed: 2026-11-24. Applies to Lutra Lite 0.4.1.