On 18/05/2020 17:42, CVS wrote:
but nothing came up on the right hand side
Hmmm... Sorry about that.
Turns out problem was on my side. I didn't want to use the precompiled dtc binary in the repo, so I removed it and just used the Debian packaged dtc which didn't work. Building mainline dtc and using that worked a treat.
I really like the tool. I think it is very useful. I'd be happy to host it somewhere under github/devicetree_org, but alternately it could be included in the main dtc repo which will give the tool wider reach.
Cheers, g.
There are these 2 commands that the dtv-demo executes behind the scenes to gather the necessary information. One (or both) of them could be failing. Here is a patch that logs those 2 complete commands with the actual arguments.
Try re-running dtv-demo with this patch applied. Once you have these 2 logs (say cmdX and cmdY), you can try manually running them by piping the output of the first command to the second i.e. cmdX | cmdY to identify and fix whatever is necessary on the system.
If you find that you are having issues running the pre-compiled dtc binary within dtv-demo, please feel free to replace it with any recent dtc binary on your system which supports the -T cmd-line parameter.
@@ -115,11 +115,13 @@ def annotateDTS(trwIncludedFiles, dtsFile): # cpp ${cpp_flags} ${cpp_includes} ${dtx} | ${DTC} ${dtc_flags} ${dtc_include} -I dts cpp = 'cpp ' cppFlags += '-nostdinc -undef -D__DTS__ -x assembler-with-cpp '
print(cpp + cppFlags + cppIncludes + ' ' + dtsFile) cppResult = subprocess.run(cpp + cppFlags + cppIncludes + ' ' + dtsFile, stdout=PIPE, stderr=PIPE, shell=True)
dtc = './dtc ' dtcFlags = '-I dts -O dts -f -s -T -T -o - '
print(dtc + dtcFlags + dtcIncludes) dtcResult = subprocess.run(dtc + dtcFlags + dtcIncludes,
stdout=PIPE, stderr=PIPE, input=cppResult.stdout, shell=True)
# Create a temporary file in the current working directory
I hope this helps...
regards CVS
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.