From: Vignesh R <vigneshr@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: keystone: Pass SPI MTD partition table via kernel command line
Date: Sat, 18 Mar 2017 17:44:05 +0530 [thread overview]
Message-ID: <f2b21c86-e6df-3ed3-40a2-16ea7c247bfa@ti.com> (raw)
In-Reply-To: <20170315204822.GS19897@bill-the-cat>
On 3/16/2017 2:18 AM, Tom Rini wrote:
> On Tue, Mar 14, 2017 at 05:11:06PM +0530, Vignesh R wrote:
>> [...]
>>
>> On Friday 10 March 2017 11:32 PM, Tom Rini wrote:
>>>> Yes, I agree that initial DT layout of 512K may not have been good
>>>> design, but it would be good to have an agreeable way of fixing up MTD
>>>> partitions when there is overflow. So, is fdt_fixup_mtdparts() preferred
>>>> approach?
>>> You make a good point about fdt_fixup_mtdparts() being non-trivial to
>>> have happen correctly in all cases above, so OK, lets put that aside.
>>> I'll also accept that previous best wisdom of not shoving tons of stuff
>>> into the cmdline, rather than passing it in the device tree, isn't
>>> correct anymore.
>>>
>>> But the big, un-tackled problem is that the old DT layout is failing
>>> because we're constantly increasing the number of full linux DTB files
>>> we're including in an image and thus increasing the size of our blob
>>> every time. We need to stop and think and maybe design things
>>> differently. Perhaps it's time for more platforms to have a spot on
>>> their storage where the DT is supposed to be, and we only use a fall
>>> back one that's included in U-Boot if it's not found? Franklin already
>>> posted a patch to have something kind-of similar be able to happen
>>> (which is to say, go from a generic DTB to the correct-for-the-HW one).
>> I agree that DTB files are making u-boot image bulky. But it does not
>> seem to be problem due to addition of DT alone. For example SPI boot
>> image on K2 platform is two stage SPL+U-Boot combined into one single
>> image u-boot-spi.gph which is about 555K. General boot image u-boot.bin
>> is about 491K and u-boot-nodtb.bin is 432K. So even w/o dtbs SPI image
>> may overflow and its because of new code/framework changes.
> Which platform exactly? I don't see anything today that's quite that
> large.
Sorry, I had few debug prints enabled when I collected the stats. On
vanila u-boot for k2hk here are the stats:
u-boot-spi.gph 512K
u-boot.bin 448K
u-boot-nodtb.bin 420K
Still at least for k2 platforms DTBs alone are not to be blamed for
image size increase.
> And can we not move towards the "normal" method of SPL loading
> the u-boot.img (or FIT) from? I guess the current architecture here is
> confusing me.
This has been same for all k2 platforms. I guess we have single image so
that user don't have to bother flashing multiple images for spi boot
given the fact that all other boot modes have single image.
> Regardless, I still see the DT problem as the bigger one long term, and
> dra7xx shows that. And I agree we need to re-size how the flash is
> partitioned.
True.
>> There is similar issue with dra7xx where flash partition for SPL is
>> running out due to addition of new code.
> The DRA flash partition is, and should be fine because we have the
> ROM-mandated limits and don't need to include U-Boot with the SPL image.
> The main U-Boot image however is growing and that is a DTB problem. The
> difference here between -nodtb and the .img (FIT) with all of the DTBs
> is over 300KiB. And that's mostly linear growth when compared with the
> single-DTB case.
I agree DTBs are adding to image size on DRA. But even SPL is growing
and is bound to exceed its 64K limit[1].
[1] https://patchwork.kernel.org/patch/9515551/
next prev parent reply other threads:[~2017-03-18 12:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-04 12:47 [U-Boot] [PATCH] ARM: keystone: Pass SPI MTD partition table via kernel command line Vignesh R
2017-03-04 17:09 ` Tom Rini
2017-03-06 9:46 ` Vignesh R
2017-03-08 14:41 ` Tom Rini
2017-03-09 9:58 ` Vignesh R
2017-03-10 18:02 ` Tom Rini
2017-03-14 11:41 ` Vignesh R
2017-03-15 20:48 ` Tom Rini
2017-03-18 12:14 ` Vignesh R [this message]
2017-03-18 14:34 ` Tom Rini
2017-03-21 4:57 ` Vignesh R
2017-03-21 18:52 ` Franklin S Cooper Jr
2017-03-22 0:25 ` Tom Rini
2017-03-30 17:17 ` Franklin S Cooper Jr
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=f2b21c86-e6df-3ed3-40a2-16ea7c247bfa@ti.com \
--to=vigneshr@ti.com \
--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