[ Solved] RAM 64MB Flash 16MB Upgrades Dir-615 E3 E4 w/Dump

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Hardware DIY / Hardware Mods
Author Message
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Mon Mar 01, 2021 23:28    Post subject: [ Solved] RAM 64MB Flash 16MB Upgrades Dir-615 E3 E4 w/Dump Reply with quote
Anyone have a full dump for dir-615 e3 tried the e4 dump it doesn't seem to work, it looks like the router flashes all lights then returns to orange light steady no amount of resetting works, I tried to connect jtag no luck.

Last edited by voip2014 on Tue May 11, 2021 23:55; edited 3 times in total
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 12423
Location: Texas, USA

PostPosted: Mon Mar 01, 2021 23:52    Post subject: Reply with quote
I presume you found this thread (with the E4 dump):

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=166754

Going to list pages I find, relevant or not, just because:

https://oldwiki.archive.openwrt.org/toh/d-link/dir-615

https://openwrt.org/toh/d-link/dir-615

https://forum.openwrt.org/t/d-link-dir-615-e3-firmware/33254

I presume you have a serial console connected and can see what is going on when it tries to boot?
Everything I've found lists the E3 and E4 together and says the E4 dump should work. Perhaps @ian5142
may chime in and be of assistance. I think he may have (had) one of these?

_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware‽
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Tue Mar 02, 2021 0:23    Post subject: Reply with quote
I was trying to see if I could make a full bin using the factory image but doesnt seem that straightforward

binwalk -b DIR-615_REVE_FIRMWARE_5.12B05.BIN

DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 uImage header, header size: 64 bytes, header CRC: 0xFE3C83FD, created: 2013-05-23 07:35:37, image size: 977771 bytes, Data Address: 0x80002000, Entry Point: 0x802AC000, data CRC: 0xD482BB87, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: lzma, image name: "Linux Kernel Image"
64 0x40 LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 2957445 bytes
983040 0xF0000 Squashfs filesystem, big endian, version 3.0, size: 2535570 bytes, 585 inodes, blocksize: 65536 bytes, created: 2013-05-23 07:36:11

the current image:


Given I didnt have serial or jtag working I used a SPI programmer and loaded the dump,

binwalk -b Dir\ 615\ E4\ Dump.BIN

DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
160624 0x27370 U-Boot version string, "U-Boot 1.1.4 (Dec 7 2009 - 03:52:14)"
161020 0x274FC HTML document header
162423 0x27A77 HTML document footer
162536 0x27AE8 HTML document header
163131 0x27D3B HTML document footer
163246 0x27DAE HTML document header
164043 0x280CB HTML document footer
164166 0x28146 HTML document header
164247 0x28197 HTML document footer
164256 0x281A0 CRC32 polynomial table, big endian
262144 0x40000 uImage header, header size: 64 bytes, header CRC: 0x11784428, created: 2011-06-09 09:40:01, image size: 982385 bytes, Data Address: 0x80002000, Entry Point: 0x802B2000, data CRC: 0x427FB745, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: lzma, image name: "Linux Kernel Image"
262208 0x40040 LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 2982022 bytes
1245184 0x130000 Squashfs filesystem, big endian, version 3.0, size: 2541435 bytes, 585 inodes, blocksize: 65536 bytes, created: 2011-06-09 09:40:13
3997721 0x3D0019 uImage header, header size: 64 bytes, header CRC: 0xD6A5F9A5, created: 2009-02-26 07:25:11, image size: 980376 bytes, Data Address: 0x80002000, Entry Point: 0x802B0000, data CRC: 0x337C9A20, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: lzma, image name: "Linux Kernel Image"
3997785 0x3D0059 LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 2973830 bytes


But I believe the dump is wrong.

It appears to pass through the Uboot because the lights all go on and then off something is happening doesnt get any further with a steady orange light.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 12423
Location: Texas, USA

PostPosted: Tue Mar 02, 2021 0:40    Post subject: Reply with quote
I can't seem to find that factory firmware here:

https://tsd.dlink.com.tw/

You have to ensure it's E3_E4, I'm fairly certain.

And, again, do you have a serial console connected to see what is happening when it tries to boot?

Were you even trying to flash stock firmware from Emergency Room?

https://www.optimizationcore.com/network/enter-emergency-room-interface-d-link-dir-615-e4/

_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware‽
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Tue Mar 02, 2021 1:11    Post subject: Reply with quote
i got serial working it was a bad solder

i see this on serial


U-Boot 1.1.4 (Dec 7 2009 - 03:52:14)

AP99 (ar7240 - Python) U-boot
DRAM:
sri
#### TAP VALUE 1 = 0x8, 2 = 0x8 [0xe787ffff: 0xf0eafcff]
4 MB
Top of RAM usable for U-Boot at: 80400000
Reserving 244k for U-Boot at: 803c0000
Reserving 192k for malloc() at: 80390000
Reserving 44 Bytes for Board Info at: 8038ffd4
Reserving 36 Bytes for Global Data at: 8038ffb0
Reserving 128k for boot params() at: 8036ffb0
Stack Pointer at: 8036ff98
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Tue Mar 02, 2021 1:12    Post subject: Reply with quote
I see no dram maybe the dram is bad
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Tue Mar 02, 2021 1:23    Post subject: Reply with quote
I am also pretty sure I need AP91 not ap99 so unclear if thats why I am not seeing dram populate.
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Tue Mar 02, 2021 8:13    Post subject: Reply with quote
SO looks like the SDram is bad i took it off and put it in a known working board and it doesnt work, ordered a few spares exact same ones I tried some sodimm 32MB sdram didnt work. So just getting the same stuff.

dir 615 e3 the CHIP is: ESMT M13S2561616A-5T
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Wed Mar 03, 2021 23:16    Post subject: Reply with quote
ram being changed to chip: 64MB A3S12D40ETP-G5

NOR flash being changed to nor 16MB winbond 25Q128FVSG

also waiting for the original memory chip incase these new ones do not work.

edit: g6 to g5
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Fri Mar 05, 2021 6:05    Post subject: Reply with quote
another chip that should work is hynix, HY5DU121622D(L)TP -d43 haven't tried it, waiting on the other one but I do have a source for these chips in case the other plan doesn't work
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Sat Mar 27, 2021 8:14    Post subject: Reply with quote
Resolved

Model dir-615 E3 Flash upgrade to 16MB ( load the full e4 bin with mac edits, will work on dir-615 e3)
Ram upgrade to 64MB no issues no firmware modification needed load the standard install process.

Now it works, suspect just bad flash chip but changed both now super fast!

Went with winbond and hynix known brand names for the chips.

Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 5009
Location: UK, London, just across the river..

PostPosted: Sat Mar 27, 2021 15:08    Post subject: Reply with quote
great upgrade. now you need to learn how to compile DDWRT firmware to be able to utilize the new flash chip 16mb, otherwise you have to stick to those 4MB firmware's.. those DIR 615 were my fav in the past as they ware rock solid...12 years ago...
_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 48646 WAP
TP-Link WR1043NDv2 -DD-WRT 48865 Gateway,DNS,AP Isolation,Ad-Block,Firewall,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 -DD-WRT 48886 Gateway,DNS,Ad-Block,Firewall,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 -Gargoyle OS 1.13.0b AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear R7800 --DD-WRT 48886 Gateway,DNS,AD-Block,AP&Net Isolation,VLAN's,Firewall,DoT,Vanilla
Netgear R9000 --DD-WRT 48886 Gateway,DNS,AD-Block,AP Isolation,Firewall,Forced DNS,DoT,2,4Ghz only,Vanilla
Broadcom
Netgear R7000 ---DD-WRT 48886 Gateway,DNS,AD-Block,Firewall,Forced DNS,VLAN's,DoT,VPN
------------------------------------------------------
Stubby for DNS over TLS I DNSCrypt v2 by mac913
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Sun Mar 28, 2021 2:40    Post subject: Reply with quote
For now I put openwrt, included is wholeflash dump:

Notes: wholeflash for dir-615 e3 16MB make sure to hex edit the 00:11:22:33:44x to your macs I have edited them out.

Uses openwrt 12 ( yes old but you can sysupgrade), eventually I want ddwrt but do not have a build env setup yet another project.

Password is:

voip2014

for download link: https://download.cloudatcost.com/download/xs3n9kh2b2wpo2akx78sjhusi

Good luck.
Code:
BusyBox v1.22.1 (2014-06-27 13:31:51 EEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (12.09, r41355)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@OpenWrt:~# free -h
             total         used         free       shared      buffers
Mem:         61676        19344        42332            0         2144
-/+ buffers:              17200        44476
Swap:            0            0            0
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   12.0M    472.0K     11.5M   4% /
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    30.1M    344.0K     29.8M   1% /tmp
/dev/mtdblock5           12.0M    472.0K     11.5M   4% /overlay
overlayfs:/overlay       12.0M    472.0K     11.5M   4% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@OpenWrt:~#
voip2014
DD-WRT Novice


Joined: 20 Feb 2021
Posts: 38

PostPosted: Mon May 10, 2021 11:01    Post subject: Reply with quote
Updates:
========
15.05.1

If anyone compiles ddwrt for the modded 16 MB flash please post here:

This Firmware covers:
=====================
DIR-615 E3 Modded 16MB FLASH 64MB RAM
DIR-615 E4 Modded 16MB FLASH 64MB RAM

latest sysupgrade and factory bins for this router.

Files:
openwrt-15-ar71xx-generic-dir-615-e4-squashfs-factory.bin (16MB)
openwrt-15-ar71xx-generic-dir-615-e4-squashfs-sysupgrade.bin

link to download:
https://download.cloudatcost.com/download/cw66csnms6j2m3zpj9ioor1kw

pass: voip2014

If I get lede or ddwrt working on this modded model I will also post.

Code:

BusyBox v1.23.2 (2021-05-10 04:19:52 EDT) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Chaos Calmer, r49632)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 ----------------------------------------------------
system type             : Atheros AR7240 rev 2
machine                 : D-Link DIR-615 rev. E4
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 265.42
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available


goosnarrggh
DD-WRT Novice


Joined: 22 Jan 2022
Posts: 2

PostPosted: Sat Jan 22, 2022 20:50    Post subject: Reply with quote
Using the OpenWRT 19.07.8 ar71xx-tiny imagebuilder tool, I was able to generate a VERY basic pair of factory and sysupgrade images (targeting DIR-615 rev E4) which seems to run flawlessly on my rev E3. Several weeks of surprisingly reliable operation.

I needed to drop opkg (it really wasn't useful with such a small overlay anyway), all of the PPP-related packages and associated kmods (so I'm still totally reliant on my ISP's modem), as well as the web UI (so SSH administration only), in order to get it to fit.

Curious about WPA3 support, I was also able to create an alternate 19.07.8 image which includes a version of hostapd supporting WPA3, but in order to squeeze in a full TLS library, I needed to additionally strip out all of the firewall and iptables support. So, essentially it cannot handle any configurations which would require NAT and LAN/WAN separation. In this state, I think it might be useful as a bridged/dumb AP, but not much more than that.

Next up I am looking at what compromises I might need to make in order to duplicate this work using either the 21.02.1 ath79-tiny imagebuilder, or else building from source code. No meaningful success to report yet.

(edit: To be absolutely clear, I am referring to a rev E3 which is still rocking the original 4MB flash and 32MB RAM.)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Hardware DIY / Hardware Mods All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum