unpack-image: Add support for DT images
andlogs: Wait for device before logging