bootm: fit-image: hash node name too strict

Sebastian Groß sebastian.gross at emlix.com
Mon Jan 6 23:14:31 PST 2025


Hello and a happy new year 2025 dear all,

I happened to have a fit-image which worked fine with u-boot and wanted 
to give it a try with barebox.
Sadly I got yelled at for not having hashes for the kernel-1 `Image` 
provided in the fit-image.

Grepping the source code for the error message pointed to 
`fit_verify_hash` and `of_get_child_by_name` with `hash at 1` or `hash-1`.
Neither is required by u-boot as it looks only for `FIT_HASH_NODENAME` 
which is defined as `hash`.

Since the image is build by uboot's mkimage I would expect the itb's to 
be compatible. Or am I missing something?

Changing the following line in the `its`, ie. its build script
```
- hash { algo = "${FIT_HASH_ALG}"; };
+ hash at 1 { algo = "${FIT_HASH_ALG}"; };
```
made the fit-image work.

Perhaps another if-clause is required. Or some error message that states 
which property/string was searched for,
since there were hashes in the image, but not where barebox expected them.

Regards

Sebastian Groß

--
Sebastian Groß, B.Sc.

emlix GmbH
Headquarters: Berliner Str. 12, 37073 Goettingen, Germany
Phone +49 (0)551 30664-0, e-mail info at emlix.com
District Court of Goettingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com

emlix - your embedded Linux partner




More information about the barebox mailing list