From: ghannon@cspi•com
To: "li" <slowforce@21cn•com>
Cc: linuxppc-embedded@lists•linuxppc.org
Subject: Re: program update
Date: Tue, 15 Jul 2003 09:31:04 -0400 [thread overview]
Message-ID: <85256D64.00487C65.00@pine.cspi.com> (raw)
Li,
I think you mean to say that you would like to keep the application in
flash,
in some sort of filesystem where it can be replaced easily. If that is the
case, see the
MTD maps, and the JFFS2 filesystem. If you create a partition map and
leave
room in flash for a partition to hold your application, then you format the
flash partition
once (or not at all?) and create the filesystem on it. From then on you
can set up a
mount point and just copy the new updated program to that area, and run it
like any
command. It also automatically compresses data as you copy it in, which
is nice.
Having a ramdisk to contain your application means you would be using
up more ram which might be needed to run the program, and the program would
be gone
when power is cycled. I don't think that's what you want is it?
If you are building your kernel from the linuxppc_2_4_devel tree, see
drivers/mtd/maps/
arctic-mtd.c. This is a good example of an easy partitioning scheme that
leaves room
for kernel, romfs and a flash filesystem.
See also the JFFS HOWTO for more details. I'm not sure how up-to-date
this is.
http://ftp.linux.org.uk/pub/people/dwmw2/mtd/cvs/mtd/mtd-jffs-HOWTO.txt
Good Luck,
Gary
"li" <slowforce@21cn•com> on 07/13/2003 11:53:29 PM
To: linuxppc-embedded@lists•linuxppc.org
cc: (bcc: Gary Hannon/CSP)
Subject: program update
Hello all,
In our system(based on MPC850 and ppc linux), i need to update the
application program frequently. ppcboot, kernel image and
filesystem(ramdisk) are all programmed into Flash memory. i want to make
another ramdisk for application program, but how?
Any resourece about it?
Thanks in advance!
Best Regards!
Li
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
reply other threads:[~2003-07-15 13:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=85256D64.00487C65.00@pine.cspi.com \
--to=ghannon@cspi$(echo .)com \
--cc=linuxppc-embedded@lists$(echo .)linuxppc.org \
--cc=slowforce@21cn$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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