Reanimacja routera D-Link DI-514

user: adam_grzy@interia.pl

Witam, czy ktos moze mi pom=F3c, na ftp D-Linka znalazlem nowy firmwar 1.05 i pr=F3bowalem zaladowac go do swojego DI-514. Niestety po upgrade router nie odpowiada. Co teraz z tym mozna zrobic? Ile moze kosztowac naprawa? Z g=F3ry dziekuje za pomoc.=20 Pozdrawiam=20 Adam

Re: Reanimacja routera D-Link DI-514

user: ?UTF-8?B?UGlvdHIgVGFqZHXFmw

adam_grzy@interia.pl wrote: > Witam, > czy ktos moze mi pomóc, > na ftp D-Linka znalazlem nowy firmwar 1.05 i próbowalem zaladowac Być może to Ci pomoże, fragment tekstu który znalazłem u jednego rosjanina piszącego drivery do G604T: All D-Link modems (and not only) have service FTP server ADAM2 with the fixed IP address 10.8.8.8(for DSL-G604T - 10.48.88.66). In Linux you can simply start up eth0:1 subinterface, having root privileges of course: [root@mcmcc root]# ifconfig eth0:1 10.8.8.7 up Next i strated ftp with the IP 10.8.8.8: [igor@mcmcc igor]$ ftp 10.8.8.8 After that I turned on the modem keeping reset button pressed (but it is not so necessary - you just need to establish ftp connection while the modem early start) and then released it. In couple seconds I received the invitation and proceeded with the recovery process as it is listed below: Connected to 10.8.8.8. 220 ADAM2 FTP Server ready. 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (10.8.8.8:igor): adam2 331 Password required for adam2. Password: adam2 230 User adam2 successfully logged in. Remote system type is UNIX. ftp> debug Debugging on (debug=1). ftp> bin ---> TYPE I 200 Type set to I. ftp> quote MEDIA FLSH ---> MEDIA FLSH 200 Media set to FLSH. ftp> put fs.img "fs.img mtd0" local: fs.img remote: fs.img mtd0 ---> PASV 227 Entering Passive Mode (10,8,8,8,162,0). ---> STOR fs.img mtd0 150 Opening BINARY mode data connection for file transfer. 226 Transfer complete. 1318920 bytes sent in 30.3 seconds (54 Kbytes/s) ftp> quote REBOOT ---> REBOOT 221-Thank you for using the FTP service on ADAM2. 221 Goodbye. ftp> quit ---> QUIT Some comments: I enabled debug mode for more obviousness. Be sure you enabled BINARY mode with the "bin" command right before typing "quote MEDIA FLSH". Now let's talk bout the MTD table, i.e. partitions on the flash disk: mtd0: FS image (to make it more simple I renamed it to fs.img which uploaded to the modem) mtd1: kernel image mtd2: service ftp server ADAM2 in person ;) mtd3: Environment + config.xml Environment is in the same place where config.xml is, i.e. in the beginning right before config.xml. Besides this is the reason I do not recommend to flash config.xml in such a way otherwise you can get environment area damaged. Writing process of the config.xml in D-links is not direct to mtd3 - to /dev/ticfg device which makes a gap of the first block in mtd3. (с) McMCC, 2004 -------------- P.S. While I examined and experimented on the kernel I made this recovery process very often. But I didn't hold RESET because the device activated ADAM2 service ftp by itself. Kernel image should be uploaded to mtd1 definitely! Not to any other device! ADAM2 is similar to BIOS program and has integrated FTP-server, console and can work with BOOTP. Lot's of useful info was taken here: http://www.akk.org/~enrik/fbox/recovery.txt ---- Environment area was damaged --- http://www.dlink.ru/phorum/viewtopic.php?t=6548 Q. Right after entering "put fs.img "fs.img mtd0" command I get this: 550: environment variable not set. put fs.img: server said: environment variable not set. Cannot open local file fs.img mtd0 for reading (errno = 2). put fs.img mtd0: could not open file. WTF? Why? I despond...:(:(:( A. It's simple enough - you have damaged environment area. And there is only one way to recover it - using telnet with the port 21 of 10.8.8.8(For DSL-G604T - 10.48.88.66): $ telnet 10.8.8.8 21 Trying 10.8.8.8... Connected to 10.8.8.8 Escape character is '^]'. 220 ADAM2 FTP Server ready. USER adam2 (entered by user) 331 Password required for adam2. PASS adam2 (entered by user) 230 User adam2 successfully logged in. Some details concerning commands: GETENV - To get info about "key" For exmple: GETENV mtd0 The response should be such: mtd0 0x900a0000,0x903f0000 If you don't get it - then be sure that environment area is damaged. SETENV , - to set the value of "key UNSETENV - Deletes key It's advisable to make sure of which values are absent in "enviroment". If not all present then remember which are not. Not avoid typing them see the full list of values for 500T: memsize 0x01000000 flashsize 0x00400000 modetty0 38400,n,8,1,hw modetty1 38400,n,8,1,hw bootserport tty0 cpufrequency 150000000 sysfrequency 125000000 bootloaderVersion 0.22.02 ProductID AR7DB HWRevision Unknown SerialNumber none my_ipaddress 10.8.8.8 maca 00:0X:XX:XX:XX:D2 prompt Adam2_AR7DB firstfreeaddress 0x9401d328 req_fullrate_freq 125000000 mtd0 0x900a0000,0x903f0000 mtd1 0x90010000,0x900a0000 mtd2 0x90000000,0x90010000 mtd3 0x903f0000,0x90400000 autoload 1 usb_vid 0x0 usb_pid 0x0 usb_man N/A usb_prod N/A Here "key"s go the first. Their values are after the gap. MAC address of your device can be found on the sticker which is between ADSL and LAN ports. If "enviroment" is entirely damaged then you have to enter everything. Above all is the fact of "SETENV command successful" response for entering every parameter. Here are commands to be entered: SETENV mtd3,0x903f0000,0x90400000 SETENV memsize,0x01000000 SETENV flashsize,0x00400000 SETENV modetty0,38400,n,8,1,hw .... (etc) SETENV mtd0,0x900a0000,0x903f0000 SETENV mtd1,0x90010000,0x900a0000 SETENV mtd2,0x90000000,0x90010000 Above are entered parameters for mtd3 .... (etc.) SETENV usb_prod,N/A And finally do this command: REBOOT And get this answer: 221-Thank you for using the FTP service on ADAM2. 221 Goodbye. Connection closed by foreign host. After rebooting everything should work ok. Recently I proceeded with everything with the device of my friend which didn't boot. But if you don't clearly understand what is written above then I can only advise not to do anything by yourself and to bring the device to warranty service center (not the fairest way, of course?) ================================ Mokruchin I.V. aka McMCC mcmcc@mail.ru ================================ -= (c)2005 Translated by Afad =-