fix data/media handling

Change-Id: I250b7447cc0a96ec28d94386be14e01e71eb4771
remove unused readbootslot function

Change-Id: I1fa5b658605b8f704de8938fb54691bb7d25a356