EmuELEC generic image Ver 4.0 (EmuELEC-Amlogic-ng.aarch64-4.0-Generic.img.gz) could work for BPI-M5? Or there’s some way to make it work?
Might not load the uboot as it there would be Android uboot present on eMMc. You can use CoreElec for S905X3 image or LibreElec for BPI-M5
EmuELEC is not the same thing, CoreELEC is focus for media player and EmuELEC is for retro gaming.