Problem in creating dt.img

hi,

Followed the steps to create boot-db410c.img

problem in creating dt.img, downloaded dtbTool from different .gits. Do we need to use specific version of dtbTool?

We are able to created the .dtb for apq8016.
arch/arm64/boot/dts/qcom/apq8016-sbc.dtb’ is up to date.

git clone git://codeaurora.org/quic/kernel/skales
git clone https://github.com/xiaolu/mkbootimg_tools

ubuntu-qcom-dragonboard410c-15.07$ …/mkbootimg_tools/dtbTool -o dt.img -s 2048 …/ubuntu-qcom-dragonboard410c-15.07/arch/arm64/boot/dts/qcom/

DTB combiner:
Input directory: ‘…/ubuntu-qcom-dragonboard410c-15.07/arch/arm64/boot/dts/qcom/’
Output file: ‘dt.img’
Found file: msm8916-mtp.dtb … skip, failed to scan for ‘qcom,msm-id = <’ tag
Found file: apq8016-sbc.dtb … skip, failed to scan for ‘qcom,msm-id = <’ tag
=> Found 0 unique DTB(s)

ubuntu-qcom-dragonboard410c-15.07$ …/skales/dtbTool -o dt.img -s 2048 …/ubuntu-qcom-dragonboard410c-15.07/arch/arm64/boot/dts/qcom/

Traceback (most recent call last):
File “…/skales/dtbTool”, line 208, in <module>
records += generate_records(f, options.dtc, pagesize)
File “…/skales/dtbTool”, line 112, in generate_records
stderr=subprocess.PIPE)
File “/usr/lib/python2.7/subprocess.py”, line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 710, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

regards,
vinaysimha

hi

you do not seem to be following the instructions, since you are using dtbTool from https://github.com/xiaolu/mkbootimg_tools, not from the skales tools git… can you please not to do that?

also, please give the commit id of the kernel you are building.

thanks

i had used the skales also.

git clone git://codeaurora.org/quic/kernel/skales

ubuntu-qcom-dragonboard410c-15.07$ …/skales/dtbTool -o dt.img -s 2048
arch/arm64/boot/dts/qcom/

Traceback (most recent call last):
File “…/skales/dtbTool”, line 208, in <module>
records += generate_records(f, options.dtc, pagesize)
File “…/skales/dtbTool”, line 112, in generate_records
stderr=subprocess.PIPE)
File “/usr/lib/python2.7/subprocess.py”, line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 710, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

kernel commit id commit f8a46972ba59f51cbda34f4e9eee6b4d1fbe2731

fyi,
f8a4697 - Archit Taneja, 6 weeks ago : drm/i2c: adv7511: Fix
assignment of curr_mode (HEAD,
origin/ubuntu-qcom-dragonboard410c-15.07,
ubuntu-qcom-dragonboard410c-15.07)
7b59de3 - Nathan Rossi, 5 months ago : kbuild: Create
directory for target DTB
1541ab9 - Nicolas Dechesne, 5 weeks ago : linaro: move the
config fragment to kernel/configs
6b1eea0 - Masahiro Yamada, 6 months ago : kbuild: add generic
mergeconfig target, %.config

Regards,
vinay simha

fdtget was missing that is why the error.

after installing , problem resolved and able to created the dt.img

sudo apt-get install device-tree-compiler

regards,
vinaysimha

even installed fdtget, I’ve got same error:

~/skales/dtbTool -o dt.img -s 2048 arch/arm64/boot/dts/qcom/
No valid dtbs found

Any Ideas?

mipsan