User Tools

Site Tools


toh:avm:avm_fritz_box_4040

AVM FRITZ!Box 4040

AVM FRITZ!Box 4040 is a versatile home router, supporting 802.11ac Wi-Fi and Gigabit Ethernet but has no integrated modem. Instead, the WAN port can be connected to several types of upstream modems like fiber, cable or DSL.

AVM FRITZ!Box 4040

Supported Versions

Hardware Highlights

ModelVersionSoCCPU MHzFlash MBRAM MBWLAN HardwareWLAN2.4WLAN5.0100M portsGbit portsModemUSB
FRITZ!Box 4040Qualcomm Atheros IPQ401863832256Qualcomm Atheros IPQ4018b/g/na/n/ac-5-1x 2.0, 1x 3.0

Installation

When this device is powered on, the EVA bootloader allows FTP connection attempts during a certain time frame. The FTP server can be reached at IP 192.168.178.1, so give your workstation the IP 192.168.178.2 and try to connect to the recently powered on device after a few seconds.

$ ftp -n -v -p 192.168.178.1
Connected to 192.168.178.1 (192.168.178.1).
220 ADAM2 FTP Server ready
ftp> quote USER adam2
331 Password required for adam2
ftp> quote PASS adam2
230 User adam2 successfully logged in
ftp> quote MEDIA FLSH
200 Media set to MEDIA_FLASH
ftp> binary
200 Type set to BINARY
ftp> put openwrt-18.06.1-ipq40xx-avm_fritzbox-4040-squashfs-eva.bin mtd1
local: openwrt-18.06.1-ipq40xx-avm_fritzbox-4040-squashfs-eva.bin remote: mtd1
227 Entering Passive Mode (192,168,178,1,12,0)
150 Opening BINARY data connection
226 Transfer complete
5505028 bytes sent in 24,7 secs (223,21 Kbytes/sec)
ftp> quote check mtd1
150 Flash check 0x9F288C3D

Give it the image file you want to flash in the put command. After it displays something like “150 Flash check 0x…” the procedure is done. It will not terminate automatically, so power-cycle the device.

If you get an error “502 command not implemented” use the command passive after binary.

Note: If you like to ensure there are no configuration leftovers from the previously installed firmware, reset it to factory defaults before flashing.

Flashing Stock Firmware

If you want to go back to stock firmware, download the .image file from AVM's website linked above in the box. Rename the file extension to .tar, extract the archive and find the file var/tmp/kernel.image. Use the FTP flashing procedure above and give the put command the kernel.image file.

Alternatively, AVM offers a recovery tool for Windows: https://ftp.avm.de/fritzbox/fritzbox-4040/other/recover/

Flash Layout

FIXME Find out flash layout, then add the flash layout table here (copy, paste, modify the example).

Please check out the article Flash layout. It contains examples and explanations that describe how to document the flash layout.

Upgrading OpenWrt

Debricking

Failsafe mode

Basic configuration

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

Specific Configuration

Network interfaces

The default network configuration is:

Interface Name Description Default configuration
br-lan LAN & WiFi 192.168.1.1/24
eth0 LAN ports (1 to 4) -
wan (eth1) WAN port -
radio0 WiFi (2.4 GHz) Disabled
radio1 WiFi (5 GHz) Disabled

Switch Ports (for VLANs)

Port Switch port
CPU (eth0) 0
LAN 1 1
LAN 2 2
LAN 3 3
LAN 4 4

Buttons

hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.

The AVM FRITZ!Box 4040 has the following buttons:

BUTTON Event
WPS unknown
WLAN unknown

Hardware

Info

General
Brand AVM
Model FRITZ!Box 4040
Versions
Device Type WiFi Router
Availability Available 2019
Comments - general
OpenWrt Support
Supported Since Revision
Supported Since Release 18.06.0
Supported Current Release 18.06.2
Unsupported
Hardware
Instruction set ¿
Sub Instruction Set ¿
Bootloader EVA
Target ipq40xx
System-On-Chip
CPU MHz 638
Flash MB 32
RAM MB 256
Network
Ethernet 100M ports -
Ethernet Gbit ports 5
Switch Qualcomm Atheros QCA8075
Modem -
VLAN ¿
Comments - network ports
Wireless
WLAN 2.4GHz b/g/n
WLAN 5.0GHz a/n/ac
WLAN Hardware Qualcomm Atheros IPQ4018
Detachable Antennas -
Comments - WLAN
Interfaces
USB ports 1x 2.0, 1x 3.0
SATA ports -
Serial Yes
JTAG ¿
Comments - USB & SATA ports
Misc
LED count 5
Button count 2
Power supply 12 VDC, 1.5 A
Links
Forum Topic URL
WikiDevi URL https://wikidevi.com/wiki/AVM_FRITZ!Box_4040
OEM device homepage URL https://avm.de/produkte/fritzbox/fritzbox-4040/
Firmware OEM Stock URL https://ftp.avm.de/fritzbox/fritzbox-4040/
Firmware OpenWrt Install URL http://downloads.openwrt.org/releases/18.06.2/targets/ipq40xx/generic/openwrt-18.06.2-ipq40xx-avm_fritzbox-4040-squashfs-eva.bin
Firmware OpenWrt Upgrade URL http://downloads.openwrt.org/releases/18.06.2/targets/ipq40xx/generic/openwrt-18.06.2-ipq40xx-avm_fritzbox-4040-squashfs-sysupgrade.bin
Edit the underlying data View/Edit data

Photos

Front:
Insert photo of front of the casing

Back:
Insert photo of back of the casing

Backside label:
Insert photo of backside label

Opening the case

Note: This will void your warranty!

FIXME Describe what needs to be done to open the device, e.g. remove rubber feet, adhesive labels, screws, …

  • To remove the cover and open the device, do a/b/c

Main PCB:
Insert photo of PCB

Serial

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

How to connect to the Serial Port of this specific device:
Insert photo of PCB with markings for serial port

FIXME Replace EXAMPLE by real values.

Serial connection parameters
for AVM FRITZ!Box 4040 @@Version@@
EXAMPLE 115200, 8N1

JTAG

port.jtag general information about the JTAG port, JTAG cable, etc.

How to connect to the JTAG Port of this specific device:
Insert photo of PCB with markings for JTAG port

Bootloader mods

Hardware mods

None so far.

Bootlogs

OEM bootlog

COPY HERE THE BOOTLOG WITH THE ORIGINAL FIRMWARE


OpenWrt bootlog

COPY HERE THE BOOTLOG ONCE OPENWRT IS INSTALLED AND RUNNING


Notes

Space for additional notes, links to forum threads or other resources.

Tags

toh/avm/avm_fritz_box_4040.txt · Last modified: 2019/03/07 05:10 by sindastra