first, download tools from this link:
in newer version of amlogic chip, introdueced a new protocl called ADNL so you can't use old tools to burn image on newer device
./aml-burn-tool -b VIM4 -i /path/to/file.img
also, to unpack image fie you can use Linux Amlogic toolkit this repo on github.
in new version of android (from Android 10) system.img is not exist and some partition is inside of super.PARTITION so you should extract super partitino again. first you need to use simg2img to convert sparce image to raw image:
./bin/simg2img ./output/image/super.PARTITION ./output/image/super.img
and then you can use lpunpack tool to unpack super partition:
lpunpack ./super.img supers
supers is a directory that I made.