Moxa UC-7101-T-LX [21/46] Journaling flash file system jffs2
![Moxa UC-7124-CE [21/46] Journaling flash file system jffs2](/views2/1199633/page21/bg15.png)
UC-7101/7110/7112 Software User’s Manual Software Package
3-3
The partition sizes are hard coded into the kernel binary. You must rebuild the kernel to change the
partition sizes. The flash memory map is shown in the following table.
Flash Context
Flash Address
Size
Access control
Boot loader
0 – 0x3ffff
256 K
Read ONLY
Kernet &
Root File System
0x40000– 0x3fffff
4 M
Read ONLY
JFFS2
User Directory
0x400000 – 0x7fffff
4 M – 256 K
Read / Write
JFFS2
Developers write their own programs only on partitions /etc, /home, /tmp, and /usr/bin. It is
advised the executed file be put in /usr/bin as this will allow developers to use hotkeys.
In addition to the flash file systems, a RAM based file system is mounted on /var/.
Journaling Flash File System (JFFS2)
The flash User Directory is formatted by the Journaling Flash File System (JFFS2), which places a
compressed file system on the flash, transparent to the user.
Axis Communications in Sweden developed the Journaling Flash File System (JFFS2).
JFFS2 provides a file system directly on flash, rather than emulating a block device designed for
use on flash-ROM chips. It recognizes flash-ROM chips’ special write requirements, does
wear-leveling to extend flash life, keeps the flash directory structure in the RAM at all times, and
implements a log-structured file system that is always consistent—even if the system crashes or
unexpectedly powers down. It does not require fsck on boot up.
JFFS2, a newer version of JFFS, provides improved wear-leveling and garbage-collection
performance, an improved RAM footprint and response to system-memory pressure, improved
concurrency and support for suspending flash erases, marking of bad sectors with continued use of
the remaining good sectors (to enhance the write-life of the devices), native data compression
inside the file system design, and support for hard links.
Key features of JFFS2 are:
Directly targeted to Flash ROM
Robust
Consistent across power failure
No integrity scan (fsck) is required at boot time after normal or abnormal shutdown
Explicit wear leveling
Transparent compression
Although JFFS2 is a journaling file system, this does not ensure that data will not be lost. The file
system will remain in a consistent state across power failures, and will always be mountable.
However, if the board is powered down during a write, then the incomplete write will be rolled
back on the next boot. Any writes that were already completed will not be affected.
Additional information about JFFS2 is available on the following websites:
http://sources.redhat.com/jffs2/jffs2.pdf
http://developer.axis.com/software/jffs/
http://www.linux-mtd.infradead.org/
Содержание
- Ninth edition april 2015 1
- Uc 7101 7110 7112 user s manual 1
- Www moxa com product 1
- Copyright notice 2
- Disclaimer 2
- Technical support contact information 2
- Trademarks 2
- Uc 7101 7110 7112 user s manual 2
- Www moxa com support 2
- Table of contents 3
- Introduction 5
- Overview 6
- Package checklist 6
- Hardware specifications 7
- Product features 7
- Product specifications 7
- Software specifications 8
- Getting started 9
- Connecting the uc 7101 7110 7112 to a pc 10
- Console port 10
- Powering on the uc 7101 7110 7112 10
- Telnet 11
- Configuring the ethernet interface 12
- Developing your applications 14
- Installing the uc 7101 7110 7112 tool chain 14
- Compiling hello c 15
- Uploading hello to the uc 7101 7110 7112 15
- Running hello on the uc 7101 7110 7112 16
- Sample makefile code 17
- Software package 19
- Uc 7101 7110 7112 software architecture 20
- Journaling flash file system jffs2 21
- Uc 7101 7110 7112 software package 22
- Configuring uc 7101 7110 7112 23
- Enabling and disabling daemons 24
- How to enable disable etc inittab www server 24
- How to enable disable telnet ftp server 24
- How to enable network time protocol 24
- How to update the system time periodically with network time protocol 24
- Adding a web page 25
- Iptables 25
- Define policy for chain rules 27
- Observe and erase chain rules 27
- Append or delete rules 28
- Nat example 29
- The ip addresses of all packets leaving lan1 are changed to 192 68 27 you will need to load the module ipt_masquerade 29
- Uc 7101 7110 7112 software user s manual configuring uc 7101 7110 7112 29
- Configuring dial in dial out service 30
- Connect using a modem 30
- Dial in service 30
- Dial out service 30
- Direct cable connection 30
- Enabling nat at bootup 30
- Configuring pppoe 31
- Dynamic driver module load unload 31
- How to mount a remote nfs server 31
- Upgrading the kernel 32
- Upgrading the root file system user directory 33
- Autostarting user applications on bootup 34
- Checking the kernel and root file system versions 34
- Loading factory defaults 34
- Uc 7101 7110 7112 device api 35
- Buzzer 36
- Rtc real time clock 36
- Uart interface 36
- Wdt watch dog timer 37
- Editor 41
- File manager 41
- System commands 41
- Μclinux normal command utility collection 41
- Moxa special utilities 42
- Network 42
- Process 42
- Snmp agent with mib ii rs 232 like group 43
Похожие устройства
- Moxa UC-7101-T-LX Руководство по быстрой установке
- Moxa UC-7110-LX Инструкция по эксплуатации
- Moxa UC-7110-LX Руководство по аппаратной части
- Moxa UC-7110-LX Технические характеристики
- Moxa UC-7110-LX Руководство по программной части
- Moxa UC-7110-LX Руководство по быстрой установке
- Moxa UC-7110-T-LX Инструкция по эксплуатации
- Moxa UC-7110-T-LX Руководство по аппаратной части
- Moxa UC-7110-T-LX Руководство по программной части
- Moxa UC-7110-T-LX Технические характеристики
- Moxa UC-7110-T-LX Руководство по быстрой установке
- Moxa UC-7112-LX Инструкция по эксплуатации
- Moxa UC-7112-LX Руководство по аппаратной части
- Moxa UC-7112-LX Технические характеристики
- Moxa UC-7112-LX Руководство по программной части
- Moxa UC-7112-LX Руководство по быстрой установке
- Moxa UC-7112-LX Plus Инструкция по эксплуатации
- Moxa UC-7112-LX Plus Руководство по аппаратной части
- Moxa UC-7112-LX Plus Технические характеристики
- Moxa UC-7112-LX Plus Руководство по программной части