Hey,
I am using the USRP N310 and try to work with the sdk.
I opened a /src folder in the sdk folder. than the following commands:
source ./environment-setup-cortexa9hf-neon-oe-linux-gnueabi
cd /src/uhd/host
mkdir build
cd build
cmake -DECMAKE_TOOLCHAIN_FILE=../host/cmake/Toolchains/oe-sdk_cross.cmake 
-DCMAKE_INSTALL_PREFIX=/usr -ENABLE_GPSD=ON -DENABLE_RFNOC=ON ..
make -j8
make install DESTDIR=~/n310_root
make install DESTDIR=~/n310_root/sysroots/cortexa9hf-neon-oe-liniux-gnueabi

After installing I use sshfs to connect this folder to the N310 and then set it 
to use the uhd installed on the sdk instead of the one that comes with the SD 
image.
(i.e which uhd_usrp_probe returns - /home/root/newfolder/usr/bin/uhd_usrp_probe)
when I try any uhd command (for example: uhd_usrp_probe) I get:
"cannot execute binary file: Exec format error"
I think that the problem is I compiled it to 64-bit while the N310 machine is 
32-bit. What am I doing wrong? how can I compile it correctly?
(file /home/root/newfolder/usr/bin/uhd_usrp_probe returns: ELF 64-bit LSB 
Executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter 
/lib64/ld-linux-x86-64.so.2, for GNU/LInux 2.6.32, 
BuildID[sha1]=1745a5e09e91206b8bfecb4ba888ff90860124a9, not stripped)

P.S
I am using uhd 3.13.0.2 and I tried other version and got the same problem
Also I have the same problem while trying to install UHD to the E310 sdk

Thanks!
Anthony.
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to