1. D-LINK DSL-524T
edited by Guido Serra
this webpage was created to add more details about that OpenWrtDocs/Hardware/D-Link/DSL-502T
2. NEWS
I experience the same: the box hangs after about one day and the processor is hotter than the back of my finger supports (over 2 seconds). The status led "heart beat" signal stays off when that happens. I now try to cool it with a passive heat sink I ripped off from an unused (old) graphic card. -- RobertSiemer 2008-03-24 02:30:14
Now I know the problem is not cooling related. The AR7 port starting with kernel 2.4.23 crashes after some hours of uptime. see ticket 3019
(Apart from that the heat sink works pretty good: I can still burn my finger with it...) -- RobertSiemer 2008-03-28 15:39:43
ok... seems that they have fixed it in this changeset 10747, but i have no time and no hardware to check it now... it seems not to boot, i need a dsl-524t to vandalize and connect a serial cable to debug on the console -- GuidoSerra 2008-12-01 23:24:22
END january '08 : i'm no more using this device by my customers... it overheats and halts -> DO NOT USE IT
january '08 : the atm module works... it still gives some crap in the logs, but works
december '07 : buggy atm module :_(
3. differences
3.1. Specifications
ADSL modem with ADSL2/2+ support to 24Mbit/s+, it has port 4 LAN ports
Flash chip: 32MBytes - Spansion S29AL032D90TFI04 (Isn't this a 32MBit chip = 4MBytes?) (GuidoSerra to OliverJowett: uhmm, i think you are right)
SDRAM: 128Mb syncronous DRAM - 2M x 4Bank x16 I/O - HYNIX HY57V281620ETP-H (Isn't this a 128Mbit chip = 16MBytes?)
CPU: TNETD7300AZDW (6BZHT99) Texas Instruments AR7 MIPS based
OliverJowett asks: are the GPIO to LED mappings the same as for the 502T? See https://dev.openwrt.org/ticket/2746
GuidoSerra answer: i don't know, i have not focused on that, now i'm trying to figure out how to make the ADSL interface work... or is useless... then, i'll check the leds mapping, i suppose that they are not so much different
RobertSiemer adds: I applied the LED patch from the DSL-502T page. It did not apply cleanly; I had to do some fix-ups to get the svn checkout to compile. All LEDs (ethernet ports, ADSL, status, power) work as expected. I did not touch anything else, especially the /etc/init.d/ledsetup script is still not set as executable... -- RobertSiemer 2008-03-24 02:40:25
3.2. bootloader
OliverJowett speculates: It looks like the flash layout is basically the same as for the DSL-502T. The script in https://dev.openwrt.org/attachment/ticket/2780/adam2flash-502T.pl?format=raw will probably work with the 524T. Currently it checks the ProductID and usb_prod of the bootloader environment before continuing, as a safety check - you will have to modify that check to also allow the 524T. Can you try it out? It makes flashing much simpler!
GuidoSerra: ok, i'll try it, where can i send you a patch?
RobertSiemer says: The script works amazing. I had to comment out the ($usb eq "DSL-502T") or die line. I did not find a good replacement for the usb id either. - I still would like to know how the adam2flash script works.
It seems that you can give the router any IP you like for the boot loader but the script needs no root rights for execution!?
RobertSiemer: After letting the modified adam2flash-502T.pl script change the partitions, the "standard" adam2flash.pl script of OpenWrt seems to work as well.
ip address for adam2 bootloader is 5.8.8.8 (instead of 10.8.8.8 like it was for DSL-502T)
the dump of the adam2 env:
fork:~ zeph$ telnet 192.168.1.1 Trying 192.168.1.1... Connected to mygateway1.ar7. Escape character is '^]'. BusyBox on (none) login: admin Password: BusyBox v0.61.pre (2006.02.09-03:06+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. # cat /proc/ticfg/env memsize 0x01000000 flashsize 0x00400000 modetty0 38400,n,8,1,hw modetty1 38400,n,8,1,hw bootserport tty0 cpufrequency 150000000 sysfrequency 125000000 bootloaderVersion 0.22.02 Adam2_Release 0.22.02_b04_Mar 10 2005 ProductID AR7RD HWRevision Unknown SerialNumber N/A my_ipaddress 5.8.8.8 prompt Adam2_AR7RD firstfreeaddress 0x9401d888 req_fullrate_freq 125000000 maca 00:19:5B:79:16:E8 mtd0 0x90091000,0x903f0000 mtd1 0x90010090,0x90090000 mtd2 0x90000000,0x90010000 mtd3 0x903f0000,0x90400000 mtd4 0x90010000,0x903f0000 autoload 1 autoload_timeout 7 StaticBuffer 120 SW_FEATURES 0X8000 vcc_encaps0 0.0 vcc_encaps1 0.0 vcc_encaps2 0.0 vcc_encaps3 0.0 vcc_encaps4 0.0 vcc_encaps5 0.0 vcc_encaps6 0.0 vcc_encaps7 0.0 modulation 0xffff usb_vid 0x0 usb_pid 0x0 usb_man N/A usb_prod N/A eoc_vendor_id DLink enable_margin_retrain 1 eoc_vendor_serialnum N/A eoc_vendor_revision 20060209 # Connection closed by foreign host. fork:~ zeph$
3.3. Flashing the new firmware
as for DSL-502T check the memory mapping
openwrt-ar7-2.4-squashfs.bin goes to mtd4
and it has... 0x00076B80 as result of searching hsqs with the hexeditor
(THIS IS VALID JUST FOR my binary compiled ad described in the page for the DSL-502T)
Custom memory map for OpenWRT |
|||
Name |
Start |
End |
Description |
mtd0 |
0x90086B80 |
0x903f0000 |
Filesystem |
mtd1 |
0x90010000 |
0x90086B80 |
Kernel |
mtd2 |
0x90000000 |
0x90010000 |
bootloader |
mtd3 |
0x903f0000 |
0x90400000 |
config |
mtd4 |
0x90010000 |
0x903f0000 |
Kernel + FS |
so... edit adam2
USER adam2 PASS adam2 quote "SETENV mtd0,0x90086B80,0x903f0000" (fs) quote "SETENV mtd1,0x90010000,0x90086B80" (kernel) quote "SETENV mtd4,0x90010000,0x903f0000" (fs+kernel)
and flash it!
quote "MEDIA FLSH" binary debug hash put "openwrt-ar7-2.4-squashfs.bin" "c mtd4" quote REBOOT quit
fork:~ zeph$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
BusyBox v1.4.0 (2007-10-16 18:03:36 CEST) 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
KAMIKAZE (bleeding edge, r6250) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/#
3.4. Serial Port
JP6 (5 pins) represents one serial port. On my board it is the only JP with a header soldered. When looking on the LEDs (front) and having the power and ethernet ports on the back JP6 is on the right and has the following pin-out from left to right:
- TX
- GND
- Vcc (3.3V)
- GND
- RX
I use an old mobile phone serial cable (Siemens S25). It didn't cost me anything extra and had exactly three wires to connect (once cut off the phone plug): TX, RX and GND.
console=ttyS0,38400n8