• November 04, 2024, 10:37:51 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Directly reprogramming flash chip  (Read 5822 times)

dhroes

  • Level 1 Member
  • *
  • Posts: 3
Directly reprogramming flash chip
« on: February 26, 2012, 05:11:35 PM »

I have a DIR-655, hardware A4, which is completely unresponsive. I don't know how it happened because I got it after it was already broken. When I plug the power in, the blue power LED comes on and stays on solid. It never blinks. If I plug an Ethernet cable into port 1 (or any of the others), the corresponding blue LED on the front will light up and blink when there is traffic, but the router itself is unresponsive.

I tried all sorts of troubleshooting. I tried different combinations of resetting it by holding down the reset button before, during, or after unplugging and plugging in the power. I also tried several times the corrupt firmware recovery procedure in the sticky post "Firmware updates and DLink routers".

I have used a PC connected directly to port 1 (and tried other ports) with a statically assigned IP of 192.168.0.2/255.255.255.0. I also tried some others I believe. I would try to ping or web browse to 192.168.0.1 but never got anything. Trying without a static IP, I also got no DHCP response.

I searched the web to see if I could locate the serial port but there was no information for this specific model. Nonetheless I probed some of the unpopulated ports on the circuit board but found nothing.

Everything on the board looks OK. There do not appear to be any loose or burnt components, nor any bulging capacitors. Voltages are what you would expect - 12 V from the adapter and 3.3 V on some chips in various places where you'd expect to see that. The 3.3 V is very stable, too, so I doubt any power supply issues.

So I tried reprogramming the Spansion FL032A flash ROM directly. I used the program SPIPGM and instructions similar to these: http://wiki.openwrt.org/doc/howto/generic.debrick. (Note: I am just providing the link for reference to the re-flashing information; I am not trying to run any type of firmware other than the actual D-Link firmware.)

I could successfully read and write to the chip. I took two backup copies of the original chip contents and compared them. They were identical. Next I erased the chip and verified that it had been erased. I downloaded the firmware file from the D-Link website, version 1.35NA. I unzipped the file and wrote it into the chip directly. I verified that the data was written correctly, but the router behaved the same as before.

I suspected the firmware file (dir655_FW_135NA.bin) might be compressed. Indeed, I tried to open the firmware .bin file in 7-zip and it did in fact open. It contains a single file in some deeply nested subdirectories: cygdrive\c\Ubicom\sdk\projects\dir-655\build\bin\img.bin. I thought maybe I could burn this image into the chip but I was a little worried because the file was too big (4.6 MB) for the flash chip (4 MB). I tried it anyway but it did not work.

So, here is what I am wondering...

If I were to want to rewrite the flash chip directly, how can I do it? The original image is compressed, and if you unzip that "image" the image inside it is too big for the chip. So I am guessing that when the firmware is uploaded to the router using the normal web interface it does some sort of processing to pick out the pieces it needs and put them in the proper memory locations. Just theorizing. But I have no way to do that manually.

Could someone tell me if reprogramming the chip directly is at all possible and, if so, how? Or if you have any other troubleshooting suggestions in this situation I would appreciate that as well. Thank you.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Directly reprogramming flash chip
« Reply #1 on: February 26, 2012, 05:14:36 PM »

Can you get to the Recovery Mode?
Review the FW update sticky information about this.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

dhroes

  • Level 1 Member
  • *
  • Posts: 3
Re: Directly reprogramming flash chip
« Reply #2 on: February 26, 2012, 07:44:37 PM »

No, as I mentioned, I tried this several times before moving on to more extreme measures. This is the step where I get stuck:

"Continue to hold the reset button until the amber power light keeps blinking on and off"

The power light (which is blue) never changes even if I keep holding the reset button for about 1 minute.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Directly reprogramming flash chip
« Reply #3 on: February 26, 2012, 07:49:13 PM »

This unit needs to be RMAd man. I would contact DLink and get there help.

There is nothing else that can be done.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

davevt31

  • Level 9 Member
  • ****
  • Posts: 1601
Re: Directly reprogramming flash chip
« Reply #4 on: February 26, 2012, 09:01:39 PM »

I believe that the recovery mode is only for the B hardware only.
Logged

dhroes

  • Level 1 Member
  • *
  • Posts: 3
Re: Directly reprogramming flash chip
« Reply #5 on: February 27, 2012, 03:42:36 PM »

Well, considering it's out of warranty, it's not going to be so much "RMA'd" as it is "TRASH'd". Actually I'll probably pull some parts off first.

It's very frustrating. I just don't know what processing steps the web interface does with the firmware .bin file before flashing the chip.

I'm going to stretch real far here -- anybody got an image directly from a flash chip (any FW version)?
Logged

davevt31

  • Level 9 Member
  • ****
  • Posts: 1601
Re: Directly reprogramming flash chip
« Reply #6 on: February 27, 2012, 06:07:26 PM »

As far as I know, the firmware is encrypted so you would need the actual Ubicom programming software to do what you want.

As for the power light, I have an A2 model and the power light is solid.
Logged