[PATCH] Fix barebox metadata

Philipp Zabel p.zabel at pengutronix.de
Thu Sep 4 02:28:20 PDT 2014


Patch 97e81f2d78f3 (Add support for metadata in barebox images)
writes the wrong length for the model tag in the barebox metadata.
Fix this to use the correct value.

Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
 scripts/gen-dtb-s | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gen-dtb-s b/scripts/gen-dtb-s
index 434612f..a920495 100755
--- a/scripts/gen-dtb-s
+++ b/scripts/gen-dtb-s
@@ -36,7 +36,7 @@ if [ "$imd" = "y" ]; then
 	if [ "$model" != "notfound" ]; then
 		modellen=$($FDTGET -t s "$dtb" / model | wc -c)
 		le32 0x640c8004
-		le32 $compatlen
+		le32 $modellen
 		echo ".byte " $model
 		echo ".balign 4"
 	fi
-- 
2.0.1




More information about the barebox mailing list