What is risky about? ECU does cost money, it is hardware, but software is already engineered and written, it should be free to write on the ecu for which it has already been paid.Toyota runs QNX, which is linux based, yeah.
I would be shocked about customizable OS or firmware for a vehicle. Way too risky.
Car theft is a totally different topic and so is warranty.