Load a Thumby with everything that is needed for shipping (MicroPython, games, libs, etc.).
Use picotool (https://github.com/raspberrypi/picotool) to clone a UF2 from the Thumby. I use Linux and this command: sudo ./picotool save -r 0x10000000 0x10200000 ThumbyFirmware.uf2.
This specifies an address range of 2,097,152 bytes / 2048 KiB / 2 MiB.
Using picotool info -a will give the actual end address - so it may be possible to avoid copying empty 256 byte blocks?... but this may be required to keep the filesystem intact?
From https://github.com/TinyCircuits/TinyCircuits-Thumby-Code-Editor/pull/73#issuecomment-1402119063
Investigate how bundling an FS with
picotool
might be optimized, to reduce the overall size of the UF2 for flashing.Current process noted here:
sudo ./picotool save -r 0x10000000 0x10200000 ThumbyFirmware.uf2
.This specifies an address range of 2,097,152 bytes / 2048 KiB / 2 MiB. Using
picotool info -a
will give the actual end address - so it may be possible to avoid copying empty 256 byte blocks?... but this may be required to keep the filesystem intact?See also documentation on the format: https://github.com/microsoft/uf2