All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2] BOOT: Add "bootz" command to boot Linux zImage
Date: Mon, 14 Nov 2011 20:42:19 +0100	[thread overview]
Message-ID: <201111142042.19803.marek.vasut@gmail.com> (raw)
In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF1740805B07@HQMAIL01.nvidia.com>

> Marek Vasut wrote at Friday, November 11, 2011 7:51 PM:
> > This command boots Linux zImage from where the zImage is loaded to.
> > Passing initrd and fdt is supported.
> 
> Marek, this looks pretty neat. A few general questions though:
> 
> 1) I believe the zImage format is ARCH-specific. I'm not sure that on
> non-ARM ARCHs, you just start executing at the start of the zImage. Should
> this function be somehow disabled on non-ARM until something explicit is
> done about that?

Well zImage contains the decompressor which handles the proper placement of the 
kernel. Therefore there is only the catch the user must not be an idiot and must 
load the kernel at the correct address himself.

> 
> 2) Should bootz_start() validate it was passed a valid zImage, by checking
> the magic value in the header?

Sounds good.

> 
> 3) boot_get_ramdisk() only accepts uImage (legacy or FIT). Can/should it
> be enhanced to accept raw ramdisk images?

Certainly, that'd help. Are you willing to look into that?

> 
> 4) Is it safe to assume that do_bootm_linux() only cares about images->ep
> and nothing else for the kernel? I know it's coded that way right now,
> but I wonder if someone might refactor bootm and forget about bootz and
> change this assumption. I guess this is OK though...

Yes, this is valid point. We should be very careful about this. So suggestions 
how to handle this ?

> 
> I don't have any other specific comments on the code.
> 
> You may want to CC everyone else involved in the IH_TYPE_KERNEL_NOLOAD
> discussion - I imagine they'll all be interested in this too.

Sure.
> 
> --
> nvpublic

  reply	other threads:[~2011-11-14 19:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-12  2:35 [U-Boot] [PATCH] BOOT: Add "bootz" command to boot Linux zImage Marek Vasut
2011-11-12  2:50 ` [U-Boot] [PATCH V2] " Marek Vasut
2011-11-14 18:48   ` Stephen Warren
2011-11-14 19:42     ` Marek Vasut [this message]
2011-11-14 20:23       ` Stephen Warren

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=201111142042.19803.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.