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