Aml-flash-tool for flashing VIM3 from another VIM3 running Ubuntu 18.04

Which Khadas SBC do you use?

VIM 3 Pro

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

Ubuntu 18.04

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

self built image based on khadas vim3 18.04
I downloaded the flash tool from khadas utils git repo, and ran install. It initially failed to run because it was looking for lib32z1, lib32stdc++6, lib32ncurses5.
I modified these to zlib1g, libstdc++6 libncurses5 and the install tool finished successfully.
When I run the update from ~/utils/aml-flash-tool/tools/linux-arm , it gives me the following error ./update: error while loading shared libraries: cannot open shared object file: No such file or directory

does the aml flash tool work on VIM3, to flash another VIM3?

It seems like it is looking for the 32 bit version of the file

Is there a way I can build aml_flash_tool for arm64 and run it from VIM3?
We find VIM3 to be super portable, and would love to enable our users to be able to flash a VIM 3 using another VIM3. Would greatly appreciate if you can point to any method to help me in doing this.

In my case I am powering up the VIM3s using separate external USB hub, so power is not an issue.