Hello, after permanently bricking the wifi calibration partition on my ac58u it became useless so I found this router for cheap at a local store: D-Link DIR-842 rev C1.
It's a good little router, wifi works at nearly the same speed, ipv6 works okay with it's proprietary software, pppoe traffic is slightly limited at 870 mbps out of the possible 980 mbps but it's okay. However I'm missing OpenWrt's more advanced features.
I'm trying to disassemble the router to look for jtag connectors. Under the label there are two holes but they have solid metal underneath, no screws. Tried to press it with a screwdriver and it didn't work. No other screws on the case. how do I take it apart?
Butane torch em / large tip high head solder iron for a few secs and pry open..... Use an old can/tin to shield surrounding areas...... Fridge it for 10mins prior for a lil more protection...
Option 1 is the most foolproof..... option 2 has potential for a cleaner result / reassembly with existing structural elements...... albeit at greater risk.....
If your patient, an exacto / box cutter around the outside of the rivets will also work... but few would have the patience and dexterity.......
Hot glue will reseal if things get messy.... use some on the inside corners as well.....
I'd go with option 1 if I owned it. Option 2 if doing for someone else...
Thanks, I got it open, using the second option, melting the outside of the rivet then prying open the case. Unfortunately also creating many scratches in the process
Is the jtag connector the one on the left of the power switch?
I tried hooking them up right now but my old chinese jtag thingy died. I'll have to find some people at a mobile repair shop who have another one. Possibly today or tomorrow.
Essentially what does the community need? Dumping the entire flash memory? I haven't worked on routers before.
Can I have a more foolproof guide, on what is needed to develop on this.
Edit: Hmm that arrangement seems correct. So center circle GND, end circle TX, circle next to square RX, and JP1 square is 3.3V. Got that noted, I'll try when I find a jtag.
Edit2: So if I understand correctly, in order to help you guys I will need to do a simple hex dump of the entire flash using OpenOCD/URJTAG? Because I'll use somebody else's jtag tool so I won't be able to keep it for long to do debugging.
-Get a serial bootlog.... and i'm pretty sure in your case she should run rather smoothly.....
**-Grab the imagebuilder and run through a guide at building the 859-firmware.......
Do not flash it - although there is a medium probability of success - non damage.... medium VS brick is not good enough**
-Hunt around / wait for a more specific response here about firmware formats across those devices.
I'm pretty surprised there weren't more hits on it / existing docs going by initial pokings around. So there is a good chance some here has some better specifics.
I am happy to build firmware for you if you need it / fancy stuff as the software side is a bit overwhelming at first.
I'm very glad this is compatible. Thank you so much! It'll be great if you could attempt a build for it. And about bricking no worries, it's a cheap router. And actually, although cheap, it's hardware might be able to support 80+80/160MHz channel/2600mbps, a feature on routers three times as expensive.
//Edit: Nevermind, I found another dirt-cheap USB UART thingy that has 3.3v support, will pick it up tomorrow. It should be compatible. If it works OK, I am open to any testing!
Small problem, I might be dumb.
I got the little USB UART thingy. I determined the pinout on the router. Testing the USB UART device by shorting TX with RX and sending something works, I receive that text back.
But connecting GND and RX to the router results in... [00] I even tried connecting the extra TX and 3.3v pins to no avail.
(character limit, had to use pastebin. The beginning is some scrambled text but then looks ok, it shows the partition table and every part of the boot sequence)
Would it be possible that you close the browser window next time? I'm very interested in seeing what's on other peoples desktops, and their background images too.
If you don't like other people seeing your desktop, maybe you should just post a screenshot of the relevant window, instead of showing your whole desktop.
I removed the picture altogether, it was a bit confusing too, drawn attention away from the main thing
My backgrounds are taken from: https://unsplash.com/
When do I run it? I tried to send it as soon as powered on but the bootlog still didn't change. It appears to be locked.
Does that require actual JTAG instead of UART?
Or do I need to enter the router in a special boot mode?
Is the stock firmware upgrade image of any help? ftp://ftp2.dlink.com/PRODUCTS/DIR-842/REVC/DIR-842_REVC_FIRMWARE_v3.10B05.zip. I could open the "middle" upgrade bin in 7-Zip and it has pretty much Linux firmware with some files even taken from OpenWrt. The final bin can't be opened and requires Binwalk. Let me check.
Any news, anyone working on this?
I am willing to mail the device to someone in Europe if that helps, I don't care much about things and I tore it apart anyway, if I can help with that I'll go ahead
The bootlog you put on pastebin seems to throw out some garbage earlyboot ( uboot )
So, either it's some sort of obfuscation i'm not familiar with or you'd need to have your serial device on another setting ( common cause of scrambling then unscrambling ) during the early boot stage to interrupt ( if it's possible - most are )
Search up on your device..... re: bootloader baud changes and interrupt key sequences.
( next common one to try would be 38xxx whatever it is..... and then 56xxx )
Oh, I understood. This is why it wasn't accepting any sort of command.
Anyway, now the descrambled part of the bootlog is showing some memory addresses and more filesystem info. Is it of enough help for at least some test builds?