summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2014-09-04 11:28:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-09-04 14:43:58 +0200
commitc61c813e770e048c64801ed3a6220cff0d39dfab (patch)
treef7a2b964173e815cd5646b8a45a687809e96575d
parent410fa9004da74a88ec2358fc8a89d104e6c4e5bd (diff)
downloadbarebox-c61c813e770e048c64801ed3a6220cff0d39dfab.tar.gz
Fix barebox metadata
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@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rwxr-xr-xscripts/gen-dtb-s2
1 files changed, 1 insertions, 1 deletions
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