mkimage: Can't set header for FIT Image support: Success

Bug #876795 reported by David Leonard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
u-boot (Ubuntu)
New
Undecided
Unassigned

Bug Description

When creating a devicetree image with the command:

   mkimage -O linux -A powerpc -C none -T flat_dt -d input.dtb output.ub

This results in an output.ub with an all-zero uboot header, the error message:

  mkimage: Can't set header for FIT Image support: Success

And it exits non-zero.

I'm not trying to build a FIT image (-f); I'm just wanting my pre-compiled fdt prefixed with a header containing ih_type==8.

I looked at the source and I think that tools/fit_image.c's fit_check_image_types() is tooaggressive. FIT should only be selected if a -f option is specified (and not if -T flat_dt is specified).

Revision history for this message
Loïc Minier (lool) wrote :

Thanks for the report; Debian/Ubuntu don't patch the mkimage code at the moment, so maybe you could work directly with upstream to solve this? It seems you started diving into this, do you already have a tentative patch to address the issue?

Thanks!

Revision history for this message
David Leonard (david-leonard-2) wrote :

No patch; to fix, some significant interface surgery looks necessary. My current workaround is a small custom mkimage that uses crc32 from libz. I will look into pushing this bug upstream.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.