public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] config: Use booti instead of bootz on 64-bit ARM
Date: Mon, 23 Mar 2015 13:44:16 -0600	[thread overview]
Message-ID: <55106D10.3020803@wwwdotorg.org> (raw)
In-Reply-To: <20150320170740.GH32541@bill-the-cat>

On 03/20/2015 11:07 AM, Tom Rini wrote:
> On Fri, Mar 20, 2015 at 10:17:00AM -0600, Stephen Warren wrote:
>> On 03/20/2015 05:56 AM, Thierry Reding wrote:
>>> From: Thierry Reding <treding@nvidia.com>
>>>
>>> The bootz command doesn't work with Linux kernel images on 64-bit ARM.
>>> The replacement command with the same interface and functionality is
>>> booti.
>>
>> Uggh. Why can't bootz work everywhere, or why can't bootz be an
>> alias to booti on ARM64? Are the command-line parameters different?
>> It'd be really nice to be able to create one boot.scr.uimg file that
>> just works everywhere, and having different command names will
>> scupper that.
>
> So, a long while back I asked about maybe adding a
> "bootSOMETHING-THAT-GUESSES-YOUR-FORMAT" command to help here.  The
> issue is that "bootz" means "boot an ARM Linux Kernel with the kernel's
> decompressor that's at the front".  It's not even (sadly, arg) what
> "boot an x86 Linux Kernel with the kernel's decompressor that's at the
> front" is, that's zboot.  In the kernel (today), there's no desire to
> add the decompressor "arm" has to "aarch64" and instead leave
> decompression to the loader (And compression to the user).  So we have
> to handle the Image format that aarch64 uses.
>
> Frankly I've always looked at the distro work here as the
> "boot-do-what-I-mean" stuff where we hide that the common multi-platform
> image types aren't popular and just let people boot the "normal" kernel
> for their architecture.

Ah yes, I guess that's true. A hypothetical universal "boot this image" 
function would be nice to enable everywhere. IIRC, bootm does some image 
format detection (uimage vs. FIT) so perhaps it could just grow the 
ability to boot anything?

I suppose it isn't too hard for a distro to detect ARM vs. ARM64 vs. x86 
and select bootz/booti/zboot for those cases, so long as all boards of 
an architecture are consistent.

  reply	other threads:[~2015-03-23 19:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-20 11:56 [U-Boot] [PATCH] config: Use booti instead of bootz on 64-bit ARM Thierry Reding
2015-03-20 16:17 ` Stephen Warren
2015-03-20 17:07   ` Tom Rini
2015-03-23 19:44     ` Stephen Warren [this message]
2015-03-28 18:09 ` [U-Boot] " Tom Rini

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=55106D10.3020803@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --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