public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Pieter <phenning@vastech.co.za>
To: u-boot@lists.denx.de
Subject: [U-Boot] What is the corect way to define MTD partitions
Date: Thu, 05 Feb 2009 16:57:05 +0200	[thread overview]
Message-ID: <498AFE41.7070503@vastech.co.za> (raw)

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 

                 reply	other threads:[~2009-02-05 14:57 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=498AFE41.7070503@vastech.co.za \
    --to=phenning@vastech.co.za \
    --cc=u-boot@lists.denx.de \
    /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