public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.
Date: Wed, 25 Oct 2017 09:45:26 -0400	[thread overview]
Message-ID: <20171025134526.GV22919@bill-the-cat> (raw)
In-Reply-To: <20171025145844.3fe7077a@i7>

On Wed, Oct 25, 2017 at 02:58:44PM +0300, Siarhei Siamashka wrote:
> On Tue, 24 Oct 2017 18:21:43 +0100
> Andre Przywara <andre.przywara@arm.com> wrote:
> 
> > Hi,
> > 
> > On 24/10/17 18:05, Dennis Gilmore wrote:
> > > El lun, 23-10-2017 a las 09:35 +0200, Maxime Ripard escribió:  
> > >> On Fri, Oct 20, 2017 at 04:33:57PM -0500, Dennis Gilmore wrote:  
> > >>> El jue, 19-10-2017 a las 16:58 +0200, Maxime Ripard escribió:  
> > >>>> On Thu, Oct 19, 2017 at 03:42:11PM +0100, Andre Przywara wrote:  
> > >>>>> Hi,
> > >>>>>
> > >>>>> On 19/10/17 14:24, Maxime Ripard wrote:  
> > >>>>>> On Thu, Oct 19, 2017 at 02:03:55PM +0100, Andre Przywara
> > >>>>>> wrote:  
> > >>>>>>> Hi,
> > >>>>>>>
> > >>>>>>> On 19/10/17 09:26, Maxime Ripard wrote:  
> > >>>>>>>> Hi,
> > >>>>>>>>
> > >>>>>>>> Most featureful boards, such as the Cubietruck, have been
> > >>>>>>>> broken since
> > >>>>>>>> the release 2017.09.
> > >>>>>>>>
> > >>>>>>>> This is due to a size increase of the binary that will
> > >>>>>>>> trip
> > >>>>>>>> us across
> > >>>>>>>> the size we've been using in the u-boot-sunxi-with-
> > >>>>>>>> spl.bin
> > >>>>>>>> file.
> > >>>>>>>>
> > >>>>>>>> We would have two ways to work around it. The first one
> > >>>>>>>> would
> > >>>>>>>> be to
> > >>>>>>>> just increase the offset of the environment. However,
> > >>>>>>>> since
> > >>>>>>>> it would
> > >>>>>>>> break all the environments of our users and possibly the
> > >>>>>>>> custom
> > >>>>>>>> partition scheme that they would have created, it doesn't
> > >>>>>>>> really seem
> > >>>>>>>> like a smart move.  
> > >>>>>>>
> > >>>>>>> Is that really such a problem? How many people rely on
> > >>>>>>> having
> > >>>>>>> their
> > >>>>>>> custom environment preserved over an update? (That's an
> > >>>>>>> honest
> > >>>>>>> question)  
> > >>>>>>
> > >>>>>> All of them, I guess. In your U-boot upgrade script, do you
> > >>>>>> do a
> > >>>>>> 'env
> > >>>>>> default -a; saveenv' all the time ?
> > >>>>>>
> > >>>>>> I know I don't.  
> > >>>>>
> > >>>>> Well, I never use the saved environment and always expected
> > >>>>> some
> > >>>>> user or
> > >>>>> board specific environment to come from some file (boot.scr or
> > >>>>> something
> > >>>>> loaded via TFTP). But that's just my personal use, hence I was
> > >>>>> asking.  
> > >>>>
> > >>>> Well, even if you want to boot to tftp, you'll need to have some
> > >>>> setup
> > >>>> to do, even just to use a different server IP, and that will be
> > >>>> in
> > >>>> the
> > >>>> environment.  
> > >>>
> > >>> I personally just use pxe boot  
> > >>
> > >> It's not really about what personally you use, but what any user can
> > >> use.  
> > > Not saying that it is. but how I use it is really simple for the user
> > > to use without needing to have a ton of specific knowledge about how u-
> > > boot works
> > >   
> > >>> dhcp
> > >>> pxe get
> > >>> pxe boot
> > >>> and pick the right option. nothing needed on the client side.  
> > >>
> > >> It has the assumption that the DHCP server is setup properly, which
> > >> might or might not be the case, especially when it comes to the
> > >> server
> > >> option being there and valid.
> > >>
> > >> Maxime  
> > > Anyone doing something like this on X86 has to have the same setup. its
> > > not that hard of a ask to assume that a pxe environment is available.
> > > you can skip the dhcp part and set the serrver ip and system ip
> > > manually, its just simpler to use dhcp  
> > 
> > I agree to both of you ;-)
> > As Maxime already pointed out, it's a bit of a pointless discussion, as
> > x U-Boot users have possibly x different usage scenarios.
> > Some very actively do work on the U-Boot prompt and rely on a customized
> > and preserved environment, while others merely rely on some standardized
> > boot paths, using config_distro_bootcmd.h and PXE, DHCP and/or EFI.
> > 
> > That being said I have prepared a patch to switch sunxi ARM64 boards
> > over to ENV_IS_IN_FAT, because I guess we will hit the wall soon there
> > and have no Thumb2 to get off lightly.
> 
> Even without Thumb2 we still can reduce footprint by taking advantage
> of compression for the main U-Boot binary. For this purpose we can use
> at least LZO because the decompressor code is really small (was it
> 200-300 bytes?) and still can fit in SPL. A more sophisticated approach
> can involve attaching the decompressor code to the main U-Boot binary
> itself.
> 
> To be honest, I actually expected the size overflow problem to
> eventually happen for the SPL, resulting in a proposal of a similar
> radical feature chopping "solution". And when shit actually hits the
> fan, I will submit an LZO/UCL runtime decompression patch for the SPL,
> which can save the day :-) I have already mentioned this a few times in
> the past and it is our strategic reserve. The size overflow for the
> main U-Boot binary was a bit of surprise to me, but we still have it
> under control.

Would you mind posting the runtime decompression part?  We have other
platforms that are already stuck due to small size limits and something
like this might finally un-block them.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171025/f4e82364/attachment.sig>

  parent reply	other threads:[~2017-10-25 13:45 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-19  8:26 [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al Maxime Ripard
2017-10-19  8:26 ` [U-Boot] [PATCH 1/3] ARM: sunxi: Disable USB host options by default Maxime Ripard
2017-10-19  8:48   ` Alexander Graf
2017-10-19  9:11     ` Andre Przywara
2017-10-19 11:55       ` Maxime Ripard
2017-10-19  8:54   ` Peter Robinson
2017-10-19 11:44   ` Mark Kettenis
2017-10-19  8:26 ` [U-Boot] [PATCH 2/3] ARM: sunxi: Disable FAT write " Maxime Ripard
2017-10-19  8:26 ` [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi Maxime Ripard
2017-10-19  8:43   ` Peter Robinson
2017-10-19  9:01     ` Maxime Ripard
2017-10-19  9:06       ` Peter Robinson
2017-10-19  9:12         ` Peter Robinson
2017-10-19 11:43           ` Maxime Ripard
2017-10-19 21:40             ` Rob Clark
2017-10-20  7:20               ` Maxime Ripard
2017-10-20 12:27                 ` Peter Robinson
2017-10-20 12:36                   ` Maxime Ripard
2017-10-20 12:54                     ` Tom Rini
2017-10-20 16:39                       ` Maxime Ripard
2017-10-20 17:57                         ` Tom Rini
2017-10-20 18:52                         ` Peter Robinson
2017-10-20 12:56                     ` Peter Robinson
2017-10-19  9:12         ` Maxime Ripard
2017-10-23 13:35     ` Heinrich Schuchardt
2017-10-19  8:51   ` Alexander Graf
2017-10-19 10:54     ` Jonathan Gray
2017-10-19 11:52     ` Maxime Ripard
2017-10-19 11:39   ` Mark Kettenis
2017-10-19 11:48     ` Maxime Ripard
2017-10-19 13:24   ` Tom Rini
2017-10-19  8:44 ` [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al Alexander Graf
2017-10-19  9:11   ` Maxime Ripard
2017-10-19 12:10     ` Alexander Graf
2017-10-19  9:10 ` Siarhei Siamashka
2017-10-19 13:20   ` Tom Rini
2017-10-19 13:26   ` Maxime Ripard
2017-10-19 13:03 ` Andre Przywara
2017-10-19 13:24   ` Maxime Ripard
2017-10-19 13:31     ` Tom Rini
2017-10-19 14:42     ` Andre Przywara
2017-10-19 14:58       ` Maxime Ripard
2017-10-20 21:33         ` Dennis Gilmore
2017-10-23  7:35           ` Maxime Ripard
2017-10-24 17:05             ` Dennis Gilmore
2017-10-24 17:21               ` Andre Przywara
2017-10-25  9:42                 ` Maxime Ripard
2017-10-25  9:55                   ` Jagan Teki
2017-10-25 12:30                     ` Maxime Ripard
2017-10-25 10:01                   ` Andre Przywara
2017-10-25 11:58                 ` Siarhei Siamashka
2017-10-25 13:42                   ` Andre Przywara
     [not found]                     ` <20171025184101.aihe47qongf52e7c@excalibur.cnev.de>
2017-10-26  1:46                       ` Dennis Gilmore
2017-10-25 13:45                   ` Tom Rini [this message]
2017-10-25 13:50                   ` Maxime Ripard
2017-10-20 21:31     ` Dennis Gilmore
2017-10-19 13:28 ` Tom Rini
2017-10-19 13:50   ` Maxime Ripard

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=20171025134526.GV22919@bill-the-cat \
    --to=trini@konsulko.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