public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Justin Wojdacki <justin.wojdacki@analog.com>
To: Daniel Belz <danielb@cyclades.com.br>
Cc: MTD <linux-mtd@lists.infradead.org>
Subject: Re: Mounting JFFS2, Bootloader
Date: Thu, 11 Jul 2002 11:49:13 -0700	[thread overview]
Message-ID: <3D2DD329.25008AC@analog.com> (raw)
In-Reply-To: 3D2DC391.6C13A750@cyclades.com.br

Daniel Belz wrote:
> 
> > JFFS2 has a really easy to work with on-device layout, so it shouldn't
> > take much effort to locate the files you're interested in.
> >
> > The files you'll need to work with are in fs/jffs2 and include/linux.
> >
> > Figure out exactly what capabilities you want first though. That'll
> > make it much easier to plan out. And remember, if it's being done in
> > the bootloader, you're not in the kernel, so you may have to
> > reimplement some things.
> 
> Ok, but which is the "entry point" of the JFFS, that is, i need to
> call the functions to mount, or i can treat like a mounted file
> system, and just read the needed files? And, I can read from a
> CompactFlash card, if i'm using (after boot) the MTD emulation? The
> CF is mapped as a hd device.
> 

The "entry point" of the JFFS is defined by the map you create for the
flash device. Take a look at drivers/mtd/maps to get an idea of what's
going on. Basically you'll lay out the flash, telling the kernel what
parts it can and can't touch. You'll assign one or more parts of that
map to be JFFS2 partitions, one of which is the root partition. Then,
in your bootstrap, you'll walk through flash, starting at the base of
that root paritition until you've found and loaded all the data for
the kernel. I do that stage in a few passes, but it's not hard to do. 

I can't help you on the compact flash side though. I'm not familiar
with that technology. If the bootloader has to do any modification of
the CF card/interface, then it should reset it to the base state the
kernel is expecting, before booting the kernel. 

-- 
-------------------------------------------------
Justin Wojdacki        
justin.wojdacki@analog.com         (408) 350-5032
Communications Processors Group -- Analog Devices

  reply	other threads:[~2002-07-11 18:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-11 12:28 Mounting JFFS2, Bootloader Daniel Belz
2002-07-11 17:08 ` Justin Wojdacki
2002-07-11 17:42   ` Daniel Belz
2002-07-11 18:49     ` Justin Wojdacki [this message]
2002-07-12 15:43 ` Marius Groeger
2002-07-11 17:50   ` Daniel Belz
2002-07-11 17:45     ` Russ Dill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D2DD329.25008AC@analog.com \
    --to=justin.wojdacki@analog.com \
    --cc=danielb@cyclades.com.br \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox