D-Link DIR-300(B1)/DIR-600(B1&B2)
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
The build script is currently not run on trunk so no official binary is available.
Build from trunk as the latest release branch 'backfire' doesn't have the build target files. For more information about building see the build documentation.
svn co svn://svn.openwrt.org/openwrt/trunk/ cd trunk # Build configuration. From 'make menuconfig'; Target system: Ralink RT288x/RT3xxx, Subtarget: RT305x based boards echo CONFIG_TARGET_ramips=y >.config echo CONFIG_TARGET_ramips_rt305x=y >>.config echo CONFIG_TARGET_ramips_rt305x_Default=y >>.config make defconfig make
When the build process is done (yes, this could take several hours), flash the appropriate generated (openwrt-*-squashfs-factory.bin) file from web interface or from recovery mode (turn off; hold reset; turn on; go to http://192.168.1.1 or http://192.168.0.1). Use the file matching your router model (path: "trunk/bin/ramips/" IE: openwrt-ramips-rt305x-dir-600-b2-squashfs-factory.bin for DIR-600-b2, openwrt-ramips-rt305x-dir-300-b1-squashfs-factory.bin for DIR-300-b1)
Older trunk revisions (DIR-300-B1 and DIR-600-B2 ONLY)
If using an older trunk revision (pre r27808) you may need to convert the obtained OpenWrt firmware image file into a specific dir-300 or dir-600 format before flashing. For this you require the v2image utility included in ftp://gpl.dlink.com/DIR-300_revB/dir300b.v2.02.source.tar.gz
- For DIR-300 B1 Execute:
v2image -v -i openwrt-ramips-rt305x-dir-300-b1-squashfs-sysupgrade.bin -o openwrt-dir300b1-squashfs-webflash.bin -d /dev/mtdblock/2 -s wrgn23_dlwbr_dir300b
- For DIR-600 B2 Execute:
v2image -v -i openwrt-ramips-rt305x-dir-300-b1-squashfs-sysupgrade.bin -o openwrt-dir600b2-squashfs-webflash.bin -d /dev/mtdblock/2 -s wrgn23_dlwbr_dir600b
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'.
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
Link to datasheet
The information written on the WiFi Ralink chip
Ralink ...
Link to datasheet
The information written on the PSC Ram chip
winbond W9825G6 JH-6 10301 60172U700ZZ
Link to PSC datasheet
The information on the Flash chip
WRGN23DE.B1G S29GL032N90TFI04 ©06 SPANSION
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
DIR-300 B1 Case
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
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.
- Forgot/lost your password and you like to set a new one
passwd
- Forgot the routers IP address
uci get network.lan.ipaddr
- 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
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
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
Tags
If all else fails
The DIR-600 has a special D-Link firmware mode that runs a HTTP server on 192.168.0.1 for uploading new firmware. If you get locked out and/or brick your device, you can get into this mode by holding down the reset button for 30-45 seconds while booting the device. Note that the IP of the server it runs is 192.168.*0*.1.
Help
toh/d-link/dir-300revb.txt · Last modified: 2013/03/09 16:02 by mikael


