Hi,
Did you look at this bit of the open source website https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/How-to-install-the-Flexible-OpenSource-firmware
because I don't think you will find more detailed instructions that these.
It is availible pre -built (loaded ) from here...