OpenWrt Forum Archive

Topic: DIR-615 rev E4 + OpenWrt 10.03 = bingo

The content of this topic has been archived on 24 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Firmware:
model = dir-600 a1
ver = 10.03.1-rc4
target = ar71xx

dual access (PPTP vpn), wifi, portforwarding, LAN DHCP and so on
stable connection, good wifi speed
its ok smile

details?  DIR-615 or DIR-600?  Did you build this or is it the standard build?  I have a DIR-615-revE3 and have been dying to try OpenWRT on it....

(Last edited by cconn on 11 Jan 2011, 17:02)

device:
DIR-615 rev E4:
CPU Type = Atheros AR7240
CPU Speed = 400MHz
Flash Size = 4MB
RAM Size = 32MB
Wireless Radio = Atheros AR9287

build:
standard for DIR-600 rev A1
/backfire/10.03.1-rc4/openwrt-ar71xx-dir-600-a1-squashfs

(Last edited by santomas on 5 Feb 2011, 02:50)

E1/E2 is a same. E4 differs. cconn could you open yours and post pcb photo (any quality) to compare e3 pcb layout with other revisions ? E4 has ar9287 radio so your e3 is probably stay near to e1/e2

(Last edited by regressor on 18 Jan 2011, 16:40)

cconn, you device looks like E4. Please try to read caption on white spotted 8 legs chip (flash memory) at the center of pcb. You can use acetone to remove white spot. Is it MX25l3205 ? If it is - you can use:
model = dir-600 a1/ver = 10.03.1-rc4/target = ar71xx firmware...

(Last edited by regressor on 19 Jan 2011, 04:45)

And please post here a flash chip id string (to populate wiki)

well I haven't had a chance to get myself some chems to uncover the flash chip.  I did however try to upload a OpenWRT image to this device, and I did so successfully.  This is an E3.  I had to do a bit of magic however, since the image would not upload from the D-LINK firmware, and the recovery mode would refuse the image as well.  I did this a-la DD-WRT, and used a hex editor to modify the hardware magic number at the end of the file.  I changed it to:

AP99-AR7240-RT-091105-01

which are the last bytes of the original firmware.  This allowed me to update to 10.03.01-rc4.

wireless works.

Only problems I see so far is that the lights (other than the power light) don't work (no big deal), and there only seems to be 500K free (!!) for more software.  I was hoping to add radvd/dhcp6, hopefully this will squeeze in.

here is a dmesg of the box;

Linux version 2.6.32.25 (openwrt@ampere) (gcc version 4.3.3 (GCC) ) #1 Fri Nov 19 20:27:50 PST 2010
prom: fw_arg0=00000007, fw_arg1=a1f6ffb0, fw_arg2=a1f70470, fw_arg3=00000004
MyLoader: sysp=00111101, boardp=01101110, parts=c0ddd88d
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR7240 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802d2710, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=DIR-600-A1 mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,896k(kernel),2816k(rootfs),64k(mac)ro,64k(art)ro,3712k@0x40000(firmware)
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29304k/32768k available (2113k kernel code, 3464k reserved, 395k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is D-Link DIR-600 rev. A1
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
PCI: fixup device 0000:00:00.0
pci 0000:00:00.0: reg 10 64bit mmio: [0x000000-0x00ffff]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
PCI: mapping irq 48 to pin1@0000:00:00.0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Nov 19 2010 20:21:41 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: mx25l3205d (4096 Kbytes)
7 cmdlinepart partitions found on MTD device spi0.0
Creating 7 MTD partitions on "spi0.0":
0x000000000000-0x000000030000 : "u-boot"
0x000000030000-0x000000040000 : "nvram"
0x000000040000-0x000000120000 : "kernel"
0x000000120000-0x0000003e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=330000, len=B0000
0x000000330000-0x0000003e0000 : "rootfs_data"
0x0000003e0000-0x0000003f0000 : "mac"
0x0000003f0000-0x000000400000 : "art"
0x000000040000-0x0000003e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: Found an AR7240 built-in switch
eth1: Atheros AG71xx at 0xb9000000, irq 4
eth1: using fixed link parameters
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
eth0: link up (1000Mbps/Full duplex)
Registered led device: dir-600-a1:green:power
Registered led device: dir-600-a1:amber:power
Registered led device: dir-600-a1:blue:wps
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
eth1: link up (100Mbps/Full duplex)
Compat-wireless backport release: compat-wireless-2010-10-14-7-gab01eca
Backport based on wireless-testing.git master-2010-10-19
cfg80211: Calling CRDA to update world regulatory domain
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
usbcore: registered new device driver usb
PCI: Setting latency timer of device 0000:00:00.0 to 64
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xb0000000, irq=48
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
nf_conntrack version 0.5.0 (460 buckets, 1840 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ath_hal: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, XR)
ath_pci: trunk
wlan: trunk
wlan: mac acl policy registered
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx-wdt: enabling watchdog timer
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth0) entering disabled state
eth0: link down
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
eth1: link down
eth0: link up (1000Mbps/Full duplex)
eth0: link down
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
eth1: link up (100Mbps/Full duplex)
eth1: link down
eth1: link up (100Mbps/Full duplex)
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state

thats a negative on dhcpv6 and radvd, once I install radvd I have only 256K left.  crap.  4MB seems pretty useless on this platform sad

Ok. Flash chip mx25l3205d. E3 = E4.
Santomas tried to bring up leds but there is a problem. He found all led gpio's but netdev trigger doesn't work for lan interfaces. They a presented as eth0.x and allways up. So we don't known how to set them light up on port up.

Glad to be some sort of help wink.   Is this platform much bigger than others or are they pretty much all ~500K free upon install?  I need pppoe+kmod-ipv6+radvd+dhcp6 client and server...with 2.6 kernel for stateful connection tracking.  Will i have to move to a luci-less build???

Santomas trying to make usb mod - this should help to solve free space lack.

Is it possible to skip usb altogether?   Can i help test this size reduction??

The goal is to solder 4 very small resistors at pcb, one wire and one usb socket. After this usb port should work and cheap flashdrive will solve problem with free space, so this is not a size reduction smile With usb flash you can build luci-less image and then install luci (and other software) as packages.

so if I understand you correctly, the idea is to add flash via a motherboard hack and not squeeze more into the image?

I think I should look at making a luci-less image and add my radvd/dhcpv6/pppoe stuff and run it all from SSH...

without USB support, will the image run on the DIR-615?  I tried to build a AR7xx image for the TP-Link 741 and ended up bricking it somehow, hopefully I can recover better with the DIR-615 so long as the emergency boot will continue working...

tplink 741 has differrent flash sad

I know it has a different flash smile  but I am trying to build or find an image on ar71xx that will be IPv6 native enabled.  741 was a bust because I bricked it, I'm figuring the DIR-615 will have a better run getting this going since it has a emergency recovery mode.

I had it working on a Asus WL520-GU, but the brcm-2.4 only has (obviously) 2.4 Kernels, and no connection tracking for IPv6 works on anything other than 2.6.

Can I make an image for DIR-615 without USB to save space?

Of course you can. Just svn sources, make menuconfig, select platform (atheros) and profile (dir-600a1), select/unselect packages and make.

Bingo indeed! Thanks for the thread and to the OpenWRT team, awesome work! big_smile

Here is ready to use, no hex editing required OpenWRT 10.03.1-rc5 firmware for a D-Link DIR-615 E4 (hardware revision E4 only): http://goo.gl/TpI17

I found DD-WRT 15778 & 16994 on the DIR-615 to be buggy and slow, and promptly reverted to OEM firmware (which was just buggy).

However, OpenWRT 10.03.1-rc5 has been rock solid, all my networking issues have been sorted and WiFi speed is almost on par with OEM firmware (OpenWRT 4MB/s vs OEM 4.3MB/s). There are still a few minor bugs in the UI, but once you're up and running these aren't an issue.

To install, follow these instructions: http://www.dd-wrt.com/wiki/index.php/DIR-615C I installed using the "Firmware Update Mode / Recovery Console". This method doesn't work well with modern web browsers but, with Ultra Simple Web Browser http://sourceforge.net/projects/uswp/ on Windows 7 it works a treat. It may even be possible to update using the D-Link web interface, I didn't try it.

Once the firmware is updated, all you need to do is enable and configure security options for WiFi using the web interface.

(Last edited by BarryChopper on 5 Sep 2011, 22:40)

Confirmed.
Today I've bought DIR-615 E4. Now it is running "OpenWrt Backfire 10.03.1-rc5 / LuCI 0.10 Branch 0.10+svn7292" from the last post. No LEDs, but the web-interface is much more attractive than D-Link factory firmware. Thank you, people! smile

(Last edited by glossum on 25 Sep 2011, 01:25)

I hate to bump an old thread, but I've been trying get OpenWrt on my DIR-615 E3.  I was unsatisfied with dd-wrt and flashed back to stock.  This however was tough, I tried with multiple browsers to access the firmware recovery page.  Almost a stroke of luck with Internet explorer on one try that I was able to get the stock firmware back running.  Now I am trying to get OpenWrt running.  I have attempted the procedure listed at the end of this thread and used the Ultra Simple Web Browser.  Sometimes I can get to the page(Firmware Recovery)sometimes I can't.  I have been more successful getting to the page in chrome, however when I hit send to send the firmware, it says 2% uploaded and then goes to a webpage.  It does not get to upgrading firmware page as it did when I went back to stock.  I have IE8, firefox 8.01, chrome 15.0.874.121, and Ultra Simple Web Browser.  I set my IPv4 to 192.168.0.4 and subnet to 255.255.255.0.  I did not touch anything else.  Any help would be appreciated!

hmm thats strange.  you might be having an ARP issue when it reboots into recovery mode.  do a "arp -d 192.168.0.1" before you open your browser and try the firmware recovery procedure.  did you re-upload the factory firmware first?

Yes I did.  BTW, I am using Windows 7 x64, if that could cause a problem. Google Chrome is the only one now connecting to the page.  When I set the static IP, I only set static and subnet.  Do I need to set default gateway and DNS?  I input the arp -d 192.168.0.1, which did not fix my situation.  I connected on chrome, selected the bin, and hit send, it uploaded to 100%, then said waiting on 192.168.01.  I waited for 10 minutes, still had the orange blinking light and nothing appeared to occur.  I'm sorry I am new to the custom setup for routers, however am trying to learn.  I just want something that is more stable than dd-wrt and stock, which this appears to be If I can get it flashed.  Should I attempt another way of installing, possibly through TFTP (which I have very little knowledge on).  Or simply try on a computer with windows xp?  Thanks for the response.

Finally able to have proper access to DIR-615 E3 using opera browser.  Upgraded to OpenWrt Backfire 10.03.1-RC6 / LuCI 0.10 Branch (0.10+svn7852).  Thanks for the help!  Only remaining question, I have been trying to find a way to set wireless encryption as WPA2-PSK+AES, with luci is this possible?  I just see WPA2-PSK, unless that is default PSK AES, and not AES+TKIP.

Thanks!

Hi.
I erased all the FLASH MEMORY content of my D-LINK DIR-615.
I'm trying to program DIR-615 by mrduarte's guid https://forum.openwrt.org/viewtopic.php … 28#p124228

Where should I place external power supply for D-LINK DIR-615 (not DIR-825).
Thanks.

(Last edited by qdrddr on 11 Mar 2012, 07:23)

The discussion might have continued from here.