Davolink DV-201AMR

This device is NOT RECOMMENDED for future use with OpenWrt due to low flash/ram.
DO NOT BUY DEVICES WITH 4MB FLASH / 32MB RAM if you intend to flash an up-to-date and secure OpenWrt version onto it! See 4/32 warning for details.

1) This device does not have sufficient resources (flash and/or RAM) to provide secure and reliable operation.
This means that even setting a password or changing simple network settings might not be possible any more, rendering the device effectively useless. See OpenWrt on 4/32 devices what you can do now.

2) OpenWrt support for this device has ended in 2022.
19.07.10 was the last official build for 4/32 devices.

The Davolink DV-201AMR is a an ADSL modem with 4 Fast Ethernet ports, Wireless Access Point and VoIP (2 times FXS). The modem was distributed by Versatel/Tele2 in the Netherlands until beginning 2007.

NOTE: Internal ADSL not supported.

OpenWrt Version Supported Notes
Backfire 10.03.1 CRC error after the first boot
Attitude Adjustment 12.09 may run out of memory

NOTE: Old versions need to have the mtd changes to fix crc error for the brcm63xx platform created by Cshore (tested with 25565).

SoC CPU Freq Ram Flash Network USB Serial JTag
Broadcom BCM6348 256MHz 16MiB 8MiB 4 x 1 Yes Yes Yes

Note: On the DV-201AMR only device USB is supported e.g. to provide Internet access via USB.

Note: Before installing a new image it might be a good idea to make a backup first. See JTAG below.

  1. downloads You should download the current trunk version, and compile.
  2. generic.flashing Now write this firmware-file onto the flash-chip of your device. You can use the CFE web-interface.
  • Quickest way is to download a precompiled image, look for openwrt-96348GW-generic-squashfs-cfe.bin. You can install missing packages on the jffs2 partition later per opkg update then for example opkg install kmod-ath9k wpad-mini.
  • You can allways build your own image. Chose Broadcom BCM63xx as target system and use Target Profile (Broadcom BCM43xx WiFi (wl, proprietary)).
Davolink DV-201AMR Flash Layout OpenWrt
Layer0 MX29LV640MB 4Mx16 BotB 8192KiB
CFE Backup Layer lower half flash 4096KiB upper half flash 4096KiB
Layer1 mtd0 mtd5 linux 3968KiB mtd4
Layer2 mtd0 mtd1 mtd2 rootfs 3072KiB mtd4
Layer3 mtd0 mtd1 mtd3 mtd4
Size in KiB 64KiB 895.75KiB 1536KiB 1600KiB 64KiB
Name CFE kernel rootfs_data nvram
mountpoints none none / = /rom /overlay none
file system none none SquashFS JFFS2 none

This section deals with how you install OpenWrt from a device freshly opened.

  • Connect a router LAN port directly to your PC.
  • Configure your PC with a static IP address between 192.168.1.2 and 192.168.1.254. E. g. 192.168.1.2 (gateway and DNS is not required).
  • Reset router to factory defaults (and stop at CFE) by holding the reset button until red LED on front is lit (takes about 10 to 20 sec.)).
  • Browse to the image to upload to router
  • Wait for it to reboot
  • Due to the inclusion of the 0xdeadc0de value (read flash.layout) the bootloader detects a CRC failure and will revert to the backup image. Cshore created a fix that will correct the CRC value. use the following command to initiate the fix:
   mtd fixtrx linux 
  • Telnet to 192.168.1.1 and set a root password, or browse to http://192.168.1.1 if LuCI is installed.

If you want to upgrade using TFTP you follow these steps (as an alternative to the above install process).

  • Connect via serial, power-on and hit any key within a second after seeing the message:
  *** Press any key to stop auto run (1 seconds) ***
  Auto run second count down:
  • This will stop the router at CFE but doesn't reset router to factory defaults.
  • From the prompt run the following command: CFE> f <ip-address>:<image-name>
    Where the <ip-address> is the IP address of the TFTP server, and the <image-name> the filename of the image you want to install.
  • Wait for it to reboot
  • Due to the inclusion of the 0xdeadc0de value (read flash.layout) the bootloader detects a CRC failure and will revert to the backup image. Cshore created a fix that will correct the CRC value. use the following command to initiate the fix:
   mtd fixtrx linux 
  • Telnet to 192.168.1.1 and set a root password, or browse to http://192.168.1.1 if LuCI is installed.

After flashing, proceed with First Login and than Basic configuration.
Set up your Internet connection, configure wireless, etc.

Internet connection via LAN interface

To install packages like needed for installing LuCI (the Web interface) you need to connect the router to the Internet. Because we don't have a working ADSL driver (WAN interface), we need to connect to the Internet via the LAN interface. I used ICS on a Win PC. Connect the router using an Ethernet cable to the PC and configure the PC for Internet Connection Sharing. I left the router IP address on the default of 192.168.1.1/24. On the PC you can force to use the same range by configuring an fixed IP addres on the LAN interface connected to the router (e.g. 192.168.1.90/24). Be sure that the router with Internet access doesn't use the same range.

Changes needed on the router:

vi /etc/config/network 
    option dns    <ip-adres van Internet access router> 
reboot
route add default gw <ip-adres van LAN interface>

The router should now be able to ping a www URL and receive an reply.

The default network configuration is:

Interface Name Description Default configuration
br-lan LAN & WiFi 192.168.1.1/24
eth1 LAN ports (1 to 4) None
wl0 WiFi Disabled

hardware.button on howto use and configure the hardware button(s).

BUTTON Event
Init reset

The Davolink DV-201AMR has one button. The Reset button. It is located at the rear between LAN1 and TEL2 connectors.

Architecture: MIPS
Vendor: Broadcom
Bootloader: CFE (version 1.0.37-4.3)
Board Id: DV201AMR
System-On-Chip: Broadcom BCM6348
CPU/Speed BMIPS3300 V0.7 256 Mhz
Flash-Chip: AMD AM29LV640MB
Flash size: 8192 KiB
RAM: 16 MiB
Wireless: Broadcom BCM4320 802.11 Wireless Controller 5.10.56.27
Ethernet: BCM5325
USB: Yes 1 x slave 1.1
Serial: Yes
JTAG: Yes

Model Number DV-201AMR

DV-201AMR case front DV-201AMR case back

Note: This will void your warranty!

  • To remove the cover remove the rubber pads from the bottom and remove the 4 screws under the pads.
  • You can than lift the top cover.
  • You than find the front panel, back panel, and PCB.

Main PCB
DV-201AMR PCB

port.serial general information about the serial port, serial port cable, etc.

See photo of the PCB for the location Pinout:

1 VCC 3.3V
2 GND
3 TX
4 RX
5 GND
6 VCC 3.3V

Serial settings: Baud rate: 115200, Data: 8 bit, Parity: none, Stop: 1 bit, Flow control: none

How to connect to JTAG interface, and how to backup and reflash the device with debrick utility modified by Cshore

Before you can connect the router to your parallel port of the PC you need to solder a header to the PCB to be able to connect the JTAG cable.

First download, unpack and compile the needed files:

wget -O HairyDairyMaid_WRT54G_Debrick_Utility_v48~cshore2.zip --no-check-certificate https://docs.google.com/uc?id=0B07LcVZMfvdkZTc1MDA5MjUtZTMzYy00OGQzLWE5MjAtODFiN2RkMTJmNDQ5&export=download&hl=en
unzip HairyDairyMaid_WRT54G_Debrick_Utility_v48~cshore2.zip
cd HairyDairyMaid_WRT54G_Debrick_Utility_v48~cshore
make

results in the following executable:
“debrick”
“switchend”

Before using the debrick tool remove the printer module

rmmod lp

Backup the current content of the router:

First the CFE:
Connect the power to the router, and after the LAN LED's go off use the following command:

./debrick -backup:custom /window:1fc00000 /start:1fc00000 /length:10000 /fc:62 /notimestamp /noreset /noemw /nocwd /bigendian

After 100% is reached rename the resulting file to something meaningfull.

mv CUSTOM.BIN.SAVED cfe-<route-mac>.bin


Second the CFE config:

./debrick -backup:custom /window:1fc00000 /start:1fc00580 /length:0400 /fc:62 /notimestamp /noreset /noemw /nocwd /bigendian

After 100% is reached rename the resulting file to something meaningfull.

mv CUSTOM.BIN.SAVED cfe-config-<route-mac>.bin



NOTE: The filesystem and nvram are probably only correct for the original (non OpenWRT) firmware.

Next the filesystem:

./debrick -backup:custom /window:1fc00000 /start:1fc10000 /length:3e0000 /fc:61 /notimestamp /noreset /noemw /nocwd /bigendian

After 100% is reached rename the resulting file to something meaningfull.

mv CUSTOM.BIN.SAVED filesystem-<route-mac>.bin


As last the nvram:

./debrick -backup:custom /window:1fc00000 /start:1fffa000 /length:5000 /fc:61 /notimestamp /noreset /noemw /nocwd /bigendian

After 100% is reached rename the resulting file to something meaningfull.

mv CUSTOM.BIN.SAVED nvram-<route-mac>.bin


Flashing a CFE

NOTE: Normally you only flash the CFE and with a good working CFE you can install the image via the web-interface or tftp-server. Command to use for flashing the CFE (named CUSTOM.BIN):

./debrick -flash:custom /start:1fc00000 /window:1fc00000 /length:10000 /nobreak /noreset /bigendian

Before flashing a CFE verify it is in the correct format (big-endian versus little-endian) Verify the first 4 bytes with the following command:

od -x <file name> | head -n 2

The file should start with 0278 1000

If this is not the case you can change the endianness with the switchend tool created by Cshore included in the download above. Command to use:

cat bigendian_cfe_file.bin | ./switchend > CUSTOM.BIN

otherwise make sure the filename of the CFE is CUSTOM.BIN (E.g. mv cfe.bin CUSTOM.BIN).

  1. you could read about bootloader in general or about cfe in particular.

LinuxInside created a CFE for the DV-201AMR that doesn't make a backup.

Image for regular cfe the trx is copied to low half of flash. Map is as follows:

  start          len
  0x00000000:<firmware>                           backup
  <firmware>:-0x00400000                          rootfs_data
  0x00400000:0x00010000                           CFE:RO
  0x00410000:0x003f0000                           linux
  0x00410000+<kernel>:<rootfs_len>                rootfs
  0x00410000+<firmware>:-0x8000000                free1

Patched CFE, proposed MAP is like:

  start          len
  0x00000000:0x00010000                           free2
  0x00010000:0x003f0000                           rootfs_data
  0x00400000:0x00010000                           CFE:RO
  0x00410000:0x003f0000                           linux
  0x00410000+<kernel_len>:<rootfs_len>            rootfs
  0x00410000+<kernel_len>+<rootfs_len>:-0x8000000 free1

Patched-cfe-for-Davolink.bin
See also the following forum update: http://forum.openwrt.org/viewtopic.php?pid=81093#p81093

To install de CFE after OpenWRT is installed

<code>mtd write Patched-cfe-for-Davolink.bin /dev/mtd0</code>

Tried the above command a few times but it bricks the router. Asked why this is in this thread.
Instead use the following command:

dd if=/tmp/Patched-cfe-for-Davolink.bin of=/dev/mtd0
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2019/02/12 21:24
  • by tmomas