|
FON Fonera + 安装 DD_wrt 固件:
准备工作:
1,DD_wrt 固件:linux.bin
2,Tftpd32软件:http://tftpd32.jounin.net/
3,PuTTY 软件: http://wrc.gro.clinux.org/putty/
4,RS232-TTL电缆
安装固件:
1,连接RS232-TTL电缆到Fonera +,PC上打开PuTTY ,设定好COM属性,9600-8-N-1 and no flow control.
2,解压缩Tftpd32软件,并把DD_wrt 固件 linux.bin 拷贝到Tftpd32目录中,并打开Tftpd32软件。
3,Fonera + LAN口(黑色)网线连接PC,并设置pc网卡地址为 192.168.1.117(TFTP服务器地址)。
4,连接Fonera +电源,在PuTTY终端窗口中应能看到以下启动内容:
+Ethernet eth0: MAC address **:**:**:**:**:**
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.254
RedBoot(tm) bootstrap and debug environment [ROMRAM]
OpenWrt certified release, version 1.1 - built 22:32:28, May 7 2007
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Board: FON 2201
RAM: 0x80000000-0x81000000, [0x80040290-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
5,在出现
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot>
时两秒内按下键盘上 Ctrl + c键,终止RedBoot继续运行,键入 fis init 初始化FIS目录,将所有的flash空间初始化。
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
6,键入 fis list ,显示FIS(Flash Image System)中当前的所有映象文件。
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000
FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000
RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000
7,设置或改变系统使用的IP地址,
使用格式:ip_address [-l local_ip_address] [-h server_ip_address] [-d DNS_server_ip_address]
本例为: ip_address -l 192.168.1.254/24 -h 192.168.1.117 (192.168.1.117 就是第3步设定的 PC TFTP服务器地址)。
RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.117
IP: 192.168.1.254/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.117
8,键入 load -r -v -b 0x80041000 linux.bin 下载数据到目标系统RAM中,(-r 下载未处理的数据到RAM,-v 下载过程显示进度, -b 数据下载到RAM的地址)。
RedBoot>load -r -v -b 0x80041000 linux.bin
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x802e3fff, assumed entry at 0x80041000
9,键入 fis create linux 在FIS(Flash Image System)目录中创建一个映象,将当前RAM中的数据写入FLASH存储器中。因此,在使用该命令之前,映象文件数据必须已经保存在RAM中。
特别注意,此过程会耗时数十分钟请耐心等待!直至 RedBoot> 出现为 写入FLASH完成。
RedBoot> fis create linux
... Erase from 0xa8030000-0xa8652000: ................................................................................
... Program from 0x80040400-0x80662400 at 0xa8030000: ........................................................
... Erase from 0xa87e0000-0xa87f0000: ................................................................................
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .........................................................
RedBoot>
10,键入 fconfig ,对已保存在flash中的配置选项进行管理和重配置,一直回车到最后选择y回车保存redboot配置到flash。
RedBoot> fconfig
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>> fis load -l linux
>> exec
>>
Boot script timeout (1000ms resolution): 2
Use BOOTP for network configuration: false
Gateway IP address:
Local IP address: 192.168.1.1
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.1.254
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
11,键入 reset,重新启动 Fonera + 。
RedBoot> reset
... Resetting
12, 启动 DD_wrt 过程:
+Ethernet eth0: MAC address 00:18:84:a5:6f:28
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.254
RedBoot(tm) bootstrap and debug environment [ROMRAM]
OpenWrt certified release, version 1.1 - built 22:32:28, May 7 2007
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Board: FON 2201
RAM: 0x80000000-0x81000000, [0x80040290-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> fis load -l linux
Image loaded from 0x80041000-0x802d0c58
RedBoot> exec
Now booting linux kernel:
Base address 0x80030000 Entry 0x80041000
Cmdline : .......................................
现在你的 FON Fonera + 安装 DD_wrt 固件已经成功,在 IE 浏览器栏中键入 http://192.168.1.1/ 即可打开 DD_wrt 的 Wed配置管理页面, 初始路由器用户名:boot ,路由器密码:admin |
|