Closed httpsTeabagexe closed 1 week ago
You can use cat /sys/class/ubi/ubi*/mtd_num
to view the running partition
If return 18, use a value of 1
go back to xiaomi firmware, otherwise, use a value of 0
fw_setenv flag_last_success 1
fw_setenv flag_boot_rootfs 1
reboot
Go back to openwrt:
nvram set flag_last_success=0
nvram set flag_boot_rootfs=0
nvram commit
reboot
You can easily switch between two systems
@fecent Thanks for the suggestion! The partitions indeed switch between each other
The problem is that i somehow installed openwrt on both 18 and 19 partitions
@fecent Thanks for the suggestion! The partitions indeed switch between each other
The problem is that i somehow installed openwrt on both 18 and 19 partitions
You can only use the MIWIFIRepairTool in Readme to flash back the Xiaomi firmware and then reinstall Openwrt in another partition. It is recommended to follow Rreadme to install Openwrt in another partition so that you can keep both systems
Note: Using MIWIFIRepairTool will completely erase two partitions and write Xiaomi firmware
Following the guide on openWRT docs page the following error appears while attempting to flash original firmware:
An attempt to load firmware through web GUI leads to router rebooting and nothing else
After reboot openwrt's login page opens