The coloured square appears after firmware has loaded and remains until kernel replaces it.
If it stays up it means the kernel failed to start.
Most common cause is updating a Pi2 with Pi1 image (or vice versa).
But sdcard corruption or an interrupted update could also cause it.
A reinstall may be the simplest option.