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.

How to cross compile the calibrator tool ?

Hi,

I'm getting the following errors while cross-compiling the calibrator tool, which I downloaded from git clone git://github.com/gxk/ti-utils.git.

After following the build steps from http://linuxwireless.org/en/users/Drivers/wl12xx/calibrator as well as http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_Calibration_Proccess_NLCP, I was getting the following error:

philip@philip:~/ti-utils$ sudo make CROSS_COMPILE=/home/philip/arm-2009q1/bin/arm-none-linux-gnueabi-
/home/philip/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -L/lib -L/usr/local/lib nvs.o misc_cmds.o calibrator.o plt.o ini.o -lnl -lnl-genl -lm -o calibrator
/home/philip/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/lib" is unsafe for cross-compilation
/home/philip/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation
/home/philip/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/local/lib/libnl.so when searching for -lnl
/home/philip/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/local/lib/libnl.a when searching for -lnl
/home/philip/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lnl
collect2: ld returned 1 exit status
make: *** [all] Error 1
philip@philip:~/ti-utils$

I've downloaded and installed the libnl-2.0 and set the NFSROOT path as needed....

Am I missing something, or do I need to use some other cross-compiler....?

Thanks in advance for all help.

Regards,

Philip Mathew

  • Hi,

    I was able to do the cross compile but now I'm facing this error while calibration....any insights....?

    ubuntu@omap:/home/ti-utils$ sudo ./calibrator plt calibrate
    Fail to set PLT power mode on

    Usage:  ./calibrator [options] plt calibrate [<single|dual>]

    Do calibrate for single or dual band chip


    Options:
            --debug         enable netlink debugging
    ubuntu@omap:/home/ti-utils$

     

    Thanks for all help...

    Regards,

    Philip Mathew

  • Philip

    I'm building libnl as a dependency to build WiFi calibrator utility...not sure which host/target tool chain is needed for libnl if it's just used on the host.

    I'm seeing the same issue now with the "unsafe for cross-compilation" error.

    Do you recall what the remedy was?

    Thanks! 

  • Hi Philip,

    Did you find any solution for the issue you have faced and posted here.

    I am also facing the same problem with the same screen shot you have shared here.

    Please help me what wrong going on.

    I am bit in urgency that's why if possible then quick reply me.

    Thank you in advance

    Regards,

    Sweta