Skip to contentSkip to conversation

spl: fit: Print error message when FDT is not present

PATCH In review Michal Simek 3 participants 4 messages May 4, 2016 – May 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: fit: Print error message when FDT is not present

When FDT is not present in the image user doesn't get any error what's wrong. Print error message if LIBCOMMON_SUPPORT is enabled.

Seris-cc: uboot
---

 common/spl/spl_fit.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
common/spl/spl_fit.c +6 -1
index ace254348ad9..c11c03ff2f86 100644
@@ -39,8 +39,13 @@ static int spl_fit_select_fdt(const void *fdt, int images, int *fdt_offsetp)
 	     node >= 0;
 	     node = fdt_next_subnode(fdt, node)) {
 		name = fdt_getprop(fdt, node, "description", &len);
-		if (!name)
+		if (!name) {
+#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
+			printf("%s: Missing FDT description in DTB\n",
+			       __func__);
+#endif
 			return -EINVAL;
+		}
 		if (board_fit_config_name_match(name))
 			continue;
 
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 spl: fit: Print error message when FDT is not present

Quoted 5 lines · Michal Simek

When FDT is not present in the image user doesn't get any error what's wrong. Print error message if LIBCOMMON_SUPPORT is enabled.

Seris-cc: uboot

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160506/bc4a3fa7/attachment.sig>
#3 lore raw
In reply to Michal Simek
Quoted 7 lines · Michal Simek

When FDT is not present in the image user doesn't get any error what's wrong. Print error message if LIBCOMMON_SUPPORT is enabled.

Seris-cc: uboot

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160523/52268362/attachment.sig>