selfboot.c working

Change-Id: I088cf63fba2b6078f5383a4760c9ea419f98266f