Package pyfdt :: Module pyfdt :: Class Fdt
[hide private]
[frames] | no frames]

Class Fdt

source code

object --+
         |
        Fdt

Flattened Device Tree representation

Instance Methods [hide private]
 
__init__(self, version=17, last_comp_version=16, boot_cpuid_phys=0)
Init FDT object with version and boot values
source code
 
add_rootnode(self, rootnode, prenops=None, postnops=None)
Add root node
source code
 
get_rootnode(self)
Get root node
source code
 
add_reserve_entries(self, reserve_entries)
Add reserved entries as list of dict with 'address' and 'size' keys
source code
 
to_dts(self)
Export to DTS representation in string format
source code
 
to_dtb(self)
Export to Blob format
source code
 
to_json(self)
Ouput JSON
source code
 
resolve_path(self, path)
Resolve path like /memory/reg and return either a FdtNode, a FdtProperty or None
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, version=17, last_comp_version=16, boot_cpuid_phys=0)
(Constructor)

source code 

Init FDT object with version and boot values

Overrides: object.__init__