Script did not work because there was mistake in line preparing final image from efi and freebsd partition.
Without this fix it is not possible to create memstick img with this script as the gpart will refuse to create efi partition within mbr scheme.
The patched script succeeded in creating img, that has been uploaded to usb flash drive (and sata disk) and successfully booted on ThunderX.