Site Tools


jffs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
jffs [2021/01/24 03:51] hogwildjffs [2021/11/12 00:57] (current) – there is not "underlyingg (Linux) OS" djk44883
Line 1: Line 1:
-Broadcom routers contain two important types of permanent storage:+====== JFFS ======
  
-\\ +The JFFS menu contains settings and information used to createprepare and view the status of JFFS2 partition used for permanent storage.
-**FLASH** - This is where your tomato firmware image is uploaded, stored and executed. At boot time, the image is loaded into squash filesystem which mean it's executed read-only. Flash size is measured in Megabytes (MB).+
  
-**NVRAM** - This is where the configuration is stored. While loading the firmware from the squash filesystem, parameters in the form of variables are fetched from the NVRAM. NVRAM size is relatively small and is measured in Kilobytes KB.\\ +Common routers contain two types of permanent storage:
-Since modern routers have a relatively large amount of FLASH memory available, Tomato can mount the unused storage and make it available to Tomato's underlying (Linux) OS for normal file storage operations. This function is called JFFS.+
  
-The figures below are an example and don't scale properlyThe numbers will vary based on your Tomato version and your hardware specifications. See the [[:hardware_compatibility|HW compatibility]] page for more information on specific FLASH and NVRAM specifications.\\ +**Flash** - is the storage area where the FreshTomato firmware image is uploaded, stored and executedAt boot time, the image is loaded into a squash filesystem which means it's executed read-onlyFlash size is measured in Megabytes (MB)You might find Flash storage occasionally referred to as Flash RAMHowever, the FreshTomato team intentionally avoided this term, to reduce the chance of confusion with traditional (dynamic) RAM.
-[[https://wiki.freshtomato.org/lib/exe/detail.php?id=jffs&media=pasted:20200524-095635.png|{{:pasted:20200524-095635.png}}]]+
  
-**Enable:** Checking this box enables JFFS, as shown in the image image below. (Default: Disabled).\\ +**NVRAM** (Non-volatile RAMis used for storing the hardware's configurationWhile loading the firmware from the squash filesystemparameters in the form of variables are fetched from the NVRAMNVRAM size is relatively small and is measured in Kilobytes (KB).
-**Execute when mounted:** In this fieldyou can enter the name of a script or similar to burn immeidately after the partition becomes available to Tomato(Default: blank).\\ +
-**Total / Free Size: **This displays the storage size available/the storage amount in use. This cannot be changed.\\ +
-**Format / Erase:** The very first time you enable JFFS, you must format the partition. Once formatting is complete, the ("not mounted"should change to ("mounted").\\ +
-Once the JFFS partition is mounted, it can be accessed in the filesystem under the root folder as /jffs .+
  
-\\ +Since modern routers have a relatively large amount of Flash memory available, FreshTomato can mount the unused storage space and make it available to FreshTomato for normal file storage. This function is called JFFS, short for the //Journalling Flash File System// type used for the storage. Currently, JFFS2 (version 2) is used. 
-[[https://wiki.freshtomato.org/lib/exe/detail.php?id=jffs&media=pasted:20200524-101530.png|{{:pasted:20200524-101530.png}}]]\\ + 
-NOTEYou will not be able to upgrade FreshTomato if a JFFS partition is mountedif you do disable JFFS and upgrade FreshTomato you'll lose the content so a backup/restore operation is needed.\\ +The figures below represent an example of storage allocation (not to scale). The numbers will vary based on your FreshTomato version and your hardware specifications. See the [[:hardware_compatibility|Hardware Compatibility]] page for more information on specific FLASH and NVRAM specifications. 
-**Very important**Flash storage is not meant for frequent write operations hence you must avoid constant writes into it e.g. storing the logs in JFFS is a really bad idea at it will shorten your router lifeLimitation is the writes but not the reads so e.g. an entware installation would be totally ok insteadBeaware of your JFFS, it should be used only if no other storage like USB or CIFS is available.+ 
 +\\  [[https://wiki.freshtomato.org/lib/exe/detail.php?id=jffs&media=pasted:20200524-095635.png|{{:pasted:20200524-095635.png}}]] 
 + 
 +**Enable:** Checking this box enables JFFS, as shown in the image below. (Default: Disabled). 
 + 
 +**Execute when mounted:** In this field, you can enter the name of a script or similar to run immediately after the partition becomes available to FreshTomato. (Default: blank). 
 + 
 +**Total / Free Size: **This displays the storage size available to be used. This cannot be changed. 
 + 
 +**Format / Erase:** The very first time you enable JFFS, you must format the partition with the JFFS2 filesystem. Once formatting is complete, the "(not mounted)" status should change to "(mounted)" to reflect that FreshTomato has access to the partition. Once the JFFS partition is mounted, it can be accessed in the filesystem under the root directory as /jffs . 
 + 
 +\\  [[https://wiki.freshtomato.org/lib/exe/detail.php?id=jffs&media=pasted:20200524-101530.png|{{:pasted:20200524-101530.png}}]] \\ 
 + 
 +===== Notes/Troubleshooting ===== 
 + 
 +**WARNING**As a safety precaution, FreshTomato will prevent you from performing firmware upgrades if a JFFS partition is mounted/in use. The reason for this is that if you were to disable JFFS and upgrade the FreshTomato firmware, you might lose the contents of the /jffs partition. For this reason, you should do a backup and restore operation to preserve the data thereTo learn more about backup and restore of JFFS partition data, see the XXXX page. 
 + 
 +**WARNING: **Flash storage is not designed for frequent write operations. Because of this, you should avoid performing frequent write operations to it. For example, avoid storing the logs in JFFS, as this will shorten the life of your router. However, flash memory's limitation is in the number or write operations, but not the number of read operationsTherefore, an Entware installation would be fineBe aware that your JFFS should be used only if no other storage like USB or CIFS share is available.
  
  
jffs.1611460294.txt.gz · Last modified: 2021/01/24 03:51 by hogwild