|
|
Implementation of Real-time File System(RTFS) on Renesas M16 board |
Members
|
|
|
Gayathri TK [gtambar@ncsu.edu] Jayush Luniya [jrluniya@ncsu.edu]
|
Abstract |
|
|
Incorporating a web server to an embedded device provides a powerful mechanism allowing users to monitor and control embedded applications using any standard browser. Web enabling devices provides a new method of interfacing to devices that requires essentially no target side programming and works with universally available, standard client software. The web server uses a file system to store embedded web pages in RAM, flash, or on disk. File systems provide capabilities for changing web pages dynamically and maintaining dynamic objects. Pages can be protected with password security to restrict both read and write access. Hence the need for a real-time file system on an embedded device.
The goal of this project is to implement a Real Time File System (RTFS) for Renesas M16C board, which acts as a base station for a cluster of sensor nodes and aggregates data to exchange across clusters. By web-enabling the device, the data can also be available to other base stations and high-end machines in a heterogeneous environment.
|
|
Need for Web Enabling a Device |
|
|
- An embedded web server facilitates the user to interface with the embedded device using any standard browser on his computer running any operating system like Linux, Windows, Solaris eliminating the need to implement new client software.
- Web servers can be implemented efficiently and in a small footprint. It is the web client, the browser that is the large and sophisticated component of the client/server pair having to parse the HTML and render the graphic output. Fortunately, there is no need to incorporate the browser code when web enabling a device.
- In addition, a web enabled device can be accessed anywhere in the world if it is connected to the Internet or can be locally connected on a LAN with equal ease.
|
Design Issues for RTFS |
|
|
- RTFS should be a primitive file system with low metadata overhead due to resource constraints on the embedded device. Hence the file system should be similar to FAT[1] or TFAT[2,3] file systems.
- Typical embedded devices do not have hard disks and hence the filesystem should be a memory based file system.
- RTFS should support dynamic creation and deletion of files, directories, and links with full read and write capability. Not a static ROM-image file system.
- A POSIX compliant API would provide well known and easy to use API for faster integration time for application developers. Hence the RTFS API should be POSIX compliant.
- Traditional file systems, such as FAT, provide satisfactory performance in the transfer of data, but power interruption or system failure can cause corruption of the file system, possibly rendering the device inoperative. This level of reliability, inherent to the FAT file system are not acceptable for many embedded systems, has led to the development of more reliable systems. Hence RTFS should ensure that the FAT table and directory structure are transaction safe across power failures.
- RTFS should be able to provide real time bounds for file access operations.
- RTFS should have a thin hardware dependant layer to maximize ease of porting to new architecture. Also RTFS should be minimally dependent on the underlying RTOS.
|
References |
|
|
- FAT Filesystem
- Transaction-Safe FAT File System
- Flash Filesystems for Embedded Linux Systems
- TargetFFS: An Embedded Flash File System
- Renesas M16C Architecture
- Algorithms and Data Structures for Flash Memories
- A Transactional Flash File System for Microcontrollers
- ELF: An Efficient Log-Structured Flash File System For Micro Sensor Nodes
|
Schedule |
|
|
Milestones |
Dates |
Task |
Milestone 1 |
Oct 1- Oct 15 |
Decided on project topic; Came up with project proposal |
Milestone 2 |
Oct 15- Nov 1 |
Worked on the Design issues of the project |
Milestone 3 |
Nov 1 - Nov 15 |
Came up with file system Datastructures; Implemented basic file system APIs; Implemented a
mini shell to test the file system APIs; Report |
Milestone 4 |
Nov 15 - Nov 22 |
Have to work on porting the filesystem to Renesas M16C Board; Provide real time guarantees on file access times |
Milestone 5 |
Nov 22 - Nov 30 |
Test and benchmark the filesystem |
| |