Here is the tutorial from MHAQS with a space inserted to avoid the "/etc" problem:
--------------------------------------
Updating DSL-2640T to RouterTech Firmware 2.6
Before you start, please download the following tools and confirm the settings following afterwards.
1- Download RUC (Router Update Checker, available on this forum)
2- Download WEB (Wireless Environment Builder, available on this forum).
3- Download your router's latest official firmware (you should have a copy, in case this goes kaput).
Now whatever you do, don't blame me. Next open up RUC and enter your router login info, defaults are:
ip: 192.168.1.1
web user: admin
web pass: admin
telenet user: root
telnet pass: admin
no of ethernet ports: 4
router description: dlink g624T*
check all boxes at the bottom (they are there for a reason).
* You can edit the routers.txt and make an entry for DSL-2640T as follows too:
DSL-2640T 4
Once, RUC gives you a report, it should be similar to the following:
Router Upgrade Check 1.2.9 19/09/2008 09:49:15
Router IP: 192.168.1.1
CLI is needed
Description: Dlink G624T
Board type: AR7VW
Product ID: AR7WRD
Bootloader: psbl
RAM 16.0 MB
Flash (ROM) 4.0 MB
ADAM2: No
No default env: No
Linux version: 2.4.17_mvl21-malta-mips_fp_le
Firmware build:
Firmware version: V3.02B01T01.ME-A.20080125
Firmware stamp: 20080125143616
CPU: MIPS 4KEc V4.8
DSP: 6.00.04.00
Annex: A
/proc/wlan: Yes
/usr/sbin/wlan: Yes
TIAP: Yes
TNETW: Yes
Wireless: Yes
WIFI chip: TNETW1350A
WIFI chip conf: Yes
Ports: 4
Marvell (or Marvell like): No
NSP: V3.02B01T01.ME-A.20080125
Manufacturers: D-link Corporation
RNDIS: Telogy Networks Inc
Now, the things to make sure in the above log are:
Product ID or Board type: AR7WRD
Bootloader: psbl
RAM 16.0 MB
Flash (ROM) 4.0 MB
WIFI chip: TNETW1350A
Marvell (or Marvell like): No
The above settings will qualify you for a RouterTech firmware upgrade. The reason to run RUC was to backup all your settings and configurations at one place. If you have not backed-up your settings,
do it now. No one will be responsible, if you do this carelessly and brick your router.
Download RouterTech firmware named:
routertech-rohs-ar7wrd-pspboot-firmware-20080723.zip
extract it to some directory and open up the upgrade.html file and
DO WHAT IT SAYS.
1- back-up all your settings
a- /proc/ticfg/env
b- /proc/interrupts
c- /etc /led.conf
d- config.bin (using your router's "save config to hard disk" option in the web panel)
2- reset your router to factory default settings. reboot.
3- once the router comes back online, save all settings and reboot again.
4- open up the update firmware panel in the router's web panel; Tools->Firmware and browse to where you extracted the above zip file and select:
RouterTech_ROHS_3.7.1B_20080723_2.60_AR7WRD_psbl_firmware.upgrade.img
Now click on Apply and pray to God that you will be a happy man today. Leave the router alone for about
10 minutes. 10 MINUTES...
After ten minutes, telnet into your router again and see if it lets you log in using:
telnet 192.168.1.1
Log in using user:Admin and pass:Admin.
If the router let you log in, go to your Router's web panel and into the System panel. Click on Restore Factory Settings and Reboot. Once the router comes online. Telnet back into your router:
type
and take a look at the variables and back them up.
Next perform the following steps:
Code: Select all
[i]- setenv led_conf led.2640t && /sbin/reboot[/i]
once again, when the router comes back online. Telnet again into the router and type:
reboot again and wait for the router to come back online. Telnet into it once again and type:
reboot again and enter this command:
reboot the router once again and you should have a working DSL-2640T running with everything on a custom routertech firmware. You can issue all the commands above in a single go but I say, do not mess with your router, unless you are confident of your actions.
For the people, who do not have their WLAN working, after the upgrade or even so before the upgrade, please follow the steps below:
A common issue for many people on a router exists, where the AP stays off and only comes online by using "echo NVS_TFTP_LOAD 0" > /proc/ticfg/env". However, this can create issues on the environment side and the solution itself is temporary too. The actual issue is a corrupted WLAN EEPROM, which needs to be fixed:
- Extract WEB (Wireless Environment Builder) somewhere in a directory and open it up.
- Fill up the information it asks for.
- If you do not have a TWNET ID, go to your router's system logs. They can be found in Status->SystemLog. Browse them and find the line where it says:
"Failed to get DIE ID from wlan driver. Cannot validate EEPROM Image"
....
....
"Setting bootloader env NVS_TFTP_LOAD to 1"
- Look for a string similar to this:
"Retrieving EEPROM image file nvs_5e015cf4a901151d.bin from TFTP Server"
"ERROR: TFTP of file : nvs_5e015cf4a901151d.bin failed"
- there, the string next to "nvs_" is your TWNETID i.e.5e015cf4a901151d.
- copy it the WEB and click on "get router details" or "build environmen"t. it should work and after a while, it will ask you that it can send the script directly to the router. Do so, and let the router reboot after that. You're done, once the Router comes back online, go check your environment now and marvel over the wrong settings reported by RUC, now corrected.
I hope this will help many people. Things that can help RouterTech guys enhance the firmware and tools.
RUC report for DSL-2640T before upgrade:
Router IP: 192.168.1.1
CLI is needed
Description: Dlink G624T
Board type: AR7VW
Product ID: AR7WRD
Bootloader: psbl
RAM 16.0 MB
Flash (ROM) 4.0 MB
ADAM2: No
No default env: No
Linux version: 2.4.17_mvl21-malta-mips_fp_le
Firmware build:
Firmware version: V3.02B01T01.ME-A.20080125
Firmware stamp: 20080125143616
CPU: MIPS 4KEc V4.8
DSP: 6.00.04.00
Annex: A
/proc/wlan: Yes
/usr/sbin/wlan: Yes
TIAP: Yes
TNETW: Yes
Wireless: Yes
WIFI chip: TNETW1350A
WIFI chip conf: Yes
Ports: 4
Marvell (or Marvell like): No
NSP: V3.02B01T01.ME-A.20080125
Manufacturers: D-link Corporation
RNDIS: Telogy Networks Inc
HRNDIS: Telogy Networks Inc
Warning! Core Logic (NSP) could not be read. If the Core Logic version is too low you may need to upgrade to your router manufacturer's latest firmware first.
WARNING Your router does not have a Marvell switch and so your switch may or may not be supported. Realtek and IP175C switches are supported in the TNETW1350A firmware. Your Ethernet ports may or may not function correctly with a RouterTech firmware.
Warning: The vlynq_polarity variable is missing from your environment, which may prevent the wireless part of your router from working.Try creating the variable using 'setenv vlynq_polarity high'.
/proc/interrupts
7: 408718 R4000 timer/counter [MIPS interrupt]
8: 0 unified secondary [hw0 (Avalanche Primary)]
15: 1440 serial [hw0 (Avalanche Primary)]
23: 234630 + SAR [hw0 (Avalanche Primary)]
27: 256921 + Cpmac Driver [hw0 (Avalanche Primary)]
29: 200238 vlynq0 [hw0 (Avalanche Primary)]
31: 80 + DSL [hw0 (Avalanche Primary)]
80: 200265 TNETW1150 [hw0 (Low Vlynq)]
#
/proc/modules
tiap 902760 1
tiatm 133632 1
#
logic:status/nspver
V3.02B01T01.ME-A.20080125
logic:status/has_marvell
0
RUC report for DSL-2640T after immediate upgrade:
Router IP: 192.168.1.1
Description: Dlink 2640T
Board type: AR7WRD
Product ID: AR7WRD
Bootloader: psbl
RAM 16.0 MB
Flash (ROM) 4.0 MB
ADAM2: No
No default env: No
Linux version: 2.4.17_mvl21-malta-mips_fp_le
Firmware build: RouterTech_ROHS_3.7.1B_20080723_2.60_AR7WRD_psbl
Firmware version: 3.7.1B_20080723
Firmware stamp: 20080723010941
CPU: MIPS 4KEc V4.8
DSP: 7.02.03.00
Annex: A
/proc/wlan: No
/usr/sbin/wlan: Yes
TIAP: No
TNETW: No
Wireless: Yes
WIFI chip: Not TNETW1130
WIFI chip conf: No
Ports: 4
Marvell (or Marvell like): Yes
NSP: 3.7.1B
Manufacturers: D-link Corporation
RNDIS: Telogy Networks Inc
HRNDIS: Telogy Networks Inc
WARNING
Cannot confirm the model number of the wireless chip.
The wireless access point (AP) may be disabled - ensure it is enabled and then run this program again.
/proc/wlan
-sh: cd: can't cd to /proc/wlan
/proc/modules
tiatm 137840 c0031060 96 1
avalanche_usb 65208 c0020060 96 1
logic:status/nspver
3.7.1B /usr/sbin/wlan
logic:status/has_marvell
1
RUC report for DSL-2640T(updated) after fixes, I mentioned:
Router IP: 192.168.1.1
Description: Dlink G624T
Board type: AR7WRD
Product ID: AR7WRD
Bootloader: psbl
RAM 16.0 MB
Flash (ROM) 4.0 MB
ADAM2: No
No default env: No
Linux version: 2.4.17_mvl21-malta-mips_fp_le
Firmware build: RouterTech_ROHS_3.7.1B_20080723_2.60_AR7WRD_psbl
Firmware version: 3.7.1B_20080723
Firmware stamp: 20080723010941
CPU: MIPS 4KEc V4.8
DSP: 7.02.03.00
Annex: A
/proc/wlan: Yes
/usr/sbin/wlan: Yes
TIAP: Yes
TNETW: Yes
Wireless: Yes
WIFI chip: TNETW1350A
WIFI chip conf: Yes
Ports: 4
Marvell (or Marvell like): Yes
NSP: 3.7.1B
Manufacturers: D-link Corporation
RNDIS: Telogy Networks Inc
HRNDIS: Telogy Networks Inc
/proc/interrupts
7: 61751 R4000 timer/counter [MIPS interrupt]
8: 0 unified secondary [hw0 (Avalanche Primary)]
15: 651 serial [hw0 (Avalanche Primary)]
23: 3944 + SAR [hw0 (Avalanche Primary)]
27: 2761 + Cpmac Driver [hw0 (Avalanche Primary)]
29: 1971 vlynq0 [hw0 (Avalanche Primary)]
31: 39 + DSL [hw0 (Avalanche Primary)]
80: 1971 TNETW1150 [hw0 (Low Vlynq)]
/proc/modules
tiap 900848 c004d060 96 1
tiatm 137840 c0020060 96 1
logic:status/nspver
3.7.1B /usr/sbin/wlan
logic:status/has_marvell
1
Regards,
M.H.A.Q.S.