[U-Boot] mkimage can't read .tmp

Hello all
I have been trying to create a FIT image using mkimage using the command:
mkimage -D "-I dts -O dtb -p 2000" -f name.its name.fit
The output is:
DTC: dts->dtb on file "name.its" mkimage: Can't read name.fit.tmp: Invalid argument mkimage Can't add hashes to FIT blob
No matter what I try, which arguments I add or remove or which modifications I make to the its file, I keep getting this output. Unfortunately I can't find much on Google for this exact issue. I found someone who solved the issue by installing DTC, but that is not the issue in my case.
Uboot development tools, DTC and mkimage are all at the latest version.
Does anyone have any idea what other issues might be causing this behavior?
Kind regards Tom

Hi Tom,
On 27 June 2016 at 23:50, Tom Van Deun tom.vandeun@wapice.com wrote:
Hello all
I have been trying to create a FIT image using mkimage using the command:
mkimage -D "-I dts -O dtb -p 2000" -f name.its name.fit
The output is:
DTC: dts->dtb on file "name.its" mkimage: Can't read name.fit.tmp: Invalid argument mkimage Can't add hashes to FIT blob
No matter what I try, which arguments I add or remove or which modifications I make to the its file, I keep getting this output. Unfortunately I can't find much on Google for this exact issue. I found someone who solved the issue by installing DTC, but that is not the issue in my case.
Uboot development tools, DTC and mkimage are all at the latest version.
Does anyone have any idea what other issues might be causing this behavior?
Not exactly, but I think this is failing on the mmap() call, probably in mmap_fdt(). Is there anything special about your filesystem?
Kind regards Tom
Regards, Simon

Hi Tom,
On 30 June 2016 at 09:46, Simon Glass sjg@chromium.org wrote:
Hi Tom,
On 27 June 2016 at 23:50, Tom Van Deun tom.vandeun@wapice.com wrote:
Hello all
I have been trying to create a FIT image using mkimage using the command:
mkimage -D "-I dts -O dtb -p 2000" -f name.its name.fit
The output is:
DTC: dts->dtb on file "name.its" mkimage: Can't read name.fit.tmp: Invalid argument mkimage Can't add hashes to FIT blob
No matter what I try, which arguments I add or remove or which modifications I make to the its file, I keep getting this output. Unfortunately I can't find much on Google for this exact issue. I found someone who solved the issue by installing DTC, but that is not the issue in my case.
Uboot development tools, DTC and mkimage are all at the latest version.
Does anyone have any idea what other issues might be causing this behavior?
Not exactly, but I think this is failing on the mmap() call, probably in mmap_fdt(). Is there anything special about your filesystem?
I copied you on a patch that might help.
Regards, SImon
participants (2)
-
Simon Glass
-
Tom Van Deun