This are read only contents of the former OpenWrt wiki system. The pages are provided for archival purposes only. Refer to https://openwrt.org/ for up-to-date information.
  • skip to content

Old OpenWrt Wiki

User Tools

  • Admin
  • Register
  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Old OpenWrt Wiki » Table of Hardware » D-Link » D-Link DIR-300(Bx)/DIR-600(Bx)
  • flags
  • Deutsch (German)
  • English
  • Español (Spanish, Mexico)
  • Français (French)
  • flags
  • flags
  • Poliski (Polish)
  • Português brasileiro (Portuguese, Brasil)
  • Русский (Russsian)
  • Tϋrkçe (Turkish)
  • flags
  • flags

toh:d-link:dir-300revb

Table of Contents

  • Clones
  • Supported Versions
  • Hardware Highlights
  • Installing of OpenWrt
    • B1, B2, B3 versions
    • B5, B6, B7 versions
    • DIR-600 B5E
  • Emergency Web Interface
    • curl instead of web browser
  • Upgrading OpenWrt
  • Hardware
    • Hardware Details
    • DIR-300/600 Revision B Images
      • DIR-300 B1
      • DIR-300 B5
      • DIR-300 B7
    • Serial
    • Unbrick
    • JTAG
    • GPIO
  • Basic configuration
  • Device specific configuration
    • Wireless LED
  • Failsafe mode
    • Boot into failsafe mode
    • What to do in failsafe mode?
  • Other Info
    • Default Router Settings
      • Model DIR-300 B1
      • Model DIR-600 B1/B2
  • SD-card slot mod
  • Help
  • Tags

D-Link DIR-300(Bx)/DIR-600(Bx)

:!: 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))

Cleanup Required!
This page or section needs cleanup. You can edit this page to fix wiki markup, redundant content or outdated information.

Clones

Known clones of this device:

  • D-Link Dir-300 B1: D-Link DIR-600 B1, D-Link DIR-600 B2.
  • D-Link Dir-300 B5: D-Link DIR-600 B5?, ZyXEL Keenetic Start?

Supported Versions

BrandModelVersionCurrent ReleaseOEM InfoForum TopicTechnical Data
D-LinkDIR-300B5, B6, B715.05.1http://¿https://forum.openwrt.org/viewtopic.php?id=50929View/Edit data
D-LinkDIR-600B115.05View/Edit data
D-LinkDIR-600B215.05View/Edit data
D-LinkDIR-600B5E15.05.1http://www.dlink.com/de/de/support/product/dir-600-wireless-n-150-home-routerView/Edit data
D-LinkDIR-300B1, B2, B315.05.1View/Edit data

Warning! Wireless support is likely to be broken in the latest versions (14.07, 15.05 and trunk). Solution: Adding an option ‘option disassoc_low_ack 0’ to /etc/config/wireless in the config wifi-iface section.

Difference beetween DIR-300 B1/B2/3 and DIR-600B1/B2 is only factory images for install via web interface in stock firmware.

Revision DIR-600 B5E is supported under openwrt with firmware DIR-610-A1!

Hardware Highlights

ModelVersionSoCCPU MHzFlash MBRAM MBWLAN HardwareWLAN2.4WLAN5.0100M portsGbit portsModemUSB
DIR-300B5, B6, B7Ralink RT5350360432Ralink RT5350b/g/n-5-NoMod
DIR-300B1, B2, B3Ralink RT3050320432Ralink RT3050Fb/g/n-5-No-
DIR-600B1Ralink RT3050320432Ralink RT3050F integratedb/g/n-5-No-
DIR-600B2Ralink RT3050320432Ralink RT3050F integratedb/g/n-5-No-
DIR-600B5ERalink RT5350360432Ralink RT5350b/g/n-5-No-

B6 + B7 - cheaper versions of B5

Installing of OpenWrt

ModelVersionCurrent ReleaseFirmware OpenWrt InstallFirmware OpenWrt UpgradeFirmware OEM Stock
DIR-300B5, B6, B715.05.1https://downloads.openwrt.org/chaos_calmer/15.05/ramips/rt305x/openwrt-15.05-ramips-rt305x-dir-300-b7-initramfs-uImage.binhttps://downloads.openwrt.org/chaos_calmer/15.05/ramips/rt305x/openwrt-15.05-ramips-rt305x-dir-300-b7-squashfs-sysupgrade.binhttp://www.dlink.com/de/de/support/product/dir-300-wireless-g-router?revision=de_revb#downloads
DIR-300B1, B2, B315.05.1https://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/rt305x/openwrt-15.05.1-ramips-rt305x-dir-300-b1-squashfs-factory.binhttps://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/rt305x/openwrt-15.05.1-ramips-rt305x-dir-300-b1-squashfs-sysupgrade.binhttp://ftp.dlink.ru/pub/Router/DIR-300_NRU/Firmware/B1_B2_B3/dir300b_v2.06_b9fe.bin
DIR-600B115.05https://downloads.openwrt.org/chaos_calmer/15.05/ramips/rt305x/openwrt-15.05-ramips-rt305x-dir-600-b1-squashfs-factory.binhttps://downloads.openwrt.org/chaos_calmer/15.05/ramips/rt305x/openwrt-15.05-ramips-rt305x-dir-600-b1-squashfs-sysupgrade.bin
DIR-600B215.05https://downloads.openwrt.org/chaos_calmer/15.05/ramips/rt305x/openwrt-15.05-ramips-rt305x-dir-600-b2-squashfs-factory.binhttps://downloads.openwrt.org/chaos_calmer/15.05/ramips/rt305x/openwrt-15.05-ramips-rt305x-dir-600-b2-squashfs-sysupgrade.bin
DIR-600B5E15.05.1https://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/rt305x/openwrt-15.05.1-ramips-rt305x-dir-610-a1-squashfs-factory.binhttps://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/rt305x/openwrt-15.05.1-ramips-rt305x-dir-610-a1-squashfs-sysupgrade.binhttp://www.dlink.com/de/de/support/product/dir-600-wireless-n-150-home-router

B1, B2, B3 versions

Via web interface

  • Download factory image.
  • Log in to router web interface and select the firmware image.
  • Sit and wait while it flashes. It will reboot and be accessible at http://192.168.1.1.

:!: NOTE: 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).

B5, B6, B7 versions

Use the emergency web interface.

:!: NOTE: Routers with new firmwares do not accept the current image through the emergency room and are therefore not flashable this way. To circumvent this, you should downgrade u-boot before flashing. Using curl instead of web browser may be worth trying.

DIR-600 B5E

Have a look at this blog: http://diy.viktak.com/2016/02/installing-openwrt-on-d-link-dir-600.html

  1. First you have to downgrade the u-boot to get a emergency web interface. To do so you can use the firmware created only for this purpose from: https://www.dropbox.com/s/jfmqx2qlrhe0oje/dir600b_v2.17_bbox-v1.19.1.bin?dl=0
  2. Use the emergency web interface on 192.168.0.1.
  3. Upload the …-ramips-rt305x-dir-610-a1-squashfs-factory.bin firmware.
  4. After this your OpenWrt is running under 192.168.1.1.

:!: NOTE: Suggested firmware openwrt-ramips-rt305x-dir-610-a1-*.bin leads to a kernel panic.
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
The problem exists in OpenWrt 14.07, 15.05 and 15.05.1.
The reason is the lacking option
CONFIG_MTD_SPLIT_SEAMA_FW=y
in target/linux/ramips/rt305x/config-3.18 resp. config-3.10.
This means you have to add the line above and build OpenWrt from the sources.
As of August 2017 Debian 8 Jessie will work, latest versions will fail due to perl incompatibility.

Emergency Web Interface

:!: NOTE: New D-Link firmwares may contain new u-boot bootloader, so you may have problems with installing via 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 or http://192.168.1.1 for B5. 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 for the DIR-600 or DIR-300 B series. Download links see above. If you're flashing from the original D-Link firmware, use the factory builds.

:!: 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.

  • To access the emergency web interface to flash the new firmware first unplug the power cable from the router, press and hold the reset button, plug the power cable back in while still holding the reset button and hold it for at least 5 seconds until the orange LED starts blinking, 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 (1 to 4) on the router and the other end to your computers Ethernet port.
  • Set your computers Ethernet IP to: 192.168.0.2 and the Subnet to 255.255.255.0 (for B5 it's 192.168.1.2 and Subnet 255.255.255.0).

:!: NOTE: Disable any other interfaces present on your computer before proceeding, as example wireless interfaces, to minimize confusion.

  • Open a web-browser on your computer and access the emergency web interface at http://192.168.0.1 or http://192.168.1.1 for B5.
  • Choose 'browse' and select your previously downloaded firmware file (.bin file extension).
  • Press 'upload' and watch the timer countdown from 90 seconds. At the end of the countdown the webpage will try to refresh but will fail.
  • At this point set your computers network interface to obtain an IP address automatically (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.

If you can't connect via your browser connect via SSH to 192.168.1.1, set a password (optional for now but recommended), enable WiFi, connect your routers WAN-Port to an existing network of yours, connect to the now open Wireless Network called "OpenWrt", SSH into 192.168.1.1 again, do opkg update and opkg install luci to get a web interface.

:!: NOTE: The router might have too little memory to install LuCI successfully.

curl instead of web browser

:!: NOTE: Upload may fail with modern browsers like Chrome, Safari, etc. If upload page times out or router restarts, use curl instead, i.e.:

curl --form filename=@openwrt-*-squashfs-factory.bin --form post=Upload\ firmware\ NOW 192.168.0.1

Found here http://forums.dlink.com/index.php?topic=11001.msg249218#msg249218.

Upgrading OpenWrt

If you have already installed a version of OpenWrt and you wish to upgrade your installation you can use sysupgrade.

  • First upload the new firmware on your device.
  • Then flash it with sysupgrade.

scp openwrt-*-squashfs-sysupgrade.bin root@192.168.1.1:/tmp/
sysupgrade /tmp/openwrt-*-squashfs-sysupgrade.bin
If you wish to reset your configuration you can add -n to sysupgrade.

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

Details for DIR-300 B7

Architecture: MIPS
Status: supported
Vendor: Ralink
Bootloader: U-Boot
System-On-Chip: RT5350 WiSoC
CPU/Speed MIPS24KEc@360 Mhz w/ 32KB I cache/16KB D cache
Flash-Chip: ?
Flash size: 4096 KiB
RAM: ESMT M12L2561616A
RAM: 32 MiB
Wireless: Ralink RT5350 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

DIR-300/600 Revision B Images

DIR-300 B1

Case:
dir-300b1_case-top.jpg dir-300b1_case-bottom.jpg

PCB:
D-link DIR-300 REV.B

DIR-300 B5

PCB top:

PCB bottom:

DIR-300 B7

PCB top:

Serial

D-link DIR-300 REV.B Serial

[JP1]
1 2 3 4 (square)
Tx GND VCC RX

See: http://infodepot.wikia.com/wiki/D-Link_DIR-300_vB1

3.3V TTL Levels - 57600 Baud

Unbrick

This procedure is for DIR-600 B5E.

  1. Solder the pins RX,GND,TX as shown above. Don't use VCC.
  2. Connect a serial cable port.serial.cables
  3. Start a terminal programm, for example "minicom -D /dev/ttyUSB0 -b 57600"
  4. Copy a working D-Link firmware or xxx-squashfs-factory.bin to /mydir.
  5. Start a tftp server on your PC, for example "atftpd –daemon /mydir"
  6. Power on the router.
  7. For 1s you can see the U-Boot bootloader menu, see below
  8. Choose 2 in the right moment, then Y
  9. You will be asked for IP of Router and PC and the name of the firmware image.
  10. The router will restart after 2 minutes and try to start the new image.
   Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
   A: Load Runtime code then write to Flash via Serial.

JTAG

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

For more JTAG details see:

  • port.jtag
  • JTAG tools

GPIO

You can control some of the GPIO-LEDs by writing "1" (on) or "0" (off) to the specific GPIO-Files. Note: Since Chaos Calmer (15.05) you should use d-link instead of dir-600-b2.

Wifi-LED:

echo "1" > /sys/class/leds/rt2800soc-phy0::radio/brightness

Power LED:

echo "1" > /sys/class/leds/dir-600-b2:amber:status/brightness

Green Power LED (Same LED as the previous, but different color):

echo "1" > /sys/class/leds/dir-600-b2:green:status/brightness

WPS LED:

echo "1" > /sys/class/leds/dir-600-b2:blue:wps/brightness 

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

Extroot pivot-root for SD mod DIR-300 B1

Help

  • https://forum.openwrt.org/viewtopic.php?id=28010
  • https://forum.openwrt.org/viewtopic.php?id=19281

Tags

FastEthernet, 5Port, integrated, 1WNIC, 802.11bgn, 1Ant, DetachableAntenna, 32RAM, 4Flash, 8Flash, MIPS, 24KE, RT3050, rt5350, winbond, ramips, wlan
toh/d-link/dir-300revb.txt · Last modified: 2017/08/15 11:49 by anbro

Page Tools

  • Show pagesource
  • Old revisions
  • Backlinks
  • Rename Page
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
CC Attribution-Noncommercial-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki