From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mkimage: Fix 'Unknown OMAP image type - 5'
Date: Tue, 09 Aug 2011 18:21:35 +0200 [thread overview]
Message-ID: <4E415E8F.5070501@googlemail.com> (raw)
In-Reply-To: <4E403362.1060206@aribaud.net>
On 08.08.2011 21:05, Albert ARIBAUD wrote:
> Hi Dirk,
>
> Le 05/08/2011 20:42, Dirk Behme a ?crit :
>> From: Dirk Behme<dirk.behme@googlemail.com>
>>
>> Using mkimage with e.g.
>>
>> tools/mkimage -A arm -T firmware -O u-boot -d u-boot.bin foo.img
>>
>> gives a warning
>>
>> "Unknown OMAP image type - 5"
>>
>> while it seems that the image itself is created successfully.
>>
>> This does come from the patch "mkimage: Add OMAP boot image support".
>>
>> Reordering the init_xx_image_type() sequence does make this
>> message go away.
>>
>> Signed-off-by: Dirk Behme<dirk.behme@googlemail.com>
>> CC: John Rigby<john.rigby@linaro.org>
>> CC: Aneesh V<aneesh@ti.com>
>> CC: Sandeep Paulraj<s-paulraj@ti.com>
>>
>> ---
>>
>> This is reproducable with the recent mainline mkimage where the
>> patch "mkimage: Add OMAP boot image support" is applied:
>>
>> http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=3decb14abe76d244ba98fd158ef95f89e7e37d70
>>
>>
>> tools/mkimage.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> Index: u-boot.git/tools/mkimage.c
>> ===================================================================
>> --- u-boot.git.orig/tools/mkimage.c
>> +++ u-boot.git/tools/mkimage.c
>> @@ -156,12 +156,12 @@ main (int argc, char **argv)
>> init_imx_image_type ();
>> /* Init FIT image generation/list support */
>> init_fit_image_type ();
>> - /* Init TI OMAP Boot image generation/list support */
>> - init_omap_image_type();
>> /* Init Default image generation/list support */
>> init_default_image_type ();
>> /* Init Davinci UBL support */
>> init_ubl_image_type();
>> + /* Init TI OMAP Boot image generation/list support */
>> + init_omap_image_type();
>>
>> params.cmdname = *argv;
>> params.addr = params.ep = 0;
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>
> Any idea why reordering fixes the issue?
No, unfortunately not. I looked at the other patches touching this
section of mkimage.c and it looked like everybody is adding new init
functions below the existing ones. And this helped ;)
I hoped that John or Aneesh would comment on this...
> Seems to me like init
> functions are not / should not be dependent on order, so the "fix"
> seems fragile to me, at least as long as we cannot add a good
> explanation.
Yes, I agree.
John? Aneesh? Any idea?
Best regards
Dirk
next prev parent reply other threads:[~2011-08-09 16:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 18:42 [U-Boot] [PATCH] mkimage: Fix 'Unknown OMAP image type - 5' Dirk Behme
2011-08-08 11:04 ` Aneesh V
2011-08-08 19:05 ` Albert ARIBAUD
2011-08-09 16:21 ` Dirk Behme [this message]
2011-08-09 16:50 ` John Rigby
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=4E415E8F.5070501@googlemail.com \
--to=dirk.behme@googlemail.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