D-Link DIR-300(B1)/DIR-600(B1&B2)

:!: Note: See D-Link DIR-300 for D-Link DIR-300 Rev.A1 (different hardware (HW))
:!: Note: See D-Link DIR-600 for D-Link DIR-600 Rev.A1 (different hardware (HW))
:!: Note: See D-Link DIR-300/DIR-600 for rev b5 hardware

Hardware Highlights

CPU Ram Flash Network USB Serial JTag
RaLink RT288x/RT305x WiSoC@320 MHz 32MiB 4MiB 5 10/100E No Yes, internal TTL solder pads No

Installing of OpenWrt

These devices use the "ramips" target of OpenWRT.

As of July 2013 only access via the router's emergency web interface is required to install OpenWRT on this device. The normal web interface might complain about invalid image files and thus not work (as seen with vendor firmware version 2.14).

How to access the emergency web interface is described below.

After you have uploaded an OpenWRT firmware image via the emergency web interface and waited 90 seconds the OpenWRT on the router should be running and accessibla with your webbrowser under http://192.168.1.1.

Upgrading OpenWrt

If you have already installed a version of openwrt and you wish to upgrade your installation

  • uploaded the new firmware from the LAN with 'scp openwrt-*-squashfs-sysupgrade.bin root@192.168.1.1:/tmp/'.
  • flash it on the router with 'sysupgrade /tmp/openwrt-*-squashfs-sysupgrade.bin'.

FIXME

Hardware

Hardware Details

Details for DIR-300 B1

Architecture: MIPS
Status: trunk (>R29612)
Vendor: Ralink
Bootloader: U-Boot
System-On-Chip: RT288x/RT305x WiSoC
CPU/Speed MIPS24KEc@320 Mhz w/ 16KB I cache/16KB D cache
Flash-Chip: Spansion S29GL032N90TFI04
Flash size: 4096 KiB
RAM: Winbond W9825G6JH-6
RAM: 32 MiB
Wireless: Ralink RT3050F 2.4ghz 802.11bgn
Ethernet: integrated 5 x10/100E w/ vlan support swconfig
Internet: no
USB: no
Power: external 5V 1.2A
Serial: Yes
JTAG: No
The information written on the main Ralink chip

Ralink
RT3050F
P3V1470T0
1053ST
FIXME Link to datasheet

The information written on the WiFi Ralink chip

FIXME

Ralink
...
FIXME Link to datasheet

The information written on the PSC Ram chip

winbond
W9825G6 JH-6
10301
60172U700ZZ
FIXME Link to PSC datasheet

The information on the Flash chip

WRGN23DE.B1G
S29GL032N90TFI04
©06 SPANSION
FIXME Link to Datasheet

Details for DIR-600 B1/B2

Model Status Target(s) Platform CPU Speed (MHz) Flash (MB) RAM (MB) Wireless NIC Wireless Standard Detachable Antennea Wired Ports VLAN Config USB
DIR-600 B1/B2 trunk (>R29612) ramips RaLink RT288x/RT305x WiSoC MIPS24KEc@320 4 32(3) Ralink RT3050F 802.11b/g/n 1 out of 1 5 10/100E Yes Possible 2.0 x1

DIR-300/600 Revision B Images

DIR-300 B1 Top PCB

D-link DIR-300 REV.B

DIR-300 B1 Case

dlink-dir300b1-case-top.jpg

dlink-dir300b1-case-bottom.jpg

Serial

D-link DIR-300 REV.B Serial


  |                                          |
  |                                          | 
  |                             JP1          |
  |                            4___3_2_1     |
  |                           [⊡___o_◊_o]    | 
  |                           _______________|
  |                          |               |
  |                          |               |      
  |                          |               |                              
  |                          | (s i l v e r) |             
  |                          |               |
  |                          |  S h i e l d  |
  |__________________________|_______________|               
                                     

    PWR      WAN  WLAN LAN4 LAN3 LAN2 LAN1
____|*|______|*|__|*|__|*|__|*|__|*|__|*|_________


[JP1] pinout:

3.3V TTL Levels - 57600 Baud
1: Tx
2: GND (diamond)
3: Vcc
4: Rx (square)
See: http://infodepot.wikia.com/wiki/D-Link_DIR-300_vB1 Serial internal TTL solder pads pinout

JTAG

The DIR-300/600 Rev. B does not appear to have a JTAG interface.

For more JTAG details see:

Basic configuration

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless etc.

Device specific configuration

Wireless LED

On a basic installation the wireless LED does not blink if data is transmitted and/or received. To fix this simply append this block to /etc/config/system:

option 'led' 'wlan_led'
	option 'name'		'WLAN'
	option 'sysfs'		'rt2800pci-phy0::radio'
	option 'trigger'	'netdev'
	option 'dev'		'wlan0'
	option 'mode'		'link tx rx'

More detailed information about LEDs can be found here.

Failsafe mode

generic.failsafe

If you forgot your password, broke one of the startup scripts, firewalled yourself out, or corrupted the JFFS2 partition, you can get back in by using OpenWrt's failsafe mode.

Boot into failsafe mode

  • Unplug the router's power cord.
  • Connect the router's LAN1 port directly to your PC.
  • Configure your PC with a static IP address between 192.168.1.2 and 192.168.1.254. Eg. 192.168.1.2 (gateway and DNS is not required).
  • Plug the power on and wait for the DMZ LED to light up.
  • While the DMZ LED is on immediately press any button (Reset and Secure Easy Setup will work) a few times .
  • If done right the DMZ LED will quickly flash 3 times every second.
  • You should be able to telnet to the router at 192.168.1.1 now (no username and password)

What to do in failsafe mode?

NOTE: The root file system in failsafe mode is the SquashFS partition mounted in readonly mode. To switch to the normal writable root file system run mount_root and make any changes. Run mount_root now.

  1. Forgot/lost your password and you like to set a new one

passwd

  1. Forgot the routers IP address

uci get network.lan.ipaddr

  1. You accidentally run 'ipkg upgrade' or filled up the flash by installing large packages (clean the JFFS2 partition and start over)

mtd -r erase rootfs_data If you are done with failsafe mode power cycle the router and boot in normal mode.

Other Info

For connection of STB, or replacement of one of LAN ports on WAN (in case of faulty WAN) we involve the 4th port of a router of dir300b1 - in other port won't work! Example /etc/config/network

 config switch_vlan
        option device 'rt305x'
        option vlan '1'
        option ports '1 2 3 6t'

config switch_vlan
        option device 'rt305x'
        option vlan '2'
        option ports '0 4 6t'

Default Router Settings

Model DIR-300 B1

  • IP : 192.168.0.1
  • Username : "admin"
  • Password : "" (leave field blank)
  • Polarity : ⊕―כּ―⊖
  • Input : 5V / 1.2A
  • FCC ID : KA2DIR300B1

Model DIR-600 B1/B2

FIXME

SD-card slot mod

There is a working mod to add a SD-card slot to your DIR-300b1. Read post: https://forum.openwrt.org/viewtopic.php?pid=183660#p183660

Emergency Web Interface

The DIR-600 and DIR-300 B routers have an emergency HTTP web interface that is accessible at http://192.168.0.1. With this you can upload firmware if you accidently locked yourself out of the router or broke the installed firmware.

First, download a pre-compiled build (as of 30NOV13) for the DIR-600 or DIR-300 B series. These can be found here:

http://downloads.openwrt.org/attitude_adjustment/12.09/ramips/rt305x/

NOTE: Use the correct build for your hardware version! This can be found on the router itself or on the box it came in. e.g.: H/W Ver: B2.

If you're flashing from D-Link firmware, use the 'factory' builds.

To access the emergency web interface for flashing, unplug the power cable from the router, depress and hold the reset button in whilst simultaneously plugging in the power cable for at least five seconds, then release the reset button.

Another method to access the emergency web interface is to hold the reset button for 30-45 seconds with power plugged in.

Attach a network cable to one of the LAN ports on the router and the other end to your computers Ethernet interface. Set Ethernet interface I.P address to: 192.168.0.2 and subnet of: 255.255.255.0

NOTE: Disable any other interfaces present on your computer before proceeding; such as wireless interfaces.

Open a web-browser on your computer and access the emergency web interface at http://192.168.0.1.

Choose 'browse' and select your previously downloaded firmware file (.bin file extension) Then press 'upload' and watch the timer countdown from 90 seconds. At the end of the countdown the webpage will trying and refresh only to fail at this point you should set your computers network interface to obtain an i.p address automatically via DHCP and it should obtain a new address in the 192.168.1.X range.

You can now login to your router flashed with OpenWRT via your web-browser at: http://192.168.1.1

Tags

Help

Back to top

toh/d-link/dir-300revb.txt · Last modified: 2014/05/08 16:19 by mipa