From: Wolfgang Denk <wd@denx.de>
To: karim@opersys.com
Cc: Jack Lu <jlu@rdmcorp.com>, linux-mtd@lists.infradead.org
Subject: Re: the procedure setting up jffs2
Date: Fri, 13 Sep 2002 01:14:11 +0200 [thread overview]
Message-ID: <20020912231417.0ED47FA8D@denx.denx.de> (raw)
In-Reply-To: Your message of "Thu, 12 Sep 2002 18:37:53 EDT." <3D811741.FB5178A@opersys.com>
Hi Karim,
in message <3D811741.FB5178A@opersys.com> you wrote:
>
> The chip you mention is bottom-boot, so the above will very likely wipe-out
> the bootloader. You probably want to partition your MTD device by modifying
> the mapping driver and then write the JFFS2 image to another partition then
> /dev/mtd0. Check drivers/mtd/tqm8xxl.c for an example.
We (more or less) consider this method of static partitioning
obsolete. We use (and recommend to our customers) a dynamic
partitioning, where "partition table" information is passed to the
Linux kernel by PPCBoot using the kernel command line.
For example, passing the kernel a boot argument of
mtdparts=0:256k(PPCboot)ro,768k(Kernel),-(Rest);1:-(myJFFS2)
results in this partitioning:
...
TQM flash bank 0: Using command line partition definition
Creating 3 MTD partitions on "TQM8xxL Bank 0":
0x00000000-0x00040000 : "PPCboot"
0x00040000-0x00100000 : "Kernel"
0x00100000-0x00400000 : "Rest"
TQM flash bank 1: Using command line partition definition
Creating 1 MTD partitions on "TQM8xxL Bank 1":
0x00000000-0x00400000 : "myJFFS2"
...
See the config option "CONFIG_MTD_CMDLINE_PARTS" in our kernel
sources.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
The price one pays for pursuing any profession, or calling, is an
intimate knowledge of its ugly side. - James Baldwin
next prev parent reply other threads:[~2002-09-12 23:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-13 8:37 the procedure setting up jffs2 Jack Lu
2002-09-12 22:37 ` Karim Yaghmour
2002-09-12 23:14 ` Wolfgang Denk [this message]
2002-09-13 0:15 ` Karim Yaghmour
2002-09-13 8:35 ` Marius Groeger
2002-09-13 9:07 ` David Woodhouse
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=20020912231417.0ED47FA8D@denx.denx.de \
--to=wd@denx.de \
--cc=jlu@rdmcorp.com \
--cc=karim@opersys.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