Git Product home page Git Product logo

eefs's Introduction

eefs

EEPROM File System

This is the EEPROM File System Project (EEFS). It is a simple file system for memory devices such as EEPROM, RAM, ROM, etc. Currently it is not intended for block oriented devices such as disks and flash devices.

It can be used as a simple file system to boot an embedded system running vxWorks, RTEMS, or even no operating system. An EEFS image can be created on the development host, providing a single file to burn into an image that is loaded on a target. The file system is easy to understand, debug, and dump.

There are drivers for RTEMS, vxWorks, and there is a standalone API for systems that do not have a file system.

There is even a "microeefs" interface that allows the lookup of a file from a single function. This allows the bootloader to locate an image in EEPROM by the file name with a minimal amount of code. Future releases will include the ability to allow multiple EEFS volumes ( volumes in RAM and EEPROM at the same time )

eefs's People

Contributors

alanc-gsfc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eefs's Issues

Output file should be opened with "wb" mode, instead of "w"

In file geneepromfs.c line 111, the file should be opened for writing in a binary mode. I tried to compile and run it on Windows 7 64-bit using mingw32 and I got corrupted output files (eeprom images) every time. When opening in "wb" mode, everything works as it should.

if ((OutputFilePointer = fopen(CommandLineOptions.OutputFilename, "wb")))

Using EEFS on an 8 bit AVR ATmega, with 16 bit pointer arithmetic.

I'm trying to use this code to support SPI EEPROM / SRAM devices on an AVR ATmega platform.
The inherent pointer size is 16 bits, and many of the advanced pointer arithmetic calculations (which assume 32 bits) used in the code are going to fail.

For example the FileAllocationTable = (void *)BaseAddress; assignment converts BaseAddress into a 16 bit pointer in the avr-gcc and avr-libc world.

int32_t EEFS_LibInitFS(EEFS_InodeTable_t *InodeTable, uint32_t BaseAddress)
{
    EEFS_FileAllocationTable_t         *FileAllocationTable;
    EEFS_FileAllocationTableHeader_t    FileAllocationTableHeader;
    EEFS_FileAllocationTableEntry_t     FileAllocationTableEntry;
    uint32_t                            i;
    int32_t                             ReturnCode;

    EEFS_LIB_LOCK;
    if (InodeTable != NULL) {

        /* Load the File Allocation Table Header from EEPROM */
        FileAllocationTable = (void *)BaseAddress;

Before I cut into the existing code and risk introducing bugs into your tested release and make it difficult to for me to support, do you have any suggestions?

Generating geneepromfs on 64bits host

In the Makefile of geneepromfs, when linking using gcc on 64 bits host, it also needs to get the -m32 option so it can pass to ld -m elf_i386:

LOPT = -lm -m32

Compilation of eefstab failed.

compilation of eefstool failed
Not know BDMlib.h library. I am compiling at linux (Debian)

comet@raspberrypi:~/eefs/tools/eefstool $ make
gcc -O -g -Wall  -D_ix86_ -mbe32 -march=armv7 -I./inc -I../../inc -I../../drivers/standalone_driver -I/usr/arm-linux-gnueabihf/include/ -I/opt/rtems-4.10/include -c ./src/eefstool_driver_bdm.c
./src/eefstool_driver_bdm.c:49:10: fatal error: BDMlib.h: No such file or directory
   49 | #include <BDMlib.h>
      |          ^~~~~~~~~~
compilation terminated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.