public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ahmad Draidi <ar2000jp@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] image: Fix Android boot image support
Date: Thu, 23 Oct 2014 09:08:01 +0300	[thread overview]
Message-ID: <3442084.mvHBCZSLVA@sandy> (raw)
In-Reply-To: <CAPnjgZ20TMq4rNhrF=J5Y6AoHCFByOq-CM-WYhfdyE70xM+BmQ@mail.gmail.com>

Hello, Mr. Glass.

On Wednesday 22 October 2014 11:29:00 AM Simon Glass wrote:
> One little nit below but it looks OK to me. I'm assume that no one
> would want to replace the command line completely?
> 

In some setups, one image can be used with several versions, or even
    different boards of hardware. The bootloader passes a command line
    argument to specify this. Also, the header file for the mkbootimg
    specifies that the "kernel_args[] is appended to the kernel
    commandline". So I thought this would make it consistent with other
    bootloaders, and the spec.

> I hope you can write a test too. Re your comment about not wanting to
> change the code much - if we go that way the code will get really
> ugly. When you add features you often need to refactor. When there are
> tests, it becomes easier to know you have not broken things.

Thanks for the tip.
I'll try to write a test if I get the time.
One thing comes to mind. To be able to write a test, we'll need an image
    to test against. I think pulling in the mkbootimg tool is the right move.
    The other option I can think of is bundling a small dummy image with
    U-Boot, which I think is a bit ugly. What do you think?

> Reviewed-by: Simon Glass <sjg@chromium.org>
> nit: return -ENOMEM - suggest adding a comment to
> android_image_get_kernel() so its args and return value are
> documented.
> 

Thank you. I'll send in a new version soon.

> Regards,
> Simon

Regards,
Ahmad Draidi

  reply	other threads:[~2014-10-23  6:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17  4:52 [U-Boot] [PATCH] image: Fix Android boot image support Ahmad Draidi
2014-10-17 20:19 ` Simon Glass
2014-10-18  5:34   ` Ahmad Draidi
2014-10-20 21:42     ` Simon Glass
2014-10-20 21:42 ` Simon Glass
2014-10-21 16:30   ` Ahmad Draidi
2014-10-21 16:55 ` [U-Boot] [PATCH v2] " Ahmad Draidi
2014-10-22 17:29   ` Simon Glass
2014-10-23  6:08     ` Ahmad Draidi [this message]
2014-10-23 18:24       ` Simon Glass
2014-10-23 17:50 ` [U-Boot] [PATCH v3] " Ahmad Draidi
2014-10-23 18:25   ` Simon Glass
2014-10-27 22:22   ` [U-Boot] [U-Boot,v3] " 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=3442084.mvHBCZSLVA@sandy \
    --to=ar2000jp@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