mkimage: use conv=sparse if dd supports it; added -p to set platform.