From: Aras Vaichas <arasv@magellan-technology.com>
To: MTD-LIST <linux-mtd@lists.infradead.org>
Subject: how to write to an entire NOR Flash at once
Date: Wed, 25 May 2005 17:48:00 +1000 [thread overview]
Message-ID: <42942DB0.2010801@magellan-technology.com> (raw)
Hello,
I need to remotely upgrade some old systems:
from:
* Kernel 2.2, NOR Flash, kernel and applications spread over several MTD
parititions using JFFS1, custom bootloader
to:
* Kernel 2.6, adding u-boot and using JFFS2 instead of JFFS1. I have the new
system up and running with no problems. The MTD partition map will change
radically from the old one.
The old systems have an upgrade mechanism in place where by TFTP'ing a file
into a directory and then rebooting will cause that file to be unpacked and
placed into the application directory and then executed. Therefore I can run
any script or file that I wish to on these systems and it will be run as root.
What I am thinking of doing is to take a copy of the entire NOR flash from the
new system and copy it into the NOR Flash on the old system and reboot. Since
the MTD parititions won't be aligned between the old and new system, I will
need to write the entire NOR Flash in one go - at which point the system will
lose its brains and will need to be reset and hopefully start a new life as a
2.6 system.
What is the best way to do this? Do I need to write a 2.2 kernel module that
will allow me raw access to the NOR Flash or can I do this from userspace?
regards,
Aras Vaichas
reply other threads:[~2005-05-25 7:48 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=42942DB0.2010801@magellan-technology.com \
--to=arasv@magellan-technology.com \
--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