Installation¶
What you need to do to install/flash Freetz on your FRITZ!Box.
Installation paths¶
There are three ways to install firmware on a FRITZ!Box:
- AVM web interface:
Historically, both AVM and Freetz images could be installed this way. Starting around FRITZ!OS 6.5, AVM enforces signature checks on uploaded firmware.
Those signatures are generated by AVM only, so modified images are rejected.
If a self-signed (default) Freetz image is already installed, it includes an additional signature key and allows installing images signed with the same key. - Freetz web interface:
AVM and Freetz images can be installed without signature checks. Downgrades are possible, though generally not recommended. - Bootloader/Urlader/ADAM2/ADAM/EVA/FTP:
AVM and Freetz images can be installed without signature checks. The exact method depends on the device generation.
For initial installation, bootloader flashing is usually required.
Bootloader¶
The correct bootloader method depends on the device.
In general, tools/push_firmware from Freetz-NG works across all supported methods.
Other tools/scripts exist, and advanced users can also flash manually over FTP.
Bootloader defaults:
* IP: 192.168.178.1 (not necessarily the runtime IP configured in the web UI)
* Credentials: adam2 / adam2
If these credentials do not work, you are likely connected to the normal FRITZ!OS NAS FTP service instead.
The bootloader is reachable only for a few seconds after powering on the device. If you miss the timing window, retry.
Intermediate network devices (switches) can help or hurt timing. Avoid WLAN and powerline for flashing.
Most FRITZ!Box models (except very old single-boot units) have two firmware slots and alternate between them.
You can inspect/switch the active slot using GETENV linux_fs_start in bootloader mode:
BOOTSELECTION
Methods¶
Available scripts/tools for bootloader flashing:
-
Gen 0: kernel-boot / kernel24
Early FRITZ!Box devices with Linux kernel 2.4tools/recover-adamfrom ds-mod
Kernel/filesystem are written separately (mtd1kernel,mtd0filesystem).
After a bootloader update, partition layout changes and only kernel 2.6 images can be installed.
-
Gen 1: single-boot / NOR
Early FRITZ!Box models (7050 to 7390)tools/push_firmwarefrom Freetz-NG- push_firmware from legacy Freetz
- fritzflash.py from Freifunk/Gluon
- ruKernelTool (discontinued)
- DieFlashe by BoxenLuther
-
Gen 2: ram-boot / NAND / inmemory
Newer FRITZ!Box models after 7390, such as 7490 and 7590 -
Gen 5: fit-boot / fitimg
Newest FRITZ!Box models such as 7530 AX and 5530 -
Gen 3: dual-boot
Older cable FRITZ!Box models with Puma6 (for example 6490, 6590)tools/push_firmwarefrom Freetz-NG- DieFlashe by BoxenLuther
-
Gen 4: uimg-boot
Newer cable FRITZ!Box models with Puma7 (for example 6591, 6660)tools/push_firmwarefrom Freetz-NG- uimg-tool by fesc2000 (pack/unpack), also used in Freetz-NG
- BIOS/version notes: ffritz by fesc2000
Short version: use tools/push_firmware unless you explicitly need something else.
push_firmware¶
- Show all options:
tools/push_firmware --help - You can also call it via
make push_firmware(no extra parameters) - Without parameters, it uses the latest built image
- If you do not know why you need a parameter, do not use it; auto-detection should normally work
Notes¶
- Terms like NOR, NAND, INHAUS are often community naming conventions, not official AVM terminology.
- There is much more reference material in forums (IPPF, IPF) and on GitHub (Freetz-NG, YourFritz).
- "FRITZ!Box" here also includes other AVM devices that are not branded as FRITZ!Box.