[PATCH 06/10] fdtdump: add a --scan option
David Gibson
david at gibson.dropbear.id.au
Thu Apr 11 14:11:30 EST 2013
On Wed, Apr 10, 2013 at 02:29:11PM -0400, Mike Frysinger wrote:
> Often times, fdts get embedded in other larger files. Rather than force
> people to `dd` the blob out themselves, make the fdtdump file smarter.
>
> It can now scan the blob looking for the fdt magic. Once locate, it does
> a little validation on the main struct to make sure we didn't hit random
> binary data.
>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Hrm. I have mixed feelings about this. The scanning functionality is
certainly useful. But on the other hand, fdtdump is not supposed to
be a general use tool. It's basically a debugging aid: a quick and
dirty independent implementation of a dtb dump, for checking that dtc
is producing sane output. The preferred way to dump dtbs "for real"
is to use dtc -I dtb -O dts
I think the way I'd prefer to see this functionality would be to add a
new input format to dtc which is a little wrapper around the dtb input
format which does the scan.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20130411/2514fd93/attachment.sig>
More information about the devicetree-discuss
mailing list