D-Link DIR-615

DO NOT BUY DEVICES WITH 4MB FLASH / 32MB RAM if you intend to flash an up-to-date and secure OpenWrt version onto it! See 4/32 warning for details.

1) 4/32 devices do not have sufficient resources (flash and/or RAM) to provide secure and reliable operation. See OpenWrt on 4/32 devices what you can do now.

2) OpenWrt support for 4/32 devices has ended in 2022. 19.07.10 was the last official build for 4/32 devices.

* You might have to change the magic number at the end of the OpenWrt firmware to the one used by the stock DIR-615 firmware to get it to upload.

  • Frys FR-300RTR is the same as E1 Forum
  • April 2016 - Version E1-E4 of this router, wifi is no longer supported with Chaos Calmer release This is due to limited flash storage. See here for more info. That forum article has some tips to get it working with Chaos Chalmer, otherwise you are better off staying with Barrier Breaker release on this platform.
Revision Model Specific Notes
A1 Marvell 88F5180NB1; 8 MiB flash, 32 MiB RAM
B2 Ubicom & SPI Flash with 2 MB only
F1, F2 SPI Flash with 2 MB only
J1 Realtek RTL8196C & SPI Flash with 2 MB only
M1 Realtek RTL8196C; 4 MiB flash, 32 MiB RAM
T1 Realtek RTL8196E & SPI Flash with 2 MB only
Revisions CPU Ram Flash Network Gigabit USB Serial JTag
A1 Marvell 32MB 8MB 4×1 No No Yes Yes
B2 Ubicom 8MB 2MB 4×1 No No Yes Yes
C1, C2 Atheros 32MB 4MB 4×1 No Yes* Yes No
D1 - D5 Ralink 32MB 4MB 4×1 No No Yes No
E1, E2 Atheros 32MB 4MB 4×1 No Yes* Yes Yes
E3,E4,E5 Atheros 32MB 4MB 4×1 No Yes* Yes Yes
F1, F2 Realtek 16MB 2MB 4×1 No No Yes Yes
G1 Ralink 32MB 8MB 4×1 No No Yes ?
H1, H2 Ralink 32MB 4MB 4×1 No No Yes Yes
I1 - I3 Atheros 32MB 4MB 4×1 No Yes* Yes Yes
J1 Realtek 16MB 2MB 4×1 No No Yes Yes
K1 Broadcom 32MB 4MB 4×1 No No No Yes
K2 Broadcom 32MB 4MB 4×1 No Yes Yes ?
M1 Realtek 32MB 4MB 4×1 No No No Yes
M2 Realtek 32MB 4MB 4×1 No No No Yes
N1 Realtek 32MB 4MB 4×1 No ? Yes No
Q2 Realtek 32MB 4MB 4×1 No No Yes Yes
T1 Realtek 8MB 2MB 4×1 No ? ? ?

*Hardware and software modifications required

Don't upgrade/flash the 18.06.0-rc2 version as theres a bug where the settings dont save, See https://bugs.openwrt.org/index.php?do=details&task_id=1684

Installation/Flashing Guide for Rev. D1-D5 for v17.01.5

  1. Unplug the unit and configure your network card IPv4 to IP 192.168.0.5, Subnet 255.255.255.0, Gateway 192.168.0.1
  2. Power off the unit, hold RESET and power on the device untill you see a Orange LED flashing
  3. Go to http://192.168.0.1 and upload the firmware. If the upload does not start, just try another browser, e.g. Firefox.
  4. Perform initial configuration (Turn on Wireless, Set a Router Passwod also dont forget any port forwarding needed etc) (First login). (http://192.168.1.1)
  5. Restart the Device, Yes again
  6. Connect the WAN cable to your Cable Modem or Switch
  7. Go to Network > Wireless > Advanced and change the country code to your region, Save & Apply.

Notes - D1-D4 models are pretty much unbrickable as they have a built-in firmware recovery mode however model D5 does not have built in recovery!

To access the built-in firmware recovery mode simply set your computer with a static IP in the 192.168.0.x range, Then hold down the reset button while powering on the router, open 192.168.0.1 in a web browser. Recovery mode loads up within a few seconds.

  • (2019/06/15) Beware:
  • (1) This router and OpenWrt Barrier Breaker are out of date and there are documented security issues - Refer to caveats on www.openwrt.org, and other sources when considering suitability for your purposes - *Use at own risk*
  • (2) Following the outline below will remove the existing D-Link firmware (except the emergency recovery functionality). Existing firmware is not backedup. - *Use at own risk*.
  • (3) *NO* 'Magic Number' alterations were made to the firmware prior to upload.
  1. If using MS Windows 7: Download and install a 'simple' web browser from a trusted source, for the SOLE PURPOSE of uploading the openwrt firmware to the router. Do NOT use Firefox, or Internet Explorer; they will hang during the firmware upload to the router.
  2. Configure PC NIC to 192.168.0.10; 255.255.255.0, gateway 192.168.0.220 ; (or equiv values)
  3. Power off router, press and hold RESET button (rear), power router (Router power indicator will blink orange)
  4. PC: Using a 'simple browser' : goto 192.168.0.1 and upload openwrt firmware. Wait until '100%' complete message appears before proceeding
  5. Configure PC NIC to 192.168.1.10; 255.255.255.0, gateway 192.168.1.220 ; (or equiv values)
  6. PC: Using a 'current modern uptodate browser' : goto 192.168.1.1 ; Expect openwrt router admin pages to appear
  7. Configure openwrt on the router; and reboot the router

As of R36213 this router no longer needs a custom build.

Rev H1, I1 are pretty much unbrickable as they have a built-in firmware recovery mode. Revision D5 does not have built in recovery.

To access, simply hold down the reset button while powering on the router. The power LED should blink orange. Set your computer with a static IP in the 192.168.0.x range, and open 192.168.0.1 in a web browser. Recovery mode loads up within a few seconds, but doesn't respond to pings. If the power LED is blinking orange the above page should be accessible.

You will need to flash either a stock firmware image or Openwrt-factory image, *not* a sysupgrade image.

Since this part is identical for all devices, see Basic configuration.

wireless.overview This router requires the packages kmod-ath9k and wpad-mini.

Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on.

Port Switch port
Internet (WAN) 4
LAN 1 3
LAN 2 2
LAN 3 1
LAN 4 0

FIXME add revisions

Revisions B

Architecture ?
Bootloader ?
System-On-Chip Ubicom IP5090U
CPU Speed ?
Flash-Chip Spansion S25FL016
Flash size 2 MiB (2Mx8)
RAM-Chip PoinTec PT460816HG / Mira P2S28D40CTP
RAM size 8 MiB (2x4Mx16)
Wireless AR5008 2.4GHz b/g/n
Ethernet Marvell 88E6060
USB 1x header on PCB, unpopulated
Serial Yes
JTAG Yes

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 right-angle receptacle footprint on PCB, unpopulated
Serial Yes
JTAG Yes
Circuit Dir615C1

Revisions D1-D4

Architecture MIPS
Bootloader U-Boot
System-On-Chip Ralink RT3052F Rev 2 on D1/D2, Rev 3 on D3/D4
CPU Speed 384 MHz
Flash-Chip MX29LV320DBTI-70G
Flash size 4 MiB
RAM-Chip 2 x w9812g6ih
RAM size 32 MiB (2 x 2M x 4 x 16bit)
Wireless SoC integrated
Ethernet SoC integrated
USB No
Serial Yes
JTAG No

Revision D5

Architecture MIPS
Bootloader Unknown
System-On-Chip Ralink RT3352F
CPU Speed 400 MHz
Flash-Chip ESMT F25l32PA
Flash size 4 MiB
RAM-Chip ESMT M14D2561616A
RAM size 32 MiB (4M x 4 x 16bit)
Wireless SoC integrated
Ethernet SoC integrated
USB No
Serial Yes
JTAG No

Revision E1/E2

Architecture MIPS
Bootloader U-Boot
System-On-Chip Atheros AR7240
CPU Speed 400 MHz
Flash-Chip mx25l3205
Flash size 4 MiB
RAM-Chip W9425G6EH
RAM size 32 MiB (4M x 4 x 16bit)
Wireless AR9283 802.11n Radio
Ethernet - (cpu direct)
USB 1x right-angle receptacle footprint on PCB, unpopulated
Serial Yes
JTAG Yes

Revision E3/E4/E5

Architecture MIPS
Bootloader U-Boot
System-On-Chip Atheros AR7240
CPU Speed 400 MHz
Flash-Chip MX25L3205
Flash size 4 MiB
RAM-Chip A3S56D40ETP
RAM size 32 MiB (4M x 4 x 16bit)
Wireless AR9287 802.11n Radio
Ethernet - (cpu direct)
USB 1x right-angle receptacle footprint on PCB, unpopulated
Serial Yes
JTAG Yes

Revision G1

Architecture MIPS
Bootloader U-Boot
System-On-Chip Ralink RT3052F
CPU Speed 384 MHz
Flash-Chip MX29LV640ETBI-70G
Flash size 8 MiB
RAM-Chip 2x w9812g6ih
RAM size 32 MiB (2 x 2M x 4 x 16bit)
Wireless SoC integrated
Ethernet SoC integrated
USB Unknown
Serial Yes
JTAG Unknown

Revision H1

Architecture Mips24kc
Bootloader U-Boot
System-On-Chip Ralink RT3352
CPU Speed 400 MHz
Flash-Chip mx25l3205d
Flash size 4 MiB
RAM-Chip 2 x ESMT M12L128168A 166 MHz
RAM size 32 MiB (2 x 2M x 16bit x 4 banks)
Wireless SoC integrated
Ethernet SoC integrated
USB No
Serial Yes
JTAG Yes

Revision I1

Architecture Mips24kc
Bootloader U-Boot
System-On-Chip Atheros AR9341 rev 1.1
CPU Speed 535 MHz
Flash-Chip mx25l3206d
Flash size 4 MiB
RAM-Chip 1 x W9425g6JH-5
RAM size 32 MiB (2 x 2M x 16bit x 4 banks)
Wireless SoC integrated
Ethernet SoC integrated
USB 1x right-angle receptacle footprint on PCB, unpopulated
Serial Yes
JTAG Yes

Revision J1

Architecture RLX4181
Bootloader ?
System-On-Chip Realtek RTL8196C
CPU Speed ?
Flash-Chip Winbond 25Q16BVSIG
Flash size 2MB
RAM-Chip Winbond W9812G6JH-6
RAM size 16 MiB (2M x 16bit x 4 banks)
Wireless Realtek RTL8192CE
Ethernet SoC integrated
USB No
Serial Yes
JTAG Yes

Revision K1

Architecture MIPS 74K V4.9
Bootloader CFE
System-On-Chip Broadcom BCM5357C0
CPU Speed 300 MHz
Flash-Chip Macronix MX25L3206EMI-12G
Flash size 4MB
RAM-Chip 1 x W9425g6JH-5
RAM size 32 MiB (2M x 16bit x 4 banks)
Wireless Broadcom BCM5357C0
Ethernet SoC integrated
USB No
Serial Yes
JTAG No

Revision K2

PCB has “1DIR620C1.A1G” and “1DIR615K2.A1G” check-boxes (neither was ticked on mine DIR-615).

Architecture ?
Bootloader ?
System-On-Chip ?
CPU Speed ?
Flash-Chip Macronix MX25L3206EMI-12G
Flash size 4MB
RAM-Chip 1 x W9425g6JH-5
RAM size 32 MiB (2M x 16bit x 4 banks)
Wireless ?
Ethernet SoC integrated
USB P7 (unpopulated micro-USB)
Serial JP1 (unpopulated header - UART)
JTAG ?

Revision M1

Architecture RLX4181
Bootloader ?
System-On-Chip Realtek RTL8196C
CPU Speed ?
Flash-Chip Winbond 25Q32BVSIG
Flash size 4MB
RAM-Chip Winbond W9825G6JH-6
RAM size 32 MiB (4M x 16bit x 4 banks)
Wireless Realtek RTL8192CE
Ethernet SoC integrated
USB No
Serial ?
JTAG Yes

Revisions M2

Architecture ?
Bootloader ?
System-On-Chip Realtek RTL8196C
CPU Speed ?
Flash-Chip Winbond 25Q32BVSIG
Flash size 4 MB
RAM-Chip 1 x Winbond W9825G6JH-6
RAM size 32 MiB (4M x 16bit x 4 banks)
Wireless Realtek RTL8192CE
Ethernet SoC integrated
USB No
Serial No
JTAG Yes (12 Pin)

Revision N1

Architecture RLX5821
Bootloader ?
System-On-Chip Realtek RTL8196D
CPU Speed ?
Flash-Chip 25L3206E
Flash size 4MB
RAM-Chip ESMT M13S2561616A-5T
RAM size 32 MiB (4M x 16bit x 4 banks)
Wireless Realtek RTL8192ER
Ethernet SoC integrated
USB ?
Serial Yes
JTAG No

Revision Q2

Architecture ?
Bootloader ?
System-On-Chip Realtek RTL8196E
CPU Speed ?
Flash-Chip MX25L3206E
Flash size 4 MB
RAM-Chip winbond W9825G6JH-6
RAM size 32 MB (4 M x 4 banks x 16 bits sdram)
Wireless Realtek RTL8192ER
Ethernet SoC integrated
USB No
Serial Yes
JTAG Yes

FIXME More info, please!

Revision Photos page Comment
C1/C2 dir-615/c1-photos/start This is rev.C2 device photo, but board rev C1!
D1 dir-615/d1-photos/start Mira DDR memory chips (instead of Winbond)
D2 dir-615/d2-photos/start Wireless, cpu are unshielded
D3 dir-615/d3-photos/start Wireless, cpu are unshielded, revD3E
D4 dir-615/d4-photos/start Wireless, cpu are unshielded
E3/E4/E5 dir-615/e4-photos/start Wireless, cpu and memory are unshielded on this photo
F1/F2 dir-615/f1-photos/start This is rev.F1/F2 device photo
H1 dir-615/h1-photos/start Shield removed
H2 dir-615/h2-photos/start As-is
K1 OpenWrt forum Wireless, cpu and memory are unshielded on this photo
M1 dir-615.rev.m1.jpg As-is
Q2 photo As-is
S photo DIR-615S H/W Ver A1

Note: This will void your warranty!

  • To remove the cover simply remove the 2 back rubber feet.
  • There are two screws holding the PCB to the bottom cover.
  • On each side successively, from the top, insert flat screwdriver about 1/3 of width from the back and pry gently. The back of the lid will goes up. When both sides of the back of the cover a bit lifted, pull cover towards the back to free front clips.

С1/С2 revision:

D-Link DIR-615C2 serial port pinout

Pin1 3.3V
Pin2 RX
Pin3 TX
Pin4 GND

C1 Uses 3.3v TTL signals.

C1 Serial port settings: Speed:115200, Data bits:8, Stop bits:1, Parity:none, Flow control:none

D1/D2 revision:

D-Link DIR-615D1 serial port pinout

Pin1 TX
Pin2 GND
Pin3 3.3V
Pin4 RX

D2 Serial port settings: Speed:57600, Data bits:8, Stop bits:2, Parity: none, Flow control: none

For D3 all the same applies, but the TX and RX pins have been swapped.

E3/E4 revision:

D-Link DIR-615E4 serial port pinout

Warning: above picture very likely wrong, i.e. TX and RX swapped. Table below is correct for E3, i.e. Pin3 is RX and Pin9 is TX.

Pin1 3.3V
Pin2 3.3V
Pin3 RX
Pin9 TX
Pin11 GND
Pin12 GND

Remember to use 12V ↔ 3.3V serial port converter or you might break the router serial pins by overvoltage.

COM port settings: Speed:115200, Data bits:8, Stop bits:1, Parity:none, Flow control:none

I1 revision:

Pin1 3.3V
Pin2 RXD
Pin3 TXD
Pin4 GND

H1 revision:

Pin1 3.3V
Pin2 GND
Pin3 TXD
Pin4 RXD

Serial port settings: Speed:57600, Data bits:8, Stop bits:2, Parity: none, Flow control: none

K2 revision:

Pin1 3.3V
Pin2 TXD
Pin3 GND
Pin4 RXD

COM port settings: Speed:115200, Data bits:8, Stop bits:1, Parity:none, Flow control:none

Remember to use 12V ↔ 3.3V serial port converter or you might break the router serial pins by overvoltage.

Looks like C1/C2 JTAG lines connected to testpoints tp5-tp8. Pinout is unknown.

Adding JTAG to C1 not easy as some other revisions but should be possible:

  • JTAG TDI on R59 top side populated
  • JTAG TMS on R60 (bottom side) unpopulated
  • JTAG TCK on R61 (top side) populated
  • JTAG TDO on R62 top side populated
  • JTAG TRST_L on R6/R10
  • EJTAG_SEL on R11, R13 (R11 in place 0-ohm to 3.3V so enhanced JTAG selected by default)

E1/E2/E3/E4 has standard MIPS EJTAG JTAG 14-pin header pinout (pic is from E4)

I1 has same footprint and apparently pinout as E1-E4 but still not fully verified.

D-Link DIR-615E4 JTAG pinout

See port.jtag for more JTAG details.

The D-Link DIR-615 has two buttons. They are WPS and RESET. The WPS button has its own blue led.
The buttons can be used with hotplug events. E. g. wifitoggle.

BUTTON Event
RESET reset
WPS wps

How to configure LEDs in general, see the LED section in the Wiki.

Rev C: The DIR-615c2 has 1 blue, 3 green and 2 orange controlled LEDs:

LED name LED symbol Internal name
Power (green) Power dir-615c1:green:status
Power (orange) Power dir615c1:orange:status
WPS (blue) Refresh dir-615c1:blue:wps
Wan (green) Globe dir-615c1:green:wan
Wan (orange) Globe dir-615c1:orange:wan
Wlan (green) Waves dir-615c1:green:wlan

Rev H1: The same LED configuration applies to Rev H1.

Revision C2 has 6 free (non-used) GPIO ports. To use them you should do some solder work. Please train you solder skills on broken motherboards before trying to do this on working hardware.

D-Link DIR-615C2 gpio pads

GPIO # Notation Location
0 R127 unpopulated resistor pad near LED21, pcb bottom left corner
2 R2 unpopulated resistor pad to the left of the CPU
7 R203 unpopulated resistor pad near LED20 near gpio0
8 tp5 testpoint on the bottom side of pcb near cpu
9 tp6 testpoint on the bottom side of pcb near cpu
11 tp7 testpoint on the bottom side of pcb near cpu

There is also one free GPIO5 used by dir-615c1:green:wancpu led interface. This led interface is useless so we can just desolder r218 (located between q7 transistor and led10), remove led definition from mach-dir-615-c1.c recompile/reflash kernel and use GPIO5 as we want.

To activate GPIO interface you should export it using command 'echo N > /sys/class/gpio/export' (N is a GPIO number). Then you can use /sys/class/gpio/GPION interface to control GPIO (set/get direction, value, etc). Also you can use i2c_gpio_custom/w1_gpio_custom kernel modules for 1wire/i2c protocols over gpio to connect devices/sensors/actuators to your router.

  1. as a beginner, you really should inform yourself about soldering in general and then even obtain some experience!

DIR-615 Generic USB Mod Notes

All C1/C2, E1-E4 and I1 share the same empty footprints and hole in plastic case (except for sticker) for adding cleanly USB support.

Series Resistors

22-ohm resistors are for impedance matching of the characteristic impedance of the transmission line in the case of high-speed USB for signal integrity at 480Mbps. The single-ended impedance of the line is in theory 45 ohms but the transceiver has an output impedance too that is added to the 22-ohm resistor. For full-speed (12Mbps) or low-speed (1.5Mbps) communication, these resistors are not mandatory. For reasons like not having the required 0603 22-ohm surface mount resistors or skill required to solder them and if you plan on using only full-speed and low-speed USB devices, you might decide to replace these resistors with pieces of wire-wrap wire, which are easier to solder than 0603 resistors.

Pull-down Resistors

For high-speed, full-speed and low-speed USB, a host has to provide 15k pull-down resistors on D+ and D- lines. E1-E4 and I1 revisions have 0603 footprints for these pull-down resistors. C1/C2 revisions do not have footprints for these pull-down resistors. If you do not have 0603 resistors, the skill required to solder them or not the footprints for soldering, you may want instead use through-hole resistors soldered on the bottom side of the USB receptacle footprint.

VBUS (5V Supply)

Since the DIR-615 uses a +5 V power supply (from 1 A to 2.5 A according to the revision), one can use it as is to power the USB device. Although this is not good practice. USB hosts have normally some protection from excessive current drawn by the device. This protection shuts down the VBUS supply when a given current threshold is reached.

Revision C1

U4 fooprint is for a dual USB high-side power switch partnumber G526-1 or G526-2 by Global Mixed-mode Technology Inc. Datasheet links: long one single page. These parts are obsolete. Good luck finding them. A pinout compatible and mostly similar in terms of electrical characteristics is MIC2076A-2YM.

USB type A vertical right-angle receptacle

The Device uses a DDR1 16Mbit x 16bit (16Mibit*16=256 mebibit. 256 mebibit/8=32MiByte) 400MHz chip Zentel A3S56D40FTP. Replace it with any 32Mbit x 16bit chip. 333MHz instead of 400MHz also works fine. It's quite hard to find these chips. One of the ways to get them is to have a look at DDR SO-DIMM (because SO-DIMM modules are shipped with x16 chips). Since there are no 64Mbit x 16bit DDR1 Chips available → no 128 MB mod!

The most easy approach is to seek for a 4-chip DDR 256 MB module. These all have x16 chips too. Chips only on one side (not to be confused with double-sided 256 MB modules with 4 chips on each side) and only 4 of them - that's the best chance to get some. They represent a small percent among usual 8-chip modules but this is equalized with the amount and “cheap as dirt” price of such DDR 256 MB modules.

Working chips:

  • Hynix HY5DU121622DTP-D43 (From Mustang DDR SO-DIMM 512 MB)
  • Hynix HY5DU121622CTP-D43 (From Hynix DDR SO-DIMM PC2700S-25330 512MB DDR 333MHz CL 2.5, chips are 400Mhz compatible due to “D43” marking.)
  • Infineon HYB25D512160BE (From Infineon DDR SO-DIMM 512 MB)
  • Elpida EDD5116ADTA-6B-E (From Elpida DDR SO-DIMM 512 MB)
  • Elpida EDD5116AFTA-5B-E (From Elpida DDR SO-DIMM 512 MB)
  • Alliance AS4C32M16D1-5TCN (From DigiKey, $2.76)
  • Samsung K4H511638J-LCCC000 (From База электроники, 117 ₽ )
  • Micron MT46V32M16P-6T F (From AliExpress, $2.6)

Additional list that may work:

Type ID Code Vendor
DDR 32Mx16 DDR 400 TSOP Pb Free HY5DU121622DTP-D43-C Hynix
DDR 32Mx16 DDR 400 TSOP Pb Free H5DU5162ETR-E3C Hynix
DDR 32Mx16 DDR 400 Pb Free K4H511638G-LCCC Samsung
DDR 32Mx16 DDR 400 A3S12D40ETP-G5 Zentel
DDR 32Mx16 DDR 400 NT5DS32M16BS-5T Nanya
DDR 32Mx16 DDR 400 PB Free P3S12D40ETP-GUTT Mira
DDR 32Mx16 DDR 333 CL2.5 TSOP MT46V32M16TG-6T:F Micron
DDR 32Mx16 DDR 333 CL2.5 TSOP MT46V32M16P-6T:F Micron
DDR 32Mx16 DDR 333 PB Free TSOP HYB25D512160CE-6 Qimonda
DDR 32Mx16 DDR 333 PB Free TSOP HYB25D512160CEL-6 Qimonda
DDR 32Mx16 DDR 333 PB Free TSOP HYB25D512160DE-6 Qimonda

By default router able to see all 64MB.

Used only next chips:

W25Q128FVSSIG

MX25L12835FM2I

S25FL128P

Uboot and Kernel patches for 16MB Flash External Link

Take some GPIOs which are connected to LEDs or switches, 3.3V and GND from the JTAG header and use the mmc-over-gpio kernel module. The kmod-leds-gpio and kmod-input-gpio-keys-polled kernel modules have to be unloaded before. The blue WPS LED will show when the SD-Card is being accessed and the power LEDs will flicker while data is being transfered.

GPIO # Original use SD signal SD pin
0 WPS button MISO 7
7 Power LED amber MOSI 2
9 Power LED green SCK 5
14 WPS LED blue /SS 1
+3.3V +3.3V 4
GND GND 3
GND GND 6

If you forgot your password, broken one of the startup scripts, firewalled yourself or corrupted the JFFS2 partition, you can get back in by using OpenWrt's 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. E. g. 192.168.1.2 (gateway and DNS is not required).
  • Plug the power on and wait for the POWER LED to blink green.
  • While the POWER LED is blinking press any button (Reset and Secure Easy Setup will work) once.
  • If done right the POWER LED will blink faster.
  • You should be able to telnet to the router at 192.168.1.1 now (no username and password)

NOTE: The root file system in failsafe mode is the SquashFS partition which is always readonly. To switch to the writable root file system (JFFS2) run mount_root command and make your changes.

  1. Forgot/lost your password and need to set a new one: passwd
  2. Forgot the router's IP address: uci get network.lan.ipaddr
  3. Accidentally run opkg upgrade or filled up the flash by installing
    too big packages or need to clean the JFFS2 partition and start over: mtd -r erase rootfs_data

When you are done with failsafe mode - power cycle the router and let it boot normally.

See also:

failsafe_and_factory_reset

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2024/02/12 08:58
  • by 127.0.0.1