Assuming you've used the eMMC facility on your Banana Pi M5/M2Pro, there may come a time when you wish to wipe the eMMC and reload a new/different system. I've not found a method to do this from Linux or macOS (although not looked very hard) but it can be done easily & reliably from Windows OS.
Amlogic USB burning tool instructions and video: https://wiki.coreelec.org/coreelec:aml_usb_tool