From: Terence Soh <gopher@singnet.com.sg>
To: linux-mtd@lists.infradead.org
Subject: How to partition NAND flash
Date: Thu, 02 Mar 2006 19:22:28 +0800 [thread overview]
Message-ID: <4406D574.8050808@singnet.com.sg> (raw)
Hi,
I'm trying to get a 64 MByte nand flash to be partitioned in a 32MB
cramfs and 32MB jffs2 partition.
I tried to do this in the kernel by
static struct mtd_partition partition_info[] = {
[0] = {
.name = "CRAM",
.offset = 0,
.size = 32 * 1024 * 1024,
.mask_flags = MTD_WRITEABLE, /* force read-only */
},
[1] = {
.name = "JFFS2",
.offset = 32 * 1024 * 1024,
.size = MTDPART_SIZ_FULL,
}
};
but when I cat/proc/mtd, I get
/ # cat /proc/mtd
dev: size erasesize name
mtd0: 04000000 00004000 "rootfs"
so I realise that this is affected by the bootargs passed which is
"console=ttyS0 mtdparts=a9m9750:0x4000000@0(rootfs) root=mtdblock/0
rootfstype=jffs2"
How should I passed the bootargs?
Thanks in advance,
Terence.
reply other threads:[~2006-03-02 12:00 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=4406D574.8050808@singnet.com.sg \
--to=gopher@singnet.com.sg \
--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