Moxa Technologies UC-7110 Read-Only File System Romfs, Journaling Flash File System JFFS2

Page 30

UC-7110 Series User’s Manual

Software Package

and uses JFFS2 for the User Directory.

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 &

0x40000– 0x3fffff

4

M - 256 K

Read ONLY

Root File System

ROMFS

 

 

 

 

 

 

 

 

User Directory

0x400000 – 0x7fffff

4

M

Read / Write

JFFS2

 

 

 

 

 

 

 

 

 

In addition to the flash file systems, a RAM based file system will be mounted on /var/.

Read-Only File System (ROMFS)

ROMFS is a read-only file system for Linux. This means that it is a non-journaling file system. Unlike CRAMFS, ROMFS does not support code compression.

A working Linux system requires the kernel and at least some programs, so obviously a file system is also needed. Most Linux disk file systems are designed to be high performance, supporting all POSIX features, and sometimes elaborate recovery from crashes (journaling). This makes the system quite heavy-weighted, and thus often inappropriate for some special purposes.

Additional information about ROMFS is available at:

http://romfs.sourceforge.net/

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.

The Journaling Flash File System (JFFS2) was developed by Axis Communications in Sweden.

JFFS2 provides a file system directly on flash, rather than emulating a block device designed for use on flash-ROM chips, and it recognizes flash-ROM chips' special write requirements, does wear-leveling to extend flash life, keeps the flash directory structure in RAM at all times, and implements a log-structured file system that is always consistenteven if the system crashes or unexpectedly powers down. It does not require fsck on boot up.

JFFS2, the next version of JFFS, provides improved wear-leveling and garbage-collection performance, 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 (thus enhancing the write-life of the devices), native data compression inside the file system design; and support for hard links.

Key features of JFFS2 are:

yDirectly targeted to Flash ROM

yRobust

yConsistent across power failure

yNo integrity scan (fsck) is required at boot time after normal or abnormal shutdown

yExplicit wear leveling

yTransparent compression

3-3

Image 30
Contents UC-7110 Series User’s Manual Second Edition, JulyCopyright Notice Table of Contents Chapter UC-7110 Device API Introduction Package Checklist Product FeaturesOverview Product Specifications Hardware Specifications UC-7110-LXSoftware Specifications UC-7110-LX JFFS2 File System User Directory Read / WriteKernel, Root File System Read Only Ethernet Hardware Block DiagramAppearance RS-232/422/485Dimensions Installing UC-7110 UC-7110LED Indicators Wiring RequirementsConnecting to the Network Connecting Data Transmission CablesConnecting the Power Grounding UC-7110Connecting to a Serial Device Serial Console PortReset Button Additional FunctionsReal Time Clock Getting Started Powering on UC-7110 Connecting UC-7110 to a PCConsole Port Telnet Default IP Address Default NetmaskLogin root Password root 192.168.3.127 255.255.255.0Configuring the Ethernet Interface Ifconfig eth0 192.168.3.127 ifconfig eth1Ifconfig eth0 Step Installing the UC-7110 Tool ChainDeveloping Your Applications #mount /dev/cdrom /mnt/cdromCompiling Hello.c PATH=/usr/local/arm-elf/bin$PATH#make Uploading Hello to UC-7110 #ftp Ftp cd /home Ftp bin Ftp put ./hello Ftp quit #telnetRunning Hello on UC-7110 # chmod 755 hello #./hello# df -k or # df Make File Example Code SuffixesUC-7110 Series User’s Manual Software Package UC-7110 Software Architecture Read-Only File System Romfs Journaling Flash File System JFFS2Additional information about Romfs is available at UC-7110 Software Package Additional information about JFFS2 is available atUC-7110 Series User’s Manual Software Package Configuring UC-7110 ‰ Iptables ‰ NATExample default enable Enabling and Disabling DaemonsInetd Adding a Web IptablesSub-tables Local Host Packets Usage ExamplesNAT Example # iptables -A Input -i eth0 -p tcp --dport 25 -j LOGDial-out Service Configuring Dial-in/Dial-out ServiceEnabling NAT at Bootup Pppd connect ‘chat -v’ /dev/ttyM0 38400 crtsctsDial-in Service Configuring PPPoEHow to Mount a Remote NFS Server Ifconfig ppp0Home/usr 192.168.3.1 rw,norootsquash,noallsquash Ramdiskftp destination PC’s IP Login Name Login PasswordUpgrading the Kernel & Root File System UpramdiskRamdiskupkernel uc7110-1.3.11.bin /ramdiskreboot Upgrading the User DirectoryFtp bin Ftp get uc7110-1.x.x.bin Upramdisk Cd ramdisk User Directory Backup-UC-7110 to PC Ramdiskbackupfs /ramdisk/usrdisk-backupHow to Autostart User Applications on Bootup Loading Factory DefaultsMirroring the Application Program and Configuration Checking the Kernel and User Directory VersionsUC-7110 Device API RTC Real Time Clock BuzzerUart Interface UC Finder Windows UC Finder UC-7110 Series User’s Manual UC Finder UC-7110 Series User’s Manual UC Finder Linux ucfinder File manager System CommandsBusybox V0.60.4 µClinux normal command utility collection EditorOther NetworkProcess Moxa Special UtilitiesSnmp Agent with MIB II & RS-232 Like Group Snmp Agent with MIB II & RS-232 Like Group Ip MIB Tcp MIB Udp MIBSnmp MIB RFC1317 RS-232 like group supported variables Rs232 MIBFAQ for UC-7110 Answer 3 arm-elf-gcc -W1, -elf2fltUC-7110 Series User’s Manual FAQ for UC-7110 Service Information Moxa Internet Services Following services are providedProblem Report Form Moxa Product † UC-7110 Serial NumberProduct Return Procedure

UC-7110 specifications

The Moxa Technologies UC-7110 is a powerful and versatile computing platform designed for industrial applications and IoT (Internet of Things) deployments. It represents a compelling solution for edge computing needs, with an emphasis on reliability, flexibility, and ease of integration. The UC-7110 offers a compact form factor, making it suitable for space-constrained environments while delivering robust performance.

One of the UC-7110's main features is its Intel Atom E3825 processor, which provides a balance of power efficiency and computational capability, ensuring it can handle the demands of data processing tasks at the edge. With 1GB of DDR3 RAM and support for up to 32GB of onboard eMMC storage, the UC-7110 can efficiently manage applications that require quick access to data without the need for extensive external storage devices.

The UC-7110 also stands out for its extensive connectivity options. It is equipped with multiple serial ports, digital input/output (DIO), USB ports, and Ethernet interfaces, allowing seamless integration with a wide range of industrial devices and protocols. This connectivity is crucial for real-time data acquisition and control in various industrial settings. The device also supports optional wireless communication modules, including LTE, Wi-Fi, and Bluetooth, enhancing its suitability for remote and mobile applications.

In terms of software capabilities, the UC-7110 operates on a Linux-based operating system, providing users with the flexibility to develop custom applications tailored to their specific needs. Moxa also provides the MXIO library, which simplifies the programming of input/output operations, making it easier for developers to create robust and responsive applications.

The UC-7110 is designed to endure harsh industrial environments, featuring wide operating temperature ranges from -40°C to 70°C and IP30-rated protection against dust and moisture. This ruggedness ensures reliable performance in challenging conditions, which is critical for industries such as manufacturing, transportation, and energy.

Additionally, the device supports various industrial protocols like Modbus, MQTT, and OPC UA, facilitating integration into existing systems and enabling efficient data communication across different platforms. This compatibility is vital for leveraging existing infrastructure while adopting modern IoT solutions.

In summary, the Moxa UC-7110 is a robust, versatile edge computing solution ideal for industrial IoT applications. Its combination of powerful processing, extensive connectivity options, software flexibility, and rugged design makes it a valuable asset for organizations seeking to enhance their operational efficiency and adapt to evolving technological demands. Whether in manufacturing, smart cities, or remote asset monitoring, the UC-7110 provides the necessary tools to unlock new possibilities in industrial connectivity and data management.