Messages in this thread | | | Subject | Re: [PATCH] Open Firmware device tree virtual filesystem | From | Benjamin Herrenschmidt <> | Date | Tue, 02 Jan 2007 15:05:59 +1100 |
| |
> The filesystem bit is for groveling around and getting information > from the shell prompt, or shell scripts. Text processing. > > If you want the binary bits, export it with something like > /dev/openprom. We don't generally export binary representation > files out of /proc or /sys, in fact this rule I believe is layed > our precisely somewhere at least in the sysfs case.
Well, on powerpc, we've always had it binary. We expose the files with the exact binary content of the properties. We then use paulus' "lsprop" tool which is installed by default on pretty much all ppc distros, which duplicates OF's heuristics to display property contents (as strings, hex values or mix of both depending on that they contain).
It has proved a good idea in general as I can easily get an exact device-tree dump from users by asking for a tarball of /proc/device-tree and in some case, the data in there -is- binary (For example, the EDID properties for monitors left by video drivers, or things like that).
Ben.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |