-
create source dir
mkdir -p $HOME/work cd $HOME/work
-
clone Yocto builder
git clone https://github.com/Vekatech/yocto.git cd yocto
-
build Yocto image (Dunfell) 1
chmod a+x build.sh ./build.sh <board>
-
Prepare the image to be in the appropriate sparse format. 12
img2simg "path_to_the_image/core-image-<target>.wic" "vkPyFlasher/images/<board>/core-image-<target>.simg"
-
Write Yocto image on the SBC/SoM 123
If you are flashing from
Linux
/Unix
machine:python3 vkPyFlasher/flash_img.py --board=<board> --serial_port=/dev/ttyUSB<n> --image_rootfs=core-image-<target>.simg
If you are flashing from
Windows
machine:vkPyFlasher/flash_img.py --board=<board> --serial_port=COM<n> --image_rootfs=core-image-<target>.simg
If you are interested what else vkPyFlasher
can do, you can check the full manual on our website.