* How to support both 16MB and 8MB partition table
@ 2004-04-06 7:05 Prabhakar Kalasani
2004-04-06 8:31 ` Alessandro Rubini
0 siblings, 1 reply; 4+ messages in thread
From: Prabhakar Kalasani @ 2004-04-06 7:05 UTC (permalink / raw)
To: linux-mtd
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 ?
Regards,
Prabhakar
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to support both 16MB and 8MB partition table
2004-04-06 7:05 How to support both 16MB and 8MB partition table Prabhakar Kalasani
@ 2004-04-06 8:31 ` Alessandro Rubini
2004-04-07 4:06 ` Prabhakar Kalasani
2004-04-10 7:57 ` Prabhakar Kalasani
0 siblings, 2 replies; 4+ messages in thread
From: Alessandro Rubini @ 2004-04-06 8:31 UTC (permalink / raw)
To: kalasani, linux-mtd
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: How to support both 16MB and 8MB partition table
2004-04-06 8:31 ` Alessandro Rubini
@ 2004-04-07 4:06 ` Prabhakar Kalasani
2004-04-10 7:57 ` Prabhakar Kalasani
1 sibling, 0 replies; 4+ messages in thread
From: Prabhakar Kalasani @ 2004-04-07 4:06 UTC (permalink / raw)
To: rubini; +Cc: linux-mtd
Thank you rubini,
I have created two different static tables for two flash and made it to
work.
Regards,
Prabhakar
-----Original Message-----
From: rubini@ar.linux.it [mailto:rubini@ar.linux.it]
Sent: Tuesday, April 06, 2004 5:31 PM
To: kalasani@sena.com; linux-mtd@lists.infradead.org
Subject: Re: How to support both 16MB and 8MB partition table
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: How to support both 16MB and 8MB partition table
2004-04-06 8:31 ` Alessandro Rubini
2004-04-07 4:06 ` Prabhakar Kalasani
@ 2004-04-10 7:57 ` Prabhakar Kalasani
1 sibling, 0 replies; 4+ messages in thread
From: Prabhakar Kalasani @ 2004-04-10 7:57 UTC (permalink / raw)
To: rubini, linux-mtd
Thank you rubini.
-----Original Message-----
From: rubini@ar.linux.it [mailto:rubini@ar.linux.it]
Sent: Tuesday, April 06, 2004 5:31 PM
To: kalasani@sena.com; linux-mtd@lists.infradead.org
Subject: Re: How to support both 16MB and 8MB partition table
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-10 7:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-06 7:05 How to support both 16MB and 8MB partition table Prabhakar Kalasani
2004-04-06 8:31 ` Alessandro Rubini
2004-04-07 4:06 ` Prabhakar Kalasani
2004-04-10 7:57 ` Prabhakar Kalasani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox