public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Franklin S Cooper Jr <fcooper@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: keystone: Pass SPI MTD partition table via kernel command line
Date: Thu, 30 Mar 2017 12:17:02 -0500	[thread overview]
Message-ID: <686cb020-e58d-e007-6904-0ee5c127538d@ti.com> (raw)
In-Reply-To: <20170322002520.GG19897@bill-the-cat>



On 03/21/2017 07:25 PM, Tom Rini wrote:
> On Tue, Mar 21, 2017 at 01:52:07PM -0500, Franklin S Cooper Jr wrote:
>>
>>
>> On 03/20/2017 11:57 PM, Vignesh R wrote:
>>>
>>>
>>> On Saturday 18 March 2017 08:04 PM, Tom Rini wrote:
>>>>>> 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.
>>>> The next question is, given that Franklin is talking about being able to
>>>> load the right DTB for any K2 platform basically, is the layout in
>>>> https://patchwork.ozlabs.org/patch/736498/ really looking like it will
>>>> be enough?
>>>>
>>>
>>> I will leave Franklin to comment here. I dont think he has plans to do
>>> changes for all K2 platforms (I guess his plans are mostly limited to K2G)
>>
>> I'm not sure if there is any real solution other than providing a
>> generous amount of storage for U-boot in the flash memory. I don't think
>> atleast within our TI SDK use cases we even use the misc partition. So I
>> don't see a reason why we couldn't give U-boot's partition 3 or 4 MB of
>> space.
> 
> OK.  But what about a dedicated place where the right (base) board DTB
> could reside?

If the concern is space atleast for TI evms I don't see the difference
between carving out separate space just for dtbs vs having 1 large space
for both U-boot and dtbs. Without the right dtb U-boot may not properly
boot or have enough to boot a kernel. So if dtbs out grow their space we
will need to increase it anyway.

> 
>> Also has there been any thoughts of compressing dtbs? These dtbs are
>> relatively massive and compressed they are around 1/5 the size.
> 
> There has not yet been.  My first thought is about decompression time,
> but maybe that won't matter.

So my thought would be that we will compress the dtbs individually and
not the entire FIT image. This way U-boot can then read the FIT header
uncompressed and then select and uncompress only the dtb it needs.
> 
>>
>> Personally I'm not a fan of U-boot performing all these fix ups before
>> passing things to the kernel. It forces so much coupling between
>> bootloader versions and kernel. And things become more painful when
>> changes in the kernel causes U-boot fix ups to break.
> 
> To the final point, I cannot find the video from the device tree BoF at
> ELC, but as we talked about there, to some degree overlays/fixups will
> have to be done in Linux.  But by the same token, a lot of overlay
> applications will be done prior to the kernel as well.  When in doubt,
> this shouldn't be done in C, but in user replaceable/updatable scripts.
> 

I think prebuilt overlays that are loaded and applied in U-boot is the
right way to go. Atleast then its not entwined within source code and is
edited in a very human readable manner.

      reply	other threads:[~2017-03-30 17:17 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
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 [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=686cb020-e58d-e007-6904-0ee5c127538d@ti.com \
    --to=fcooper@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