Microsoft Windows [Version 10.0.18363.1139]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Windows\SysWOW64>cd c:\Python38
c:\Python38>PATH
PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Webex\Plugins;C:\Program Files\PuTTY\;C:\windows\System32\OpenSSH\;C:\Users\lhu3\AppData\Local\Microsoft\WindowsApps;
c:\Python38>PATH=c:\Python38;c:\Python38\Scripts;%PATH%
c:\Python38>pip install fdt
Collecting fdt
Downloading fdt-0.2.0-py3-none-any.whl (22 kB)
Installing collected packages: fdt
Successfully installed fdt-0.2.0
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the 'c:\python38\python.exe -m pip install --upgrade pip' command.
c:\Python38>pydtc
usage: pydtc [-h] [-v] {pack,unpack,merge,diff} ...
Flat Device Tree (FDT) tool for manipulation with *.dtb and *.dts files
positional arguments:
{pack,unpack,merge,diff}
pack Pack *.dts into binary blob (*.dtb)
unpack Unpack *.dtb into readable format (*.dts)
merge Merge more files in *.dtb or *.dts format
diff Compare two files in *.dtb or *.dts format
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
c:\Python38>cd \work\fdt_master.20201105-0627_arm.bin
c:\work\fdt_master.20201105-0627_arm.bin>dir
Volume in drive C is Windows
Volume Serial Number is 7EBB-61E3
Directory of c:\work\fdt_master.20201105-0627_arm.bin
11/11/2020 03:28 PM <DIR> .
11/11/2020 03:28 PM <DIR> ..
11/11/2020 03:17 PM 49,220 fdt-coldboot-normal
11/11/2020 03:17 PM 49,224 fdt-softreboot-normal
2 File(s) 98,444 bytes
2 Dir(s) 289,425,989,632 bytes free
c:\work\fdt_master.20201105-0627_arm.bin>pydtc
c:\work\fdt_master.20201105-0627_arm.bin>cd \work\fdt_master.20201105-0627_arm.bin
c:\work\fdt_master.20201105-0627_arm.bin>pydtc unpack
usage: pydtc unpack [-h] [-s TAB_SIZE] [-o DTS_FILE] dtb_file
pydtc unpack: error: the following arguments are required: dtb_file
c:\work\fdt_master.20201105-0627_arm.bin>pydtc unpack fdt-coldboot-normal
DTS saved as: fdt-coldboot-normal.dts
c:\work\fdt_master.20201105-0627_arm.bin>pydtc unpack fdt-softreboot-normal
DTS saved as: fdt-softreboot-normal.dts