public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] image: Implement IH_TYPE_KERNEL_ANYLOAD
Date: Thu, 10 Nov 2011 19:07:39 +0100	[thread overview]
Message-ID: <201111101907.39470.marek.vasut@gmail.com> (raw)
In-Reply-To: <4EBC11CE.1050202@nvidia.com>

> On 11/10/2011 10:47 AM, Marek Vasut wrote:
> >> On 11/10/2011 10:01 AM, Marek Vasut wrote:
> >>>> On 11/10/2011 02:58 AM, Marek Vasut wrote:
> >>>>>> [Description of IH_TYPE_KERNEL_ANYLOAD]
> >>>>> 
> >>>>> just a silly question, but didn't we agree on cmd_bootz? Or is this
> >>>>> unrelated ?
> >>>> 
> >>>> bootz did seem to be agreed upon initially, but Wolfgang's most recent
> >>>> response suggested that a new IH_TYPE would be acceptable, and it's a
> >>>> lot less code to implement. At a later point, bootz could still be
> >>>> implemented if desired.
> >>> 
> >>> Well DAMN. I think I'll probably implement bootz, because it seems
> >>> superior solution which I DID NEED for one of my devices for a while
> >>> now (if noone is working on it already). I can't say what ETA will be
> >>> on that, maybe next week, maybe two weeks.
> >> 
> >> Out of curiosity, why doesn't this bootm feature work for you?
> >> Admittedly you still need to wrap the zImage inside a uImage, but I
> >> don't think that's insurmountable? Aside from that, doesn't it work
> >> exactly like a bootz command would?
> > 
> > Do you still have those +12bytes (sizeof(uImage header)) offset there?
> > I don't like it.
> 
> The uImage file itself certainly includes the uImage header.
> 
> The code in my latest patches should be pointing images.os.load right at
> the image start itself (i.e. pointing past the header), so I don't think
> there's any incorrect offset within the code. This was really just a bug
> in the "-1 load address" patches I posted anyway.
> 
> > Also, I think using zImage might be plain easier.
> 
> Well, admittedly it's slightly simpler not to wrap zImage in uImage,
> since there's no need to run mkimage. However, with this new IH_TYPE,
> all the mkimage parameters can be hard-coded (there's no need to specify
> any real value for the addresses; just use 0), so the command-line is
> pretty simple. Besides, I imagine the kernel uImage target can be
> updated (or a new one added) to continue to do this for you.
> 
> I did consider that not running mkimage at all would be simpler, but
> there are other places mkimage would still be needed anyway:
> 
> a) Any initrd would still need to be wrapped in a uImage for bootm to
> recognize it. If you wrote a bootz to accept a raw unwrapped initrd, I
> imagine that same raw initrd recognition code could just as easily be
> applied to bootm.

Well if you want an image where you have kernel+initrd, why not use initramfs ?
> 
> b) The distro will most likely want to specify either the entire Linux
> command-line, or at least something to append to it. I imagine this will
> work by the distro creating a uImage-wrapped U-Boot script e.g.
> /boot/script.uimg. Creating that script would require mkimage too.
> Perhaps again U-Boot could be modified to support loading scripts from
> disk and executing them without requiring a uImage header though.
> 
> So, I don't think eliminating mkimage entirely is all that likely. And
> as such, using mkimage for the kernel itself doesn't seem like a big deal.

Hm, isn't FDT supposed to contain the command line now ?
> 
> Still, I'm not a distro vendor, so I don't know what their feelings are
> on this topic.

It's good to discuss stuff actually! It only mustn't turn into flamewar ;-)

M

  reply	other threads:[~2011-11-10 18:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09 17:47 [U-Boot] [PATCH 1/2] image: Implement IH_TYPE_KERNEL_ANYLOAD Stephen Warren
2011-11-09 17:47 ` [U-Boot] [PATCH 2/2] image: Don't detect XIP images as overlapping Stephen Warren
2011-11-10  9:58 ` [U-Boot] [PATCH 1/2] image: Implement IH_TYPE_KERNEL_ANYLOAD Marek Vasut
2011-11-10 16:04   ` Stephen Warren
2011-11-10 17:01     ` Marek Vasut
2011-11-10 17:43       ` Stephen Warren
2011-11-10 17:47         ` Marek Vasut
2011-11-10 18:02           ` Stephen Warren
2011-11-10 18:07             ` Marek Vasut [this message]
2011-11-10 18:25               ` Stephen Warren
2011-11-10 18:40                 ` Marek Vasut
2011-11-10 19:06                   ` Wolfgang Denk
2011-11-10 20:51                     ` Marek Vasut
2011-11-10 19:10                   ` Stephen Warren
2011-11-10 20:54                     ` Marek Vasut
2011-11-10 18:58               ` Wolfgang Denk
2011-11-10 11:59 ` Wolfgang Denk
2011-11-10 16:15   ` Stephen Warren
2011-11-10 18:53     ` Wolfgang Denk
2011-11-10 19:05       ` Stephen Warren
2011-11-10 19:27         ` Wolfgang Denk

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=201111101907.39470.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.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