OpenWrt Forum Archive

Topic: Need help. Cant flash router Phicomm RT5350 with stock firmware

The content of this topic has been archived on 12 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

My router bricked after electric power down:(  sad when I flashed it. So I made serial console it and flash it again by stock firmware. But not succeeded
My config
PC IP 192.168.0.2 / Router IP 192.168.0.1

Router got firmware.bin but nothing happened. I put it by CMD console

tftp -i 192.168.0.1 put firmware.bin

And firmware http://cn.phicomm.com/attachments/produ … V1.0.6.bin

And  log

U-Boot 1.1.3 (Mar 15 2012 - 11:03:21)

Board: Ralink APSoC DRAM:  16 MB
rt2880 uboot v0.00e04 05/25/2006
SERIAL_CLOCK_DIVISOR =16
kaiker,,CONFIG_BAUDRATE =57600
SDRAM SIZE:01000000
Top of RAM usable for U-Boot at: 81000000
Reserving 298k for U-Boot at: 80fb4000
Reserving 260k for malloc() at: 80f73000
Reserving 44 Bytes for Board Info at: 80f72fd4
Reserving 36 Bytes for Global Data at: 80f72fb0
Reserving 128k for boot params() at: 80f52fb0
Stack Pointer at: 80f52f98
relocate_code Pointer at: 80fb4000
******************************

Default 102c = 00031E46
******************************
******************************

Set 102c = 40031E46   to Set LED OFF
******************************
******************************
Software System Reset Occurred
******************************
Now running in RAM - U-Boot at: 80fb4000

monitor_flash_len =106784
Command "rf": 0x80202268 => 0x80fb6268
Command "mdio": 0x80206988 => 0x80fba988
Command "erase": 0x802082f0 => 0x80fbc2f0
Command "cp": 0x802081c4 => 0x80fbc1c4
Command "reset": 0x80214670 => 0x80fc8670
Command "go": 0x802092e0 => 0x80fbd2e0
Command "bootm": 0x80209abc => 0x80fbdabc
Command "loadb": 0x8020a914 => 0x80fbe914
Command "tftpboot": 0x8020af60 => 0x80fbef60
Command "saveenv": 0x8020bfe8 => 0x80fbffe8
Command "setenv": 0x8020be9c => 0x80fbfe9c
Command "printenv": 0x8020b434 => 0x80fbf434
Command "?": 0x8020c1a0 => 0x80fc01a0
Command "help": 0x8020c1a0 => 0x80fc01a0
Command "version": 0x8020c040 => 0x80fc0040
Command "mw": 0x8020f118 => 0x80fc3118
Command "nm": 0x8020f32c => 0x80fc332c
Command "mm": 0x8020f374 => 0x80fc3374
Command "md": 0x8020ee48 => 0x80fc2e48
spi_wait_nsec: 42
spi device id: c2 20 16 c2 20 (2016c220)
find flash: MX25L3205D
raspi_read: from:30000 len:1000
.raspi_read: from:30000 len:1000
.============================================
Ralink UBoot Version: 3.6.0.0
--------------------------------------------
ASIC 5350_MP (Port5<->None)
DRAM_CONF_FROM: Boot-Strapping
DRAM_TYPE: SDRAM
DRAM_SIZE: 256 Mbits
DRAM_WIDTH: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 32 MBytes
Flash component: SPI Flash
Date:Mar 15 2012  Time:11:03:21
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

##### The CPU freq = 360 MHZ ####
estimate memory size =16 Mbytes

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.                     4
You choosed 2
                                                                              0


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.0.1) ==:192.168.0.1
        Input server IP (192.168.0.2) ==:192.168.0.2
        Input Linux Kernel filename () ==:firmware.bin
netboot_common, argc= 3

NetTxPacket = 0x80FE6440

KSEG1ADDR(NetTxPacket) = 0xA0FE6440

NetLoop,call eth_halt !

NetLoop,call eth_init !
Trying Eth0 (10/100-M)

Waitting for RX_DMA_BUSY status Start... done


Header Payload scatter function is Disable !!

ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.0.2; our IP address is 192.168.0.1
Filename 'firmware.bin'.

TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: checksum bad
checksum bad
Got ARP REQUEST, return our IP
checksum bad
Got ARP REQUEST, return our IP
Got ARP REQUEST, return our IP
checksum bad
checksum bad
checksum bad
Got ARP REPLY, set server/gtwy eth addr (00:1d:72:68:02:7f)
Got it
T T T T T T T T T T
Retry count exceeded; starting again
Trying Eth0 (10/100-M)

ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.0.2; our IP address is 192.168.0.1
Filename 'firmware.bin'.

TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:1d:72:68:02:7f)
Got it
T T T T T T T T T T
Retry count exceeded; starting again
Trying Eth0 (10/100-M)

ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.0.2; our IP address is 192.168.0.1
Filename 'firmware.bin'.

TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:1d:72:68:02:7f)
Got it
T T T T T T T T T T
Retry count exceeded; starting again
Trying Eth0 (10/100-M)

ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.0.2; our IP address is 192.168.0.1
Filename 'firmware.bin'.

I need help to flash it again. Sorry my bad English. Thank

You need install TFTP-server on PC

Off course, I installed Tftp. Router cpu rt5350 with 4MB flash/32 MB ram

sogoku_vn wrote:

Router got firmware.bin but nothing happened. I put it by CMD console

tftp -i 192.168.0.1 put firmware.bin

That means you have installed TFTP-client, but no TFTP-server.

sogoku_vn wrote:

And  log

 ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.0.2; our IP address is 192.168.0.1
Filename 'firmware.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:1d:72:68:02:7f)
Got it
T T T T T T T T T T

TTTTT means, router try download firmware, but unsuccessful. If it receive image it will print ######.
So install TFTP-server http://www.solarwinds.com/products/free … erver.aspx

And then run "Load system code then write to Flash via TFTP"

(Last edited by neryba on 25 Nov 2013, 07:59)

neryba wrote:
sogoku_vn wrote:

Router got firmware.bin but nothing happened. I put it by CMD console

tftp -i 192.168.0.1 put firmware.bin

That means you have installed TFTP-client, but no TFTP-server.

sogoku_vn wrote:

And  log

 ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.0.2; our IP address is 192.168.0.1
Filename 'firmware.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:1d:72:68:02:7f)
Got it
T T T T T T T T T T

TTTTT means, router try download firmware, but unsuccessful. If it receive image it will print ######.
So install TFTP-server http://www.solarwinds.com/products/free … erver.aspx

And then run "Load system code then write to Flash via TFTP"

Yeahhhhhhhhhhh. You save my life. Thank so much smile

(Last edited by sogoku_vn on 25 Nov 2013, 16:19)

The discussion might have continued from here.