D-Link 615 C2 路由器固件烧写与配置

D-Link615 C2  

路由器当前固件信息:

|---------------------------------------------------------------------------------------|

| Gargoyle version1.4.7    | OpenWrt backfire branch         |

| Gargoylerevision 5783343 | OpenWrt revision r30752         |

| Built February29, 2012   | Target  ar71xx/ath9k            |

|---------------------------------------------------------------------------------------|

路由器硬件信息

http://wiki.openwrt.org/toh/d-link/dir-615

Revisions

CPU

Ram

Flash

Network

Gigabit

USB

Serial

JTag

C1, C2

Atheros

32MB

4MB

4x1

No

Yes*

Yes

No

 

Revisions C1/C2:

Architecture: MIPS

Bootloader: U-Boot

System-On-Chip: Atheros AR9130

CPU Speed: 400 Mhz

Flash-Chip: W25x32vf1g

Flash size: 4 MiB

RAM-Chip: Winbond W9425G6EH-5

RAM size: 32 MiB (4M x 4 x 16bit)

Wireless: AR9102 802.11n Radio

Ethernet: AR8216 6-port switch

USB: 1x header on PCB, unpopulated

Serial: Yes

JTAG: Yes

Circuit: Dir615C1


 

固件选择与下载:

http://wiki.openwrt.org/doc/hardware/soc#ar71xx

ar71xx :

QualcommAtheros AR7xxx, AR9xxx and QCA9xxx boards

 

从路由器硬件信息System-On-Chip: Atheros AR9130 看,应该选择ar71xx类型的固件。

下载:

Gargoyle  (基于Openwrt, 特色Qos,推荐):

 http://www.gargoyle-router.com/download.php

Download: Firmware Images;

Architecture: Atheros AR71XX;

Branch: 1.4(stable); //experimental 1.5.10版存在wifi常掉线问题;experimental 1.5.11版不能保存静态ip设置。

Version: 1.4.7

D-link官方:  http://tsd.dlink.com.tw/downloads2008detail.asp

Quick Find选择DIR, 615.选择DIR-615 C2 FW v3.02CN (for China)。

或者http://www.dlink.com.cn/support/Apps/选择型号下载。特别注意硬件版本。

 

DD-WRT:  http://dd-wrt.com/site/support/router-database查找dir 615,选择C2版。

 

Openwrt:  http://downloads.openwrt.org/attitude_adjustment/12.09-rc2/ar71xx/generic/

  

浏览器中按Ctrl+F查找dir-615-c1,一般选择factory版直接烧。openwrt-ar71xx-generic-dir-615-c1-squashfs-factory.bin

 

查看Factory 版与Sysupgrade版区别:http://wiki.openwrt.org/doc/howto/obtain.firmware.download


 

烧写固件步骤:

http://wiki.openwrt.org/toh/d-link/dir-615#с1с2.revision

Installation

 

Rev. C1 and E4

Installation isfairly straight forward for this router, you will need to access the D-Linkrecovery console with the steps below.

 

1. As per the noteat http://www.dd-wrt.com/wiki/index.php/DIR-615C, "If your dlink 615 C1 is at f/w 3.12 or 3.11 you may have to revert itto 3.10". The older firmware is available from D-Link support.

 

2. Set a static IPon your PC to '192.168.0.2'.

 

3. Press and holdthe reset button until the power LED starts blinking orange (usually takes ~45seconds). Or, hold down the reset button while powering on the router, this ismuch quicker and only takes 5-15 seconds.

 

4. Go to'http://192.168.0.1' from your PC web browser. (Note: most modern browsersdon't work, see below, Firefox 13 portable version is known to work)

"Browse"and select the OpenWrt firmware (e.g.'openwrt-ar71xx-dir-615-c1-squashfs-factory.bin').

Let router flashthe image, don't worry if it reboots before it reaches 100%. If the page loadsforever or times out, your browser is unsupported. See below.

5. obtain new IPfrom the router via DHCP and follow firstlogin

 

 

 

简述:

1.    电脑设置

静态IP:192.168.0.2

子网掩码:255.255.255.0

默认网关:192.168.0.1

 

2. 断电开机,按住路由器重置键直到电源灯呈橙色闪烁状态(大约需要45秒),松开。

或者运行状态时按重置键直到电源灯呈橙色闪烁状态,这个过程会更快些,只需5~15秒。

 

3. 电脑浏览器打开192.168.0.1.选择固件如gargoyle_1.4.7-ar71xx-dir-615-c1-squashfs-factory.bin 上传,直到100%,路由器会自动重启。

4.  电脑设置动态获取IP。

基本联网设置

浏览器打开http://192.168.1.1/ 设置。

 

http://wiki.openwrt.org/doc/howto/firstlogin

There is no preset password in OpenWrt! Youneed to set one at your first login per telnet or the WebUI.

 

Gargoyle默认路由设置

IP Address:192.168.1.1

Password: password   (Web Interface & SSH)

SSH User: root

 

Qos设置

参考:

http://www.gargoyle-router.com/wiki/doku.php?id=qos

 

http://blog.csdn.net/zyphio/article/details/8554594

http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=124793 

 


 

添加计划任务(Cron Jobs):

http://www.gargoyle-router.com/wiki/doku.php?id=wireless_schedule&s[]=cron

1、查看crontab定时执行任务列表

crontab -l

2、添加crontab定时执行任务

crontab –e  //或者 crontab -e –u root

 

注:Cron Format 分隔符用空格或者TAB都可以。

#  *     *     *   *     *     command to execute

# ┬    ┬   ┬    ┬   ┬

# │    │   │    │   │

# │    │   │    │   │

# │    │   │    │   └───── day of week (0 - 6) (0 to 6 are Sunday toSaturday, or use names)

# │    │   │    └────────── month (1 - 12)

# │    │   └─────────────── day of month (1 - 31)

# │    └──────────────────── hour (0 - 23)

# └───────────────────────── min (0 - 59)

 

cron启动后每过一份钟读一次这个文件,检查是否要执行里面的命令。因此此文件修改后不需要重新启动cron服务。

 

立即生效(手动load更新)crontab /var/spool/cron/crontabs/root

重启cron方法:先停止,再启动。

/etc/init.d/cronstop

/etc/init.d/cronstart

 

查看cron是否在运行:ps |grep cron  。

设置每天早上6点半启用wifi,晚上11点半关闭无线:

30 6 * * * wifi up

30 23 * * *wifi  down

Cron设置参考:

http://ju.outofmemory.cn/entry/2109

http://blog.sina.com.cn/s/blog_541a3cf1010005xt.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值