* [PATCH] Fix barebox metadata
@ 2014-09-04 9:28 Philipp Zabel
2014-09-04 12:44 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2014-09-04 9:28 UTC (permalink / raw)
To: barebox
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>
---
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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix barebox metadata
2014-09-04 9:28 [PATCH] Fix barebox metadata Philipp Zabel
@ 2014-09-04 12:44 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-09-04 12:44 UTC (permalink / raw)
To: Philipp Zabel; +Cc: barebox
On Thu, Sep 04, 2014 at 11:28:20AM +0200, Philipp Zabel wrote:
> 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>
Applied, thanks
Sascha
> ---
> 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
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-04 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-04 9:28 [PATCH] Fix barebox metadata Philipp Zabel
2014-09-04 12:44 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox