[Issue -] Add boot state module, start check and reprogramming of
secondary image