This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

targetNFS has /usr/bin/ldd but cannot see it from target

We just installed SDK 5.02 and are booting the Sitara eXperimenter board over NFS.

Everything seems like it is working just fine, except /usr/bin/ldd is not visible in the mounted filesystem.

All of the other files seem to be there except just this one.

Can anyone else confirm this behavior?

Is there a way to make this available on the target?

 

--jlf

 

  • Yes that is correct, ldd is not in the target filesyste of the SDK.  The reason it's not there may have to do with that a toolchain is not shipped in the target filesystem and ldd needs a toolchain to work with.

    Here is an alternate solution that dumps everything an executable needs including the necessary .so for an executable in the target file system.  Since you're running NFS cd into <path to nfs file system/usr/bin. In there should be a file matrix_tui, this has several .so dependencies. Run this command using the tool chain that comes with the SDK to see what the dependencies are for matrix_tui.

    <path to toolchain in SDK>/arm-arago-linux-gnueabi-objdump --all-headers matrix_tui | more

    You should see this in a couple of sections down from the top:

    Dynamic Section:
      NEEDED               libpanel.so.5
      NEEDED               libform.so.5
      NEEDED               libmenu.so.5
      NEEDED               libncurses.so.5
      NEEDED               libtinfo.so.5
      NEEDED               libz.so.1
      NEEDED               libxml2.so.2
      NEEDED               libc.so.6

    Use control-c to exit when you've got the info you need.