From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Adding new partition in uboot
Date: Thu, 08 Apr 2010 12:06:01 +0200 [thread overview]
Message-ID: <m2sk76uuly.fsf@ohwell.denx.de> (raw)
In-Reply-To: 20100401215619.56B24104D2A6@gemini.denx.de
Hi Wolfgang,
> Dear David Gibson,
>
> In message <20100401185147.GA17447@yookeroo> you wrote:
>>
>> > Let me know if we need to increase size of the blob or something which i m
>> > missing.
>> > This is going to help a lot if you can reply.
>>
>> For this case where there's a flash partition that's sometimes there
>> and sometimes not, it might be simpler to put all the partitions,
>> including the not-always-present ones in the dts. Then you can use
>> fdt_nop_subnode() to remove the extra one on systems where it's not
>> present.
>
> A completely different approach woul dbe NOT to try defining the flash
> partitions in the device tree, but use command line partitioning in
> combination with the "mtdparts" command support in U-Boot. For
> frequently changing configurations this is probably the most flexible
> approach.
Actually we have code to fix up the flat device tree from the mtdparts value:
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/76029/match=mtdparts
This is somewhat nicer than the "command line bottleneck" and we should
really start using it broadly.
Cheers
Detlev
--
Of course my password is the same as my pet's name
My macaw's name was Q47pY!3 and I change it every 90 days
-- Trevor Linton
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
prev parent reply other threads:[~2010-04-08 10:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-21 22:13 [U-Boot] Adding new partition in uboot Sagar Heroorkar
2010-04-01 18:51 ` David Gibson
2010-04-01 21:56 ` Wolfgang Denk
2010-04-08 10:06 ` Detlev Zundel [this message]
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=m2sk76uuly.fsf@ohwell.denx.de \
--to=dzu@denx.de \
--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