URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
786 |
skrzyp |
This package is a port of the JFFS2 flash filing system to eCos. It has been
|
2 |
|
|
developed on the Compaq Ipaq, and has not been tested on any other device.
|
3 |
|
|
|
4 |
|
|
This code is subject to the original licensing terms, and additionally it
|
5 |
|
|
should be noted that this code is still in an early stage of development.
|
6 |
|
|
|
7 |
|
|
As this code will write to flash directly, caution should be exercised in
|
8 |
|
|
its use. It may cause areas of the flash chips essential to the operation of
|
9 |
|
|
the device to become corrupted.
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
Minor modifications are necessary to the the eCos flash drivers
|
13 |
|
|
|
14 |
|
|
io/flash/current/src/flash.c
|
15 |
|
|
|
16 |
|
|
devs/flash/intel/strata/current/src/flash_program_buf.c
|
17 |
|
|
|
18 |
|
|
to allow byte aligned rather than word aligned writes, and to ensure
|
19 |
|
|
overwriting an existing word is successful (these are supplied in
|
20 |
|
|
jffs2/current/src).
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
Three test files are included jffs2_1.c (which performs the same tests
|
24 |
|
|
as used for eCos RamFS), jffs2_2.c (tests is seeking works) and jffs2_3.c
|
25 |
|
|
(garbage collection and memory leak detection)
|
26 |
|
|
|
27 |
|
|
jffs2_2.c requires that a jffs2 filesystem image jffs2.img is present
|
28 |
|
|
at the desired mount point. This image was prepared on Linux with the
|
29 |
|
|
tools originating with JFFS2 source from www.infradead.org. Note that
|
30 |
|
|
this image is little endian and will only work on little endian
|
31 |
|
|
targets. For big endian targets it will be necassary to generate a new
|
32 |
|
|
image.
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.