You can use uboot web failsafe to flash factory firmware.