OpenWrt Forum Archive

Topic: Civilizing the wild: how to flash DD-WRT on EP-DL520G

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

Hello,

I just got a new EDUP EP-DL520G ADSL2+/switch/wireless and want to enlighten it's brain with new knowledge. Best option, of course will be to flash DD-WRT on it, but it resists my attempts for a full day now. Other option is to program it via telnet, as I will have few of those routers, and going via the web interface is a loss of time.

So, my point is how to flash it or make it run a script upon boot-up? It refuses ftp; sftp times out; via telnet I can not save anything on squashfs. I assume the configuration shall be on some rw partition, but no luck to mount any. I need to make some site-specific configuration - traffic control, etc.

Router web interface is Actiontec; here and there in the text is mentioned Q-West; and as seen below, the model is given as:  ProductID       GT701-WG.

The router runs linux (so, not so wild, anyway), likey based on DD-WRT: Linux version 2.4.17_mvl21-malta-mips_fp_le (root@new-host-3) (gcc version 2.95.3 20010315 (release/MontaVista)) #1 Mon Jul 3 16:12:57 UTC 2006

# cat /proc/cpuinfo
processor               : 0
cpu model               : MIPS 4KEc V4.8
BogoMIPS                : 149.91
wait instruction        : no
microsecond timers      : yes
extra interrupt vector  : yes
hardware watchpoint     : yes
VCED exceptions         : not available
VCEI exceptions         : not available

# mount
/dev/mtdblock/0 on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /var type ramfs (rw)

It has 4megs of flash (/dev/mtdblock/0 - 4) and 16 megs of memory; there is nice information in /proc/ticfg/env:

# 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
ProductID       GT701-WG
HWRevision      2A+
SerialNumber    none
AEIBootVersion  0.9i
my_ipaddress    192.168.0.1
prompt  Adam2_AR7RD
firstfreeaddress        0x9401d5a8
req_fullrate_freq       125000000
maca    00:15:05:13:A4:96
mtd0    0x900d0000,0x903e0000
mtd1    0x90010000,0x900d0000
mtd2    0x90000000,0x90010000
mtd3    0x903f0000,0x90400000
mtd4    0x903e0000,0x903f0000
usb_pid 0x6010
usb_vid 0x1668
autoload        1
macb    00:15:05:13:A4:97
macc    00:15:05:13:A4:98
usb_board_mac   00:15:05:13:A4:9A
usb_rndis_mac   00:15:05:13:A4:9B
mac_ap  00:15:05:13:A4:99
usb_prod        Actiontec Gateway
usb_man Actiontec Electronics, Inc.
HWA_RNDIS       00:E0:A6:66:41:EB
HWA_HRNDIS      00:E0:A6:66:41:E1
modulation      MMODE
defaults       
DSL_FEATURE_CNTL_0      0x0000020C

So, ideas of how to flash DD-WRT in it without losing ADSL2+, the USB port, the Ethernet port and the wireless is welcome. Other possibility is to modify start-up scripts.

Thanks,
George.

Wrong forum. This is the OpenWRT forum...

ggeorgiev wrote:

mtd0    0x900d0000,0x903e0000
mtd1    0x90010000,0x900d0000
mtd2    0x90000000,0x90010000
mtd3    0x903f0000,0x90400000
mtd4    0x903e0000,0x903f0000

Do it at your own risk.
Backup mtd0, mtd1, mtd3 and mtd4 before continuing. I don't know how. Maybe by ftp get.

Download openwrt-ar7-squashfs.bin.

$ ftp 192.168.0.1
Connected to 192.168.0.1.
220 ADAM2 FTP Server ready.
Name (192.168.0.1:user): adam2
530 Please login with USER and PASS.
331 Password required for adam2.
Password: adam2
230 User adam2 successfully logged in.
ftp> binary
200 Type set to I.
ftp> quote MEDIA FLSH
200 Media set to FLSH.
ftp> quote UNSETENV mtd1
200 UNSETENV command successful
ftp> quote UNSETENV mtd0
200 UNSETENV command successful
ftp> quote SETENV mtd1,0x90010000,0x903e0000
200 SETENV command successful
ftp> put openwrt-ar7-squashfs.bin "openwrt-ar7-squashfs.bin mtd1"
200 Port command successful.
120 service ready in 32 seconds.
150 Opening BINARY mode data connection for file transfer.
ftp: 2818052 bytes sent in 82.82Seconds 45.90Kbytes/sec.
ftp> quote REBOOT
221-Thank you for using the FTP service on ADAM2.
221 Goodbye.
Connection closed by remote host.
ftp> quit

Modified from wiki. Untested.

Actiontec GT701D - OpenWrt Wiki
Actiontec GT704WG - OpenWrt Wiki

Boot output from the serial console:

PSPBoot1.3 rev: 1.3.7.15
(c) Copyright 2002-2005 Texas Instruments, Inc. All Rights Reserved.

Press ESC for monitor... 1

Stop Adam2 before you can access the ftp server, I think.

The discussion might have continued from here.