[U-Boot] What is the corect way to define MTD partitions

Pieter phenning at vastech.co.za
Thu Feb 5 15:57:05 CET 2009


Hi All

The example I'm working with probably does everything wrong, so I would
like advise as to how we should define mtd partitions. The Boards Flash
is divided into 7 partitions. The partitions are defined in the board.h
file as extra env settings.

#define    CONFIG_EXTRA_ENV_SETTINGS                                    \
     "mtdparts=mtdparts=0:16M at 0x0(factory-image),"                   
            \
    "16M at 0x1000000(app-image-1),16M at 0x2000000(app-image-2),"        \
    "16M at 0x3000000(jffs2),16M at 0x4000000(testing),"                   
            \
    "16M at 0x5000000(scratchpad),"                                       
                        \
    "256k at 0x7F40000(u-boot-env),512k at 0x7F80000(u-boot-app)\0"          \
 
Is this a acceptable way to set up MTD partitions ?
If it is, is there a way for U-boot to insert MDT partitions into the FDT?

Or can i define the Flash partitions as part of my dts. Then have U-Boot
extract the mtdpart info from the DTS blob and set up the mtdparts for
U-Boot?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2722 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090205/0062bc2a/attachment.bin 


More information about the U-Boot mailing list