After downloading the image, you must now use the system on another storage device (for example, the prepared SD card) in order to flash it to the onboard eMMC. Here takes the Endless OS image for khadas VIM2 as an example.
Warning: This action will erase and overwrite all of the things on the eMMC.
Boot the Endless OS system on the SD card.
Check which device is the eMMC.
$ ls /dev/mmcblk*
/dev/mmcblk0 /dev/mmcblk2 /dev/mmcblk2boot1 /dev/mmcblk2rpmb
/dev/mmcblk0p1 /dev/mmcblk2boot0 /dev/mmcblk2p1
$ mount | grep mmcblk
/dev/mmcblk0p1 on /sysroot type ext4 (rw,relatime,errors=remount-ro)
/dev/mmcblk0p1 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/mmcblk0p1 on /boot type ext4 (rw,relatime,errors=remount-ro)
/dev/mmcblk0p1 on /usr type ext4 (ro,relatime,errors=remount-ro)
/dev/mmcblk0p1 on /var type ext4 (rw,relatime,errors=remount-ro)
/dev/mmcblk0p1
mounted at root point /
now. So, we know mmcblk0 is the SD card. Then, mmcblk2 must be the eMMC.Launch GNOME Disks. On Endless this can be done by using the desktop search:
/dev/mmcblk2
found in step #2, and select it from the sidebar on the left.If you have set up a password for your account, this may now be requested for authentication
Wait for the disk image restore process to complete.
Power off the system.
Unplug the SD card.
Power on and it shall boot the system on the eMMC directly now.