I've flashed it again, now using the windows script (first time format data). Same issue, it boots correctly, I configure everything and then it restarts again and again. However it looks like a soft restart cause it takes just 10 seconds, I see the MI Logo, then I see the wifi configuration...