Module pyfdt
source code
Device Tree Blob Parser
Copyright 2014 Neil 'superna' Armstrong <superna9999@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@author: Neil 'superna' Armstrong <superna9999@gmail.com>
|
_add_json_to_fdtnode(node,
subjson)
Populate FdtNode with JSON dict items |
source code
|
|
|
FdtJsonParse(buf)
Import FDT from JSON representation, see JSONDeviceTree.md for
structure and encoding Returns an Fdt object |
source code
|
|
|
FdtFsParse(path)
Parse device tree filesystem and return a Fdt instance Should be
/proc/device-tree on a device, or the fusemount.py mount point. |
source code
|
|
|
FDT_MAGIC = 3490578157
|
|
FDT_BEGIN_NODE = 1
|
|
FDT_END_NODE = 2
|
|
FDT_PROP = 3
|
|
FDT_NOP = 4
|
|
FDT_END = 9
|
|
INDENT = ' '
|
|
FDT_MAX_VERSION = 17
|
|
__package__ = ' pyfdt '
|