I currently have a Linksys E5350 running OpenWrt, and I would like to revert to the original firmware. However, when I attempt the reverse procedure using the original firmware, it invariably ends up loading OpenWrt instead.
what specific method are you using to restore the original firmware? Please provide both the details and the outputs you see.
I entered through option 4 to configure TFTP, then option 1 to load it into RAM, and it loads OpenWRT. Then I used option 2 to flash it, and it also finished loading OpenWRT. I think at some point it said it couldn't validate the Linksys .bin file, and it's the original one from the website. Could I use a CH341 to write the .bin file directly to the chip?
did you try loading the vendor firmware directly using TFTP? Obviously OpenWrt isn't going to be able to write the original firmware back to the device, so it probably doesn't make sense to load OpenWrt into RAM.
I'm transferring the Linksys firmware, not OpenWRT, via TFTP.
Abort: image Code pattern is error !## Booting image at bc050000 .
This is the verdor firmware from support section in his website
U-Boot 1.1.3 (Jul 15 2019 - 11:16:02)
CBT: 0.1.1
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 15 2019 Time:11:16:02
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 580 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
mdio.w addr[0x00000007] value[0x00077070]
mdio.w addr[0x0000000D] value[0x0000001F]
mdio.w addr[0x0000000E] value[0x00000024]
mdio.w addr[0x0000000D] value[0x0000401F]
mdio.w addr[0x0000000E] value[0x00000000]
This verison of Uboot support Httpd Server 0.9
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
default: 3 2
You choosed 2
0
2: System Load Linux Kernel then write to Flash via TFTP.
2: System Load Linux kernel then write to Flash via TFTP.
Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
Operation terminated
[04030C0D][04030C0E][88880000][24244646][00242446]
DU Setting Cal Done
U-Boot 1.1.3 (Jul 15 2019 - 11:16:02)
CBT: 0.1.1
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 15 2019 Time:11:16:02
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 580 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
mdio.w addr[0x00000007] value[0x00077070]
mdio.w addr[0x0000000D] value[0x0000001F]
mdio.w addr[0x0000000E] value[0x00000024]
mdio.w addr[0x0000000D] value[0x0000401F]
mdio.w addr[0x0000000E] value[0x00000000]
This verison of Uboot support Httpd Server 0.9
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
default: 3
You choosed 2
0
2: System Load Linux Kernel then write to Flash via TFTP.
2: System Load Linux kernel then write to Flash via TFTP.
Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
Please Input new ones /or Ctrl-C to discard
Input device IP (192.168.1.11) ==:192.168.1.11
Input server IP (192.168.1.100) ==:192.168.1.100
Input Linux Kernel filename (linksys.bin) ==:linksys.bin
NetTxPacket = 0x83FE39C0
KSEG1ADDR(NetTxPacket) = 0xA3FE39C0
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
Waitting for RX_DMA_BUSY status Start... done
ETH_STATE_ACTIVE!!
TFTP from server 192.168.1.100; our IP address is 192.168.1.11
Filename 'linksys.bin'.
TIMEOUT_COUNT=10,Load address: 0x82000000
Loading: checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
T Got ARP REPLY, set server/gtwy eth addr (00:e0:4c:36:13:3f)
Got it
TFTP error: 'File not found' (1)
Starting again
TFTP from server 192.168.1.100; our IP address is 192.168.1.11
Filename 'linksys.bin'.
TIMEOUT_COUNT=10,Load address: 0x82000000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:e0:4c:36:13:3f)
Got it
TFTP error: 'File not found' (1)
Starting again
Got ARP REQUEST, return our IP
TFTP from server 192.168.1.100; our IP address is 192.168.1.11
Filename 'linksys.bin'.
TIMEOUT_COUNT=10,Load address: 0x82000000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:e0:4c:36:13:3f)
Got it
TFTP error: 'File not found' (1)
Starting again
TFTP from server 192.168.1.100; our IP address is 192.168.1.11
Filename 'linksys.bin'.
TIMEOUT_COUNT=10,Load address: 0x82000000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:e0:4c:36:13:3f)
Got it
TFTP error: 'File not found' (1)
Starting again
TFTP from server 192.168.1.100; our IP address is 192.168.1.11
Filename 'linksys.bin'.
TIMEOUT_COUNT=10,Load address: 0x82000000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:e0:4c:36:13:3f)
Got it
TFTP error: 'File not found' (1)
Starting again
TFTP from server 192.168.1.100; our IP address is 192.168.1.11
Filename 'linksys.bin'.
TIMEOUT_COUNT=10,Load address: 0x82000000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:e0:4c:36:13:3f)
Got it
TFTP error: 'File not found' (1)
Starting again
TFTP from server 192.168.1.100; our IP address is 192.168.1.11
Filename 'linksys.bin'.
TIMEOUT_COUNT=10,Load address: 0x82000000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:e0:4c:36:13:3f)
Got it
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##Got ARP REQUEST, return our IP
###############################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################
done
Bytes transferred = 9096311 (8acc77 hex)
LoadAddr=82000000 NetBootFileXferSize= 008acc77
Abort: image Code pattern is error !## Booting image at bc050000 ...
Image Name: MIPS OpenWrt Linux-6.12.71
Image Type: MIPS Linux Kernel Image
That was not clear...
This all sounds like you're sending an OpenWrt image to the device via TFTP.
This seems like the problem. Check your tftp server and the file you're hosting to make sure it's there.
I had forgotten to place the TFTP in the folder containing the linksys.bin file; however, further down in the log, it subsequently begins loading the firmware but then returns the error: Abort: image Code pattern is error !## Booting image at bc050000.
Did you fix this?
Seems largely irrelevant if it hasn't been able to pull the desired image file.
Yes
Loading: Got ARP REPLY, set server/gtwy eth addr (00:e0:4c:36:13:3f)
Got it
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##Got ARP REQUEST, return our IP
###############################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################
done
Bytes transferred = 9096311 (8acc77 hex)
LoadAddr=82000000 NetBootFileXferSize= 008acc77
Abort: image Code pattern is error !## Booting image at bc050000 ...
Image Name: MIPS OpenWrt Linux-6.12.71
Image Type: MIPS Linux Kernel Image
Try downloading the file from linksys again, then rename it and put it in your tftp folder (deleting/overwriting what is there).
I've already tried it—I downloaded it again, but it keeps throwing the "Image Code pattern is error" message. Could it be that it requires a different type of image, or is there something I need to modify?
And to be able to use the CH341 USB programmer, I will need a dump of the W25Q128BV.