Simon Glass | 76bce10 | 2016-07-04 11:58:11 -0600 | [diff] [blame] | 1 | #!/usr/bin/python |
2 | |||||
3 | import os | ||||
4 | import sys | ||||
5 | |||||
6 | our_path = os.path.dirname(os.path.realpath(__file__)) | ||||
7 | sys.path.append(os.path.join(our_path, '../../b/sandbox_spl/tools')) | ||||
8 | |||||
9 | import libfdt | ||||
10 | |||||
11 | with open('b/sandbox_spl/u-boot.dtb') as fd: | ||||
12 | fdt = fd.read() | ||||
13 | |||||
14 | print libfdt.fdt_path_offset(fdt, "/aliases") |