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:TFFS

From BoxMatrix
(Redirected from TFFS)


BoxMatrix >> Lexicon >> FRITZ-Terms >> TFFS @ 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

Computer FRITZ I18N Telephony Smarthome Internet Protocols Multimedia Formats Hardware Software Research

Term

Goto:   FRITZ!OS   -   TFFS 1.0  -  TFFS 2.x  -  TFFS 3.x  -  Confusion  -  SMW-Browser

Details

TFFS (Tiny Flash FileSystem) is a Filesystem developed by AVM to store the Bootloader-Environment and TFFS-Configuration.
It is open source and could be found in each of the AVM-Tarballs.

FRITZ!OS

TFFS 1.0

TFFS version 1.0 was designed for NOR-Flash and used a single partition.

Old FRITZ!Box 4 MB / 4096 KB TFFS1 layout - click any column header to sort by its values.

Env. Start Add. End Addr. Name Filesys Linux Size Chip
1 mtd0 0x900C0000 0x90370000 filesystem squashfs mtd0 2752 KB NOR-Flash
2 mtd1 0x90010000 0x900C0000 kernel blob mtd1 704 KB NOR-Flash
3 mtd2 0x90000000 0x90010000 urlader blob mtd2 64 KB NOR-Flash
4 mtd3 0x90370000 0x903F0000 jffs2 jffs2 mtd3 512 KB NOR-Flash
5 mtd4 0x903FE000 0x90400000 reserved unknown mtd4 8 KB NOR-Flash
6 mtd5 0x903F0000 0x903FE000 tffs tffs 1.0 mtd5 56 KB NOR-Flash
6 partitions in Environment   -   6 partitions in Linux

From fb fw 3.87 install-4MB-urlader - get textual Bootloader-Environment:

flash_tffs -d /dev/mtdblock/5 -C /var/tmp/tffs.config -o /dev/null

TFFS 2.x

TFFS version 2.x also is designed for NOR-Flash but uses 2 partitions.

New FRITZ!Box 4 MB / 4096 KB TFFS2 layout - click any column header to sort by its values.

Env. Start Add. End Addr. Name Filesys Linux Size Chip
1 mtd0 0x900C0000 0x903C0000 filesystem squashfs mtd0 3072 KB NOR-Flash
2 mtd1 0x90010000 0x900C0000 kernel blob mtd1 704 KB NOR-Flash
3 mtd2 0x90000000 0x90010000 bootloader blob mtd2 64 KB NOR-Flash
4 mtd3 0x903C0000 0x903E0000 tffs (1) tffs 2.0 mtd3 128 KB NOR-Flash
5 mtd4 0x903E0000 0x90400000 tffs (2) tffs 2.0 mtd4 128 KB NOR-Flash
6 mtd5 0x903F0000 0x903FE000 invalid invalid mtd5 56 KB NOR-Flash
6 partitions in Environment   -   6 partitions in Linux

mtd0 grew to have more space for the filesystem. mtd5 is a leftover from the old layout and is invalid.

TFFS2+YAFFS2

The 3370 was the first model with FRITZ!OS 5.0, with NAND-Flash and with Hybrid TFFS, see the OldWiki explanation (german).
It uses a hybrid of a 256 KB S-Flash for the Bootloader and 2 TFFS2 partitions and 128 MB NAND-Flash for the remainder,
which includes a single 2 MB YAFFS2 config partition.

3370 TFFS2+YAFFS2 layout - click any column header to sort by its values.

Env. Start Add. End Addr. Name Filesys Linux Size Chip
1 mtd0 0x00400000 0x03400000 filesystem squashfs mtd1 49152 KB NAND-Flash
2 mtd1 0x00000000 0x00400000 kernel blob mtd0 4096 KB NAND-Flash
3 - 0x03800000 0x06800000 reserved-filesystem squashfs mtd3 49152 KB NAND-Flash
4 - 0x03400000 0x03800000 reserved-kernel blob mtd2 4096 KB NAND-Flash
5 mtd2 0x00000000 0x00020000 urlader blob mtd6 128 KB S-Flash
6 mtd3 0x00020000 0x00030000 tffs (1) tffs 2.x mtd7 64 KB S-Flash
7 mtd4 0x00030000 0x00040000 tffs (2) tffs 2.x mtd8 64 KB S-Flash
8 mtd5 0x00000000 0x00200000 config (size only) - - 2048 KB NAND-Flash
9 - 0x06800000 0x06a00000 config (real) yaffs2 mtd4 2048 KB NAND-Flash
10 - 0x06a00000 0x08000000 nand-filesystem yaffs2 mtd5 22528 KB NAND-Flash
6 partitions in Environment   -   9 partitions in Linux

The config partition is mounted to /var/flash and contains ordinary files which are stored on the yaffs2 partition.
But some of the files are character devices which map to the TFFS:

# ls -l /var/flash | grep '^c'

crw-r--r--    1 root     root      244,  95 Jan  1 01:00 crash.log
crw-r--r--    1 root     root      244,  99 Jan  1 01:00 fx_def

There's a subfolder /var/flash/data repeating all files except those stored in the TFFS.

TFFS2-Crypt

In the FRITZ!Media 8020, 8040 and 8260 set-top-boxes AVM used crypted TFFS.

See CONFIG_TFFS_CRYPT.

TFFS 3.x

TFFS version 3.x is designed for NAND-Flash and uses a single partition. TFFS3 was introduced with FRITZ!OS 5.0.

Confusion

There are other (unrelated) filesystems which are abbreviated TFFS:

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

T