modify for emmc booting