Use Armbian image : https://mega.nz/file/XeoymJKA#VSJHsyU8SCQPAQvMqVkiqLVPXWFp4egxajoL4Ea0jqI
(It's a minimal debian bullseye minimal linux 5.16.17)
burn image with balena etcher and connect the MangoPi with ssh:
user : root
password : orangepi
then :
apt-get update && apt-get upgrade -y
apt install -y curl ca-certificates systemd-sysv git build-essential
reboot
bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-installer')"
At this step you can:
-remove the card to make backup/clone
-reboot to use the DiePi image
after reboot password will be:
user : root
password : dietpi
nano /boot/orangepiEnv.txt
and add these lines :
param_spidev_spi_bus=1
overlays=i2c0
Save and reboot