Flash EMMC Image From External USB

Which Khadas SBC do you use?

Khadas VIM3 Basic

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

Self-Built via Fenix
Ubuntu 20.04
Linux 6.0

Please describe your issue below:

I am trying to update an existing VIM3 unit’s onboard EMMC image with a new one. The VIM3 is currently running from the EMMC, and due to various constraints I am trying to avoid requiring the use of an SD card.

Is there a way to either remotely flash a new image to the EMMC? Or do so via a bash script? I would like to insert a USB that has the image on it and have it replace the image that is on the EMMC.

I know there is likely multiple ways of doing this, but my current attempts have been unsuccessful. I tried remotely flashing KRescue using information from this doc while SSH’d into the root… but this failed and has essentially bricked one of my VIM3 units. I currently do not have serial tools to troubleshoot my bricked VIM3 unit, so I am not going to worry about it for the time being.

Please check here: VIM3/3L Install OS into eMMC via USB Flash Tool [Khadas Docs]