public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Philippe De Swert <philippedeswert@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mkimage : Fix generating multi and script images
Date: Mon, 07 Dec 2015 11:02:31 +0200	[thread overview]
Message-ID: <56654B27.5080708@gmail.com> (raw)
In-Reply-To: <CAPnjgZ28VcAdVQUFH7mVNW8hmZjwWmnVeKeV5_EPHD6knoT5UA@mail.gmail.com>

Hi Simon,

On 07/12/15 06:31, Simon Glass wrote:
>
> -       dfd = open(params.datafile, O_RDONLY | O_BINARY);
> -       if (dfd < 0) {
> -               fprintf(stderr, "%s: Can't open %s: %s\n",
> -                       params.cmdname, params.datafile, strerror(errno));
> -               exit(EXIT_FAILURE);
> -       }
> +       if (!params.type == IH_TYPE_MULTI ||
> +           !params.type == IH_TYPE_SCRIPT) {
> This breaks rockchip image generation. I'm not sure what the above two
> lines are supposed to do, but if they are correct they are very
> confusing. Can you please take a look? I'll send a revert in the
> meantime.

Weird, those lines only do something if  -T multi or -T script. These 
seem have command lines that will
not work at all due to things not being expanded and the open below failing.
I have no idea what the used command line would be for rockchip though, 
so I would need more
info to avoid breaking that with a new patch. Are you btw sure this is 
the commit that breaks it?

>> +               dfd = open(params.datafile, O_RDONLY | O_BINARY);
>> +               if (dfd < 0) {
>> +                       fprintf(stderr, "%s: Can't open %s: %s\n",
>> +                               params.cmdname, params.datafile,
>> +                               strerror(errno));
>> +                       exit(EXIT_FAILURE);
>> +               }
>>
>>

Thanks,

Philippe

  reply	other threads:[~2015-12-07  9:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03 22:11 [U-Boot] [PATCH] mkimage : Fix generating multi and script images Philippe De Swert
2015-12-06 22:08 ` [U-Boot] " Tom Rini
2015-12-07  4:31 ` [U-Boot] [PATCH] " Simon Glass
2015-12-07  9:02   ` Philippe De Swert [this message]
2015-12-07 13:06     ` Simon Glass

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=56654B27.5080708@gmail.com \
    --to=philippedeswert@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