Installazione openwrt su xiaomi ac2350 (solved)

hi, I'm trying to install openwrt on xiaomi ac2350, after various vicissitudes I managed to access ssh as per the guide, I copied the renamed file openwrt.bin, at the time of the command it responds like this

root@XiaoQiang:~# cat < /tmp/flash_fw.sh

#!/bin/sh

. /bin/boardupgrade.sh

board_prepare_upgrade
mtd delete rootfs_data
mtd write firmware /tmp/openwrt.bin
sleep 3
reboot

EOF
root@XiaoQiang:~# chmod +x /tmp/flash_fw.sh
root@XiaoQiang:~# /bin/ash /tmp/flash_fw.sh
Interface wan not found
Connection to 192.168.178.135 closed by remote host.
Connection to 192.168.178.135 closed.

it can't find the WAN interface which I honestly don't understand what it means since it is connected via cable to the main router (I connected it as cable in the configuration so as not to have to reconnect)

any ideas??? thanks

might not be relevant, but you missed something here, compared to what's written in the wiki.

1 Like

thanks for the indication, I had in fact made a mistake in copying in the post, but I still solved it... the problem was that from the indications on the miwifi app it could be fixed without a connection, now if it is not connected to the Wan it doesn't flash, in fact I had configured it as cable ap, but not flash firmware, I tried to connect an external line even if it wasn't configured and it flashed immediately...now I have to study all the configurations...thanks :grinning:

interesting, that info should perhaps go into the wiki ...