linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: loading the kernel and root FS separately from flash?
@ 2004-06-28 11:33 Gerhard TAEUBL
  0 siblings, 0 replies; 18+ messages in thread
From: Gerhard TAEUBL @ 2004-06-28 11:33 UTC (permalink / raw)
  To: rpjday; +Cc: linuxppc-embedded


Hi!

We have the same 'problem' if we startet with linux.
I think the point is:
What do you want to update?
In most cases only project related files like configuration or the
application itself has to be updated, but not the whole distribution.
So look what do you think that is necessayr to update and which files
are not.
We use a compressed filesystem without the possibilty to update it
(easily). Then we mount a jffs2 partition where the project related
files are stored. (In detail: a standard project directory is also
stored in the compressed filesystem, and if the hardware boots the first
time, the flashdisk will be formated and the standard application
copied. So from this point on it could be handled in our system as
usual, and also newer application could be stored, wihout the need to
update everything)

I hope you could see now clear .-)

br
Gerhard

>>> "Robert P. J. Day" <rpjday@mindspring.com> 06/28/04 12:50pm >>>

On Mon, 28 Jun 2004, Wolfgang Denk wrote:

> In message <Pine.LNX.4.60.0406280600140.3259@localhost.localdomain>
you wrote:

>> that it could be read-only).  how hard would it be to automatically
>> have that root FS copied from JFFS2 to RAM and mounted from there?
>
> This makes just no sense to me.

ok, i'm probably getting confused about something fundamental here.
what i'm after is to have my root filesystem in persistent storage and
available for updates on the fly, hence the notion of partitioning off
a part of the system flash for the JFFS2 version of the root
filesystem.  i've done that, so i've solved that problem -- i have a
root filesystem i can mount from a running system and modify.

now, i could just mount that JFFS2 version of the root fs straight out
of flash, but i get the impression that that would cause a performance
hit.  so i was wondering about the feasibility about copying that
entire flash FS into RAM at boot time, and running out of RAM.  this
would mean, of course, that if i wanted to make mods to the root FS,
i'd do them in flash and they'd only take effect at the next reboot,
which is fine with me.

or am i just hopelessly confused about what is and is not a reasonable
option here?  i get the feeling i'm missing something important.

rday


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 18+ messages in thread
* loading the kernel and root FS separately from flash?
@ 2004-06-27 22:46 Robert P. J. Day
  2004-06-28  3:58 ` Eugene Surovegin
  2004-06-28  7:09 ` Wolfgang Denk
  0 siblings, 2 replies; 18+ messages in thread
From: Robert P. J. Day @ 2004-06-27 22:46 UTC (permalink / raw)
  To: Embedded Linux PPC list


   what is (hopefully) a simple question, before i invest the time to
see whether it works.

   currently, i have a modified rpxlite board, with two flash chips,
each 8M -- one "system" flash, one "user" flash.  the system flash has
the boot loader (embedded planet's planet core), and the loadable
kernel+rootfs image.  this bootable image is only 2.5M in size, so
there's lots of leftover space in that system flash chip.

   with this configuration, it's obviously not possible to update files
or directories in the bootable image individually -- it's just one big
zImage.inited image.

   but is it feasible to redefine the layout of that flash chip and
take, say, 4M of it and create a JFFS2 filesystem, then put the root
filesystem in there uncompressed?  (assuming, of course, that the
rootfs fits in 4M.)  theoretically, then, i could have system flash
with the bootloader (only a couple hundred K), the bootable kernel (at
most 2M in our case), then 4M of JFFS2.  that would give me the
freedom to update the basic root filesystem if i had to.  we could
boot the kernel as we're doing now, and i'm assuming it wouldn't be
difficult to have the kernel know to copy the JFFS2-based root
filesystem into RAM, mount it, and take it from there.

   the current flash layouts are defined in the file
drivers/mtd/maps/rpxlite.c, and we've set it up so that the other 8M
"user" flash is associated with /dev/mtdblock/0.  my thought was to
just define half of system flash as JFFS2, at which point it would be
accessible as /dev/mtdblock/1 (depending on the definition order, of
course).

   is this possible?  anyone done it this way, and can tell me what
pitfalls i have to watch for?  thanks.

rday

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-06-29 12:09 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <s0e01d9a.092@mail.frequentis.com>
2004-06-28 12:11 ` loading the kernel and root FS separately from flash? Robert P. J. Day
2004-06-28 11:33 Gerhard TAEUBL
  -- strict thread matches above, loose matches on Subject: below --
2004-06-27 22:46 Robert P. J. Day
2004-06-28  3:58 ` Eugene Surovegin
2004-06-28 10:00   ` Robert P. J. Day
2004-06-28  7:09 ` Wolfgang Denk
2004-06-28  9:42   ` David Woodhouse
2004-06-28 10:19     ` Robert P. J. Day
2004-06-28 10:48       ` Wolfgang Denk
2004-06-28 10:52         ` Robert P. J. Day
2004-06-28 10:23     ` Robert P. J. Day
2004-06-28 10:36     ` Wolfgang Denk
2004-06-28 10:40       ` David Woodhouse
2004-06-28 10:13   ` Robert P. J. Day
2004-06-28 10:41     ` Wolfgang Denk
2004-06-28 10:50       ` Robert P. J. Day
2004-06-29  9:31         ` David Woodhouse
2004-06-29 12:09           ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).