Select the MMC hwpart before writing
Explicitly select the user area partition before attempting to write to the eMMC.
The currently selected MMC hwpart could be anything set by a previous script or some boot software. Since this script is meant to write the boot image in the user area, we ensure that it is the active hwpart.