пʼятницю, 12 грудня 2008 р.

DIR-400 Повернення до офіційної прошивки.


Сталось так,що використовувати D-Link Dir-400 в якості роутера відпала необхідність, і я вирішив повернутися з DD-WRT до офіційної прошивки.
На форумі DD-WRT я знайшов інструкцію по поверненню назад http://www.dd-wrt.com/phpBB2/viewtopic.php?p=190818 . Прочитавши статтю, я так і не зміг зрозуміти де взяти необхідні для цього файли (First you need 2 files: vmlinux.bin.l7 and rootfs. (See attachment)). Attachment'у я небачив. Небачив поки не зареєструвався:). Скачавши файл dir-400_v1_00.zip (в середині були необхідні vmlinux.bin.l7 and rootfs) і дотримуючись наступної інструкції я повернувся до старої офіційної прошивки.
I restored the original firmware with putty, redboot and tftpd.
1.First you need 2 files: vmlinux.bin.l7 and rootfs. (See attachment). Also putty and tftp server.
2.Put vmlinux.bin.l7 and rootfs to root directory of tftp server and start it.
3.Make IP address of your computer is 192.168.0.99 (or or any from range 192.168.0.2-192.168.0.254). And connect your computer network card to the router's WAN port.
4.Run putty, set connection type to telnet. IP: 192.168.0.1, Port: 9000.
5.Start ping 192.168.0.1 -t
6.Restart router with power-off - power-on.
7.After second successful ping reply connect putty. If not works try from step 6 again.
8.putty log:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2008.07.08 23:40:49 =~=~=~=~=~=~=~=~=~=~=~=
== Executing boot script in 0.060 seconds - enter ^C to abort
^C
RedBoot> ip_address -h 192.168.0.99 press Enter
IP: 192.168.0.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.0.99
RedBoot> fis init press Enter
About to initialize [format] FLASH image system - continue (y/n)? y press Enter
*** Initialize FLASH Image System
And a descriptor for the configuration data size = 10000
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .

RedBoot> load -r -b 0x80041000 vmlinux.bin.l7 press Enter
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x800d0fff, assumed entry at 0x80041000
RedBoot> fis create vmlinux.bin.l7 press Enter
... Erase from 0xbfc40000-0xbfcd0000: .........
... Program from 0x80041000-0x800d1000 at 0xbfc40000: .........
prog_ok
flash_addr = 0xbfc40000
mem_addr = 0x80041000
entry_addr = 0x80041000
length = 0x90000
img_size = 0x90000
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> load -r -b 0x80041000 rootfs press Enter
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x80350fff, assumed entry at 0x80041000
RedBoot> fis create -l 0x310000 -f 0xbfcd0000 -e 0x00000000 -r 0xbfcd0000 rootfs press Enter
... Erase from 0xbfcd0000-0xbffe0000: .................................................
... Program from 0x80041000-0x80351000 at 0xbfcd0000: .................................................
prog_ok
flash_addr = 0xbfcd0000
mem_addr = 0xbfcd0000
entry_addr = 0x0
length = 0x310000
img_size = 0x310000
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> fis list press Enter
Name FLASH addr Mem addr Length Entry point
RedBoot 0xBFC00000 0xBFC00000 0x00030000 0x00000000
Config 0xBFC30000 0xBFC30000 0x00010000 0x00000000
vmlinux.bin.l7 0xBFC40000 0x80041000 0x00090000 0x80041000
rootfs 0xBFCD0000 0xBFCD0000 0x00310000 0x00000000
FIS directory 0xBFFE0000 0xBFFE0000 0x0000F000 0x00000000
Calibration 0xBFFF0000 0xBFFF0000 0x00010000 0x00000000
RedBoot> fconfig press Enter
Run script at boot: true press Enter
Boot script:
.. fis load -l linux
.. exec
Enter script, terminate with empty line
>> fis load -l vmlinux.bin.l7 press Enter
>> go press Enter
>> press Enter
Boot script timeout (1000ms resolution): 2 press Enter
Use BOOTP for network configuration: false
Gateway IP address: press Enter
Local IP address: 192.168.0.1 press Enter
Local IP address mask: press Enter
Default server IP address: 192.168.0.100 press Enter
Console baud rate: 9600 press Enter
GDB connection port: 9000 press Enter
Force console for special debug messages: false press Enter
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y press Enter
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> reset press Enter
(с) tklim from http://www.dd-wrt.com/phpBB2/viewtopic.php?p=190818

vmlinux.bin.l7 http://www.box.net/shared/v71hny91bu
rootfs http://www.box.net/shared/d79smhr44r