If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:freetz

From BoxMatrix


BoxMatrix >> Configuration >> freetz @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Static-Config Bin-Files Audio-Files Crypto-Files Vartar-Items TFFS-Config Temp-Files Data-Dirs Inet-Providers VoIP-Providers Firmware Research

TFFS-Configfile

Goto:   Warning  -  Examples  -  Dependencies   -   Model-Matrix   -   Missing Supportdata   -   SMW-Browser

Details

This file is located at /var/flash/ - but only exists in Freetz modified firmware.

freetz stores the persistent configuration of Freetz in a typically uncompressed tar file.
At runtime the contents are extracted to tmpfs at /tmp.

The config is processed by a bunch of mod* commands which are located in make/pkgs/mod/files/root/usr/bin.
These commands are installed to /usr/bin in the modified firmware and could be called from the shell.

modsave flash saves the freetz configuration from /tmp to /var/flash/freetz.

modload loads the freetz configuration from /var/flash/freetz to /tmp.

The TFFS device node is created in rc.tffs.sh. It uses mknod with the Major of the tffs device from /proc/devices
and a Minor of 60 (0x3C):

tffs_nodes_list="$((0x3C)),freetz"
tffs_node_prefix="/var/flash/"

This only applies if the TFFS-Configuration uses AVM's TFFS filesystem, which uses character devices for each file.
Some models use YAFFS2 to store the config, which can create files on the fly.

Warning

AVM's factory reset performed by setfactorydefaults only clears the user configuration of the AVM Webinterface.
The freetz configuration is not cleared, even if you install an original firmware.

The TFFS still stores your config, and a later mod or a mknod will bring it back.

Keep this in mind when you sell a previously modded box! To be safe always use a Recovery.exe before selling it.

This is a problem for Cable models, since AVM does not provide a recovery for them.

Examples

6490 fw 7.57 with freetz-ng:

root@fritz2:/var/mod/root# grep tffs /proc/devices

243 tffs

root@fritz2:/var/mod/root# ls -l /var/flash/freetz

crw-r--r--    1 root     root      243,  60 Feb 21  2000 /var/flash/freetz

root@fritz2:/var/mod/root# tar -tf /var/flash/freetz

flash/
flash/syslogd.diff
flash/vnstat.diff
flash/addhole.diff
flash/rrdstats.diff
flash/users/
flash/users/gshadow
flash/users/shadow
flash/users/group
flash/users/passwd
flash/rsync/
flash/vnstat/
flash/vnstat/vnstat.conf
flash/privoxy/
flash/privoxy/user.action.link
flash/privoxy/user.filter.link
flash/privoxy/user.action
flash/privoxy/user.filter
flash/addhole/
flash/addhole/addhole.cfg
flash/dnsmasq/
flash/dnsmasq/dnsmasq.extra
flash/dropbear.diff
flash/dropbear/
flash/dropbear/ed25519_host_key
flash/dropbear/ecdsa_host_key
flash/dropbear/dss_host_key
flash/dropbear/rsa_host_key
flash/authorized_keys_root/
flash/inetd/
flash/inetd/inetd.user
flash/mod/
flash/mod/.profile
flash/mod/rc.custom
flash/mod/wgetrc
flash/mod/hosts
flash/mod.diff
flash/dnsmasq.diff
flash/openvpn/
flash/openvpn/static.key
flash/htop/

Dependencies

Daily updated index of all dependencies of this config file. Last update: 2024-04-26 06:35 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
A ** in the Mod column marks info from Supportdata2 probes, which by their nature will stay way more incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
0 dependencies for this config file

Model-Matrix

Daily updated index of the presence, path and size of this config file for each model. Last update: 2024-04-26 06:35 GMT.
Showing all models using this config file. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list comes from Supportdata-Probes, which can have arbitrary settings and come from different firmware versions.
It doesn't say much if a model is not listed here. It may be a missing supportdata file or just a disabled feature.

Missing Supportdata

The data in this article is incomplete due to missing Supportdata-Probes for the models listed below.
If you own any of these models and would like to help then please get in touch.

SMW-Browser

Information is currently being retrieved from the backend.