9
0
Fork 0

Fix barebox metadata

Patch 97e81f2d78 (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>
This commit is contained in:
Philipp Zabel 2014-09-04 11:28:20 +02:00 committed by Sascha Hauer
parent 410fa9004d
commit c61c813e77
1 changed files with 1 additions and 1 deletions

View File

@ -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