Skip to contentSkip to conversation

JFFS2 Format Documentation?

DISCUSSION Phil Thompson 5 participants 11 messages Jan 28, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Is there a document anywhere describing the format of a JFFS2 filesystem? Google didn't come up with anything.

I'm happy to write one if it doesn't already exist.

Thanks,
Phil

#1 lore raw

Maybe this is what you are looking for?

http://sources.redhat.com/jffs2/

Regards
Henrik Nordström

tis 2003-01-28 klockan 10.56 skrev Phil Thompson:

Quoted 11 lines

Is there a document anywhere describing the format of a JFFS2 filesystem? Google didn't come up with anything.

I'm happy to write one if it doesn't already exist.

Thanks,
Phil

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Signature · 2 lines
Henrik Nordstrom <[email protected]>
MARA Systems AB
#2 lore raw

David's paper is a good start but I was after a lower level of detail. I need something from which I can implement a JFFS2 reader from scratch (ie. without any GPL code).

Phil

Quoted 19 lines · Henrik Nordstrom

Maybe this is what you are looking for?

http://sources.redhat.com/jffs2/

Regards
Henrik Nordström

tis 2003-01-28 klockan 10.56 skrev Phil Thompson:

Quoted 11 lines

Is there a document anywhere describing the format of a JFFS2 filesystem? Google didn't come up with anything.

I'm happy to write one if it doesn't already exist.

Thanks,
Phil

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#3 lore raw
Quoted 4 lines · Phil Thompson

David's paper is a good start but I was after a lower level of detail. I need something from which I can implement a JFFS2 reader from scratch (ie. without any GPL code).

Good luck! ;-)

Honestly, if that document does not exist (I bet you, it doesn't) you will have to create it yourself, pay someone to do it or go through some other pain. Plus you will end up with a possibly incompatible version.

Do this only after you checked the possibilities of going GPL and licensing the code for money, as a last resort. And even then, don't feel happy about your choice.

Jörn

Signature · 4 lines
Don't worry about people stealing your ideas. If your ideas are any good,
you'll have to ram them down people's throats.
-- Howard Aiken quoted by Ken Iverson quoted by Jim Horning quoted by
   Raph Levien, 1979
#4 lore raw
Quoted 3 lines · [email protected] said:

David's paper is a good start but I was after a lower level of detail. I need something from which I can implement a JFFS2 reader from scratch (ie. without any GPL code).

The on-medium format is very simple. The actual layout of the existing node types is detailed in full in include/linux/jffs2.h. In conjunction with the theory of operation described in the paper, these should be perfectly sufficient.

What exactly are you trying to achieve? Simple read-only operation or a fully-functional compatible file system?

--
dwmw2

#5 lore raw
Quoted 5 lines · David Woodhouse
Quoted 3 lines · [email protected] said:

David's paper is a good start but I was after a lower level of detail. I need something from which I can implement a JFFS2 reader from scratch (ie. without any GPL code).

Quoted 7 lines

The on-medium format is very simple. The actual layout of the existing node types is detailed in full in include/linux/jffs2.h. In conjunction with the theory of operation described in the paper, these should be perfectly sufficient.

What exactly are you trying to achieve? Simple read-only operation or a fully-functional compatible file system?

I need to modify a bootloader to load the kernel from a JFFS2 filesystem - so a simple read is all that is needed. Unfortunately the bootloader doesn't have a license that is compatible with the GPL.

Phil

#7 lore raw
In reply to Phil Thompson

tis 2003-01-28 klockan 15.11 skrev Phil Thompson:

Quoted 3 lines

I need to modify a bootloader to load the kernel from a JFFS2 filesystem - so a simple read is all that is needed. Unfortunately the bootloader doesn't have a license that is compatible with the GPL.

Another idea: You could do a two stage boot loader process.. the (non-GPL) bootloader just loads another bootloader which knows how to read JFFS2, or replace the bootloader entirely..

Signature · 2 lines
Henrik Nordstrom <[email protected]>
MARA Systems AB
#8 lore raw
Quoted 3 lines · [email protected] said:

Another idea: You could do a two stage boot loader process.. the
(non-GPL) bootloader just loads another bootloader which knows how to read JFFS2, or replace the bootloader entirely..

FWIW the eCos (and hence RedBoot) JFFS2 code was updated very recently, all that's preventing RedBoot from reading and writing JFFS2 file systems is the lack of a small wrapper to actually _ask_ it to mount/read/write from the RedBoot prompt.

--
dwmw2

#9 lore raw
In reply to David Woodhouse

From: David Woodhouse <[email protected]>
Date: Tue, 28 Jan 2003 13:44:46 +0000

Quoted 3 lines · [email protected] said:

David's paper is a good start but I was after a lower level of detail. I need something from which I can implement a JFFS2 reader from scratch (ie. without any GPL code).

The on-medium format is very simple. The actual layout of the existing node types is detailed in full in include/linux/jffs2.h. In conjunction with the theory of operation described in the paper, these should be perfectly sufficient.

Perhaps he can't read that header file without "contaminating" his clean-room implementation?

Phil?

Brian
--
More people use Apache than Word, and it does them more good.
Kragen Sitaker, Mon, 04 Nov 2002 21:32:18 -0800

#10 lore raw
Quoted 2 lines · [email protected] said:

Perhaps he can't read that header file without "contaminating" his
clean-room implementation?

I don't think we can argue that the node layout on the medium, as described in that file, could possibly be considered sufficient to 'contaminate' an alternative implementation.

--
dwmw2