QEMU Unable to find current revision in submodule path 'dtc'

Problem with QEMU


root@kali:~/Tools/qemu# ./configure 

ERROR: DTC (libfdt) version >= 1.4.0 not present. Your options:
         (1) Preferred: Install the DTC (libfdt) devel package
         (2) Fetch the DTC submodule, using:
             git submodule update --init dtc


and again

       
root@kali:~/Tools/qemu# git submodule update --init dtc
Submodule 'dtc' () registered for path 'dtc'
fatal: Needed a single revision
Unable to find current revision in submodule path 'dtc'

To fix this issue:
    


  • I cloned dtc from its repository and extracted the tarball to qemu/dtc/.



  • Compiled dtc from source first using make



  • Restarted configuring qemu.




The problem was qemu tries to search for dtc binaries in qemu/dtc. Even if you have installed dtc using sudo apt-get install device-tree-compiler, you will get the above error(mentioned in the question), so you probably need to have the binaries in qemu/dtc.



Source: http://comments.gmane.org/gmane.comp.emulators.qemu/257606