<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: Preferred way to configure MTD physical mapping and partitioning</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi Laurent,<BR>
<BR>
There is also the &quot;RedBoot&quot; approach that let you create and store your partition table in a reserved sector of your flash.<BR>
You can enable your kernel to parse and create your MTD partitions according. After that, all you need to do is make your boot loader write the table in flash. Have a look at the file &quot;linux/drivers/mtd/redboot.c&quot;.<BR>
<BR>
Guillaume.<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: linuxppc-embedded-bounces+gautran=mrv.com@ozlabs.org on behalf of Laurent Pinchart<BR>
Sent: Mon 5/22/2006 6:32 AM<BR>
To: linuxppc-embedded@ozlabs.org<BR>
Subject: Preferred way to configure MTD physical mapping and partitioning<BR>
<BR>
Hi everybody,<BR>
<BR>
while browsing the kernel sources to find out how other boards configure MTD<BR>
physical mapping and partitioning, I noticed that a couple of different<BR>
approaches were possible:<BR>
<BR>
- adding a board specific &quot;driver&quot; in drivers/mtd/maps and handle all mapping<BR>
manually<BR>
- adding board specific MTD configuration in arch/ppc/platforms with calls to<BR>
physmap_set_partitions() and physmap_configure()<BR>
- adding board specific MTD configuration in arch/ppc/platforms with a call to<BR>
physmap_set_partitions(), and using the CONFIG_MTD_PHYSMAP option with<BR>
physical mapping values provided in the kernel configuration.<BR>
<BR>
Could anyone comment on the preferred approach ?<BR>
<BR>
Best regards,<BR>
<BR>
Laurent Pinchart<BR>
_______________________________________________<BR>
Linuxppc-embedded mailing list<BR>
Linuxppc-embedded@ozlabs.org<BR>
<A HREF="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>