Saturday, October 03, 2009

Reflashing wireless router D-Link DIR-320 with Oleg's firmware

The procedure of reflashing Oleg's firmware on D-Link DIR-320:
  1. Getting the latest firmware from http://code.google.com/p/wl500g and rename it to firmware.bin.
  2. Save it to c:\bin
  3. In c:\bin create file flashing.cmd with the following content:
  4. @Echo Off
    :BEGIN
    ping -n 1 -w 1 192.168.0.1
    If errorlevel 1 Goto BEGIN
    If errorlevel 0 Goto FLASH
    Goto END

    :FLASH
    Echo *** Start Flashing ****
    tftp -i 192.168.0.1 put firmware.bin

    :END

  5. Connect computer to the router by an Ethernet cable with the following LAN setting: IP address 192.168.0.2, netmask 255.255.255.0, no need to write gateway and DNS. Do not power on the router.
  6. Run cmd, then change directory to c:\bin and run flashing.cmd
  7. Push and hold Reset while power on the router. When the LAN LED is blinking, you can release Reset button.
  8. Wait while the reflashing process is running.
  9. When the status LED is on (after 1--2 minutes), we need to reset router's default settings. Push and hold Reset button untill status LED starts blinking. Release Reset. The router restarts and will be ready with new firmware.
After reflashing you need to change computers' WLAN or/and LAN adapters settings to get IP address and DNS automatically. Open a web browser and type http://192.168.1.1 to login the router with username admin, password admin. You can change username, password and other setting in this web browser interface.

Bash script for Linux users (instead of flashing.cmd):

#!/bin/bash
ping_router() {
result=1
until [[ "$result" = 0 ]]
do
ping -c 1 -W 1 -i 1 192.168.0.1
result=$?
done
}

ping_router

echo "*** Start Flashing **** "
tftp 192.168.0.1 -m binary -c put ./firmware.bin
if [[ "$?" = 0 ]]
then echo "Firmware successfully loaded!";
fi

7 comments:

Lucas said...

If I am using DD-WRT, is possible to update to OLEG using web interface ? Or I still need to use tftp ?

Phan Vinh Thinh said...

Hi Lucas,
Sorry that I can't not say what the extract answer is. One thing I know is further Oleg firmware update can be done by web interface.

Anonymous said...

Yes it is possible if you change the extension name to .bin

Wireless Headsets said...

Bluetooth Headset, this is amazing headset made the plantronics, simple and best performance in a very short budget, excellent voice, no distortion, no noise.

Rifcraft said...

thank you verymuch for the lastest firmware,
i need to Reflashing my wireless router D-Link DIR-320 . very usefull...

247Tech Aid said...

Dial D-Link Technical support phone number to get Instant support: 1800-857-2133,D-Link is a Japan based international IT firm which deals in bringing out the technical device.. It is popular for n manufacturing and designing of advanced Router for the purpose of and offices both. Using D-Link Router, you will get the best output for all your doings like Picture or Image scanning, documents scanning and superior quality of scanning.CALL NOW D-Link Router Support Phone Number for USA & CA customers: 1800-857-2133 to get the assistance of standard quality in handling all your issues!.


http://www.247techaid.com/services/router-technical-support/1-800-857-2133-dlink-router-technical-global-support-service-helpline-number/

Michael Steven said...

Thanks for this wonderful article. I enjoyed reading your article. Well, if someone is looking to buy a wireless router then I'd love to suggest this list of wireless routers. You will find the best collection of wireless routers on this link. You will surely find the right choice of your needs. You should pay a visit once to know more about wireless routers.