* tiny JFFS2 Reader
@ 2002-08-10 16:30 sriram neelakandan
2002-08-12 6:55 ` Tino Keitel
0 siblings, 1 reply; 5+ messages in thread
From: sriram neelakandan @ 2002-08-10 16:30 UTC (permalink / raw)
To: linux-mtd
Hi group,
I am looking for a tiny jffs2 reader that can read a file from a
jffs2 partition..
the code in jffs2reader.c in the MTD utils tar
mtd-20000704.tar.gz (hope this is the latest)
does not have the logic to read beyond the first node of the
file.
basically the following func is called and it doesnt read beyond
the first inode !
--snip--
putblock(char *b, size_t bsize, size_t * rsize,
struct jffs2_raw_inode *n)
{
uLongf dlen = n->dsize;
if (*rsize < n->isize)
bzero(b + *rsize, n->isize - *rsize);
switch (n->compr) {
case JFFS2_COMPR_ZLIB:
uncompress((Bytef *) b + n->offset, &dlen,
(Bytef *) ((char *) n) + sizeof(struct jffs2_raw_inode),
(uLongf) n->csize);
break;
case JFFS2_COMPR_NONE:
memcpy(b + n->offset,
((char *) n) + sizeof(struct jffs2_raw_inode), dlen);
break;
case JFFS2_COMPR_ZERO:
bzero(b + n->offset, dlen);
break;
/* [DYN]RUBIN support required! */
default:
fprintf(stderr, "Unsupported compression method!\n");
exit(EXIT_FAILURE);
}
*rsize = n->isize;
}
How to get the compelete file from the partition? any ideas or is
there any other code.
i looked at the actual JFFS2 kernel code , it uses pretty huge
inode caches which is initted during sys_mount...but i cant
afford to put the MTD & FS code in my tiny bootloader!
TIA
sriram
__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com. Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tiny JFFS2 Reader
2002-08-10 16:30 tiny JFFS2 Reader sriram neelakandan
@ 2002-08-12 6:55 ` Tino Keitel
2002-08-12 7:41 ` Sylvain Meunier
2002-08-12 17:08 ` Russ Dill
0 siblings, 2 replies; 5+ messages in thread
From: Tino Keitel @ 2002-08-12 6:55 UTC (permalink / raw)
To: linux-mtd
On Sat, Aug 10, 2002 at 16:30:19 -0000, sriram neelakandan wrote:
> Hi group,
> I am looking for a tiny jffs2 reader that can read a file from a
> jffs2 partition..
> the code in jffs2reader.c in the MTD utils tar
> mtd-20000704.tar.gz (hope this is the latest)
> does not have the logic to read beyond the first node of the
> file.
There was a project called load_kernel at
http://russ.dhs.org/load_kernel.html, but this web server doesn't exist
anymore. It contains all code to look for a file called "linux" on a
cramfs oder jffs2 image and read it (including zlib decompression).
Maybe you want to contact the author (try Russ.Dill@asu.edu). I could
also send you the archive.
Regards,
Tino
--
tino.keitel@innominate.com
dipl.-inf. Innominate Security Technologies AG
software engineer networking people
tel: +49.30.6392-3308 http://www.innominate.com/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tiny JFFS2 Reader
2002-08-12 6:55 ` Tino Keitel
@ 2002-08-12 7:41 ` Sylvain Meunier
2002-08-12 17:08 ` Russ Dill
1 sibling, 0 replies; 5+ messages in thread
From: Sylvain Meunier @ 2002-08-12 7:41 UTC (permalink / raw)
To: linux-mtd
> > On Sat, Aug 10, 2002 at 16:30:19 -0000, sriram neelakandan wrote:
> > Hi group,
> > I am looking for a tiny jffs2 reader that can read a file from a
> > jffs2 partition..
> > the code in jffs2reader.c in the MTD utils tar
> > mtd-20000704.tar.gz (hope this is the latest)
> > does not have the logic to read beyond the first node of the
> > file.
...
Hi
Look for ppcboot sources, this is a bootloader that know about jffs2 (it
can acces any level of
directory and load a file).
Sylvain
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: tiny JFFS2 Reader
@ 2002-08-12 12:05 Hicks, Jamey
0 siblings, 0 replies; 5+ messages in thread
From: Hicks, Jamey @ 2002-08-12 12:05 UTC (permalink / raw)
To: Tino Keitel, linux-mtd
> -----Original Message-----
> From: Tino Keitel [mailto:tino.keitel@innominate.com]
> Sent: Monday, August 12, 2002 2:56 AM
> To: linux-mtd@lists.infradead.org
> Subject: Re: tiny JFFS2 Reader
>
>
> On Sat, Aug 10, 2002 at 16:30:19 -0000, sriram neelakandan wrote:
> > Hi group,
> > I am looking for a tiny jffs2 reader that can read a file from a
> > jffs2 partition..
> > the code in jffs2reader.c in the MTD utils tar
> > mtd-20000704.tar.gz (hope this is the latest)
> > does not have the logic to read beyond the first node of the
> > file.
>
> There was a project called load_kernel at
> http://russ.dhs.org/load_kernel.html, but this web server
> doesn't exist
> anymore. It contains all code to look for a file called "linux" on a
> cramfs oder jffs2 image and read it (including zlib decompression).
> Maybe you want to contact the author (try Russ.Dill@asu.edu). I could
> also send you the archive.
This code has also been incorporated into our bootldr: http://www.handhelds.org/feeds/bootldr has binaries and source.
Jamey
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tiny JFFS2 Reader
2002-08-12 6:55 ` Tino Keitel
2002-08-12 7:41 ` Sylvain Meunier
@ 2002-08-12 17:08 ` Russ Dill
1 sibling, 0 replies; 5+ messages in thread
From: Russ Dill @ 2002-08-12 17:08 UTC (permalink / raw)
To: Tino Keitel; +Cc: linux-mtd
On Sun, 2002-08-11 at 23:55, Tino Keitel wrote:
> On Sat, Aug 10, 2002 at 16:30:19 -0000, sriram neelakandan wrote:
> > Hi group,
> > I am looking for a tiny jffs2 reader that can read a file from a
> > jffs2 partition..
> > the code in jffs2reader.c in the MTD utils tar
> > mtd-20000704.tar.gz (hope this is the latest)
> > does not have the logic to read beyond the first node of the
> > file.
>
> There was a project called load_kernel at
> http://russ.dhs.org/load_kernel.html, but this web server doesn't exist
> anymore. It contains all code to look for a file called "linux" on a
> cramfs oder jffs2 image and read it (including zlib decompression).
> Maybe you want to contact the author (try Russ.Dill@asu.edu). I could
> also send you the archive.
it exists, it just moved to port 8000, also, the code is in blob cvs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-08-12 17:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-10 16:30 tiny JFFS2 Reader sriram neelakandan
2002-08-12 6:55 ` Tino Keitel
2002-08-12 7:41 ` Sylvain Meunier
2002-08-12 17:08 ` Russ Dill
-- strict thread matches above, loose matches on Subject: below --
2002-08-12 12:05 Hicks, Jamey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox