writing patch binary to flash, and running at boot