I have a Ubiquiti AP AC Lite.
I download the appropriate new firmware 19.07.1.
I had to reflash my AP to 3.7.58 so that I could use mdt.
I can scp my bin to the AP.
Then, when I try to:
mtd write /tmp/openwrt-19.07.1-ath79-generic-ubnt-unifiac-lite-squas
hfs-sysupgrade.bin kernel0
I get:
Couldn't open image file: /tmp/openwrt-19.07.1-ath79-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin!
Yes. You have incorrect file name. It should be an underscore (not a hyphen) between ubnt and unifiac (like this ubnt_unifiac not ubnt-unifiac.
Having said so, I must say making a typo in the file name isn't a good sign. Flashing firmware is a risky task and can potentially brick your device if done wrong. I advise you to be careful.
After pushing the file over scp, log in and use ls to see if the file is there. I think the stock firmware also has md5sum which would be good to check for errors in transfer.
You don't have to type the whole name, type openw or so then hit tab and it should autocomplete.
To ensure a proper boot the bs partition must have a zero and the kernel2 partition should be erased. New out of the box should be already set to boot bank 0, you could check it with hexdump.