I'm sure Tesla loads the default SW onto the motherboard before the motherboard is installed in the car.

The same way that PC makers install firmware, the operating system &amp; other software before they assemble PCs.