From: Alessandro Rubini <rubini@ar.linux.it>
To: kalasani@sena.com, linux-mtd@lists.infradead.org
Subject: Re: How to support both 16MB and 8MB partition table
Date: Tue, 6 Apr 2004 10:31:06 +0200 [thread overview]
Message-ID: <20040406083106.GA19715@mail.gnudd.com> (raw)
In-Reply-To: <ACEDKFIMODAHBNCONGOHGELCCCAA.kalasani@sena.com>
> I had to support the partition table for 16MB and 8MB AMD Flash chip
> in same kernel. can we do it , if yes please let me know how can ?
Just have two static tables. Probe the flash for the bigger size
and check what the probe found. You can find an example in
ftp://gnudd.com/pub/tattile/kernel/patch-2.4.19-rmk4-ds2-mck1-tat2 .
This is the important code from that patch (this is 4M or 8M):
+ parts = tat_partitions4;
+ nb_parts = NB_OF(tat_partitions4);
+ if (mymtd->size == 8<<20) {
+ parts = tat_partitions8;
+ nb_parts = NB_OF(tat_partitions8);
+ }
/alessandro
next prev parent reply other threads:[~2004-04-06 8:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-06 7:05 How to support both 16MB and 8MB partition table Prabhakar Kalasani
2004-04-06 8:31 ` Alessandro Rubini [this message]
2004-04-07 4:06 ` Prabhakar Kalasani
2004-04-10 7:57 ` Prabhakar Kalasani
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=20040406083106.GA19715@mail.gnudd.com \
--to=rubini@ar.linux.it \
--cc=kalasani@sena.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