I am a total noob, but thank you very much for providing this solution.
I've written out how I managed to solve it using everything mentioned in this post and the pull request so that other users can use it too:
I downloaded "Debian Testing (Trixie) Minimal / IOT stable 6.6.54" from the "Rolling releases images with Armbian Linux v6.6" section on the page https://www.armbian.com/bananapi-m4-zero/
I installed Network Manager with the following command (it's a nice to have tool)
sudo apt-get install network-manager
and added the following line to `/boot/armbianEnv.txt` .
overlays=bananapi-m4-sdio-wifi-bt
then I rebooted and listed my device using nmcli.
when I saw that wlan0 was available I connected using this command, replacing $SSID and $PASSWORD with my Wifi name and password:
nmcli device wifi connect "$SSID" password "$PASSWORD"