The TI E2E™ design support forums will undergo maintenance from Sept. 28 to Oct. 2. If you need design support during this time, contact your TI representative or open a new support request with our customer support center.

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.

WL1801MOD: WiLink8 cross compilation: library path related error

Part Number: WL1801MOD

Hi,

I am trying to compile the WL18xx drivers for an AM437x based system.

For some reason, "Configure" will not consider the library part and return the following error:

EAD is now at f328848 bump version to 4.14
Makefile was found. Kernel version was set to 4.19..
/lib/ld-linux-armhf.so.3: No such file or directory
make: *** No rule to make target 'clean'.  Stop.
******  *******
make: *** No targets specified and no makefile found.  Stop.
****** ERROR 0 *******

This is my setup.env:

#                            \\\// 
#                           -(o o)- 
#========================oOO==(_)==OOo=======================
# This file contains the exports needed for automating the
# build process of WLAN components.
# Place this file in the same directory with build_wl18xx.sh
# No need to run 'source setup-env', the build
# scripts will perform it internally.
#===========================================================
# User specific environment settings - use full PATH

# TOOLCHAIN_PATH setting is mandatory. ex: TOOLCHAIN_PATH=/smabit-dev/ti/sitara/ti-processor-sdk-linux-am437x-evm-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/
export TOOLCHAIN_PATH=/smabit-dev/ti/sitara/am437x/cross-toolchain/armv7at2hf-neon-linux-gnueabi/usr/bin

# ./fs folder will be created if ROOTFS is set to DEFAULT 
export ROOTFS=DEFAULT

# KERNEL_PATH setting is mandatory. ex: KERNEL_PATH=/opt/ti-processor-sdk-linux-am335x-evm-06.00.00.07/board-support/linux-4.19.38+gitAUTOINC+4dae378bbe-g4dae378bbe
export KERNEL_PATH=/smabit-dev/ti/sitara/am437x/kernel/kernel-out

# CROSS_COMPILE setting is mandatory
export CROSS_COMPILE=arm-linux-gnueabihf-

# ARCH setting is mandatory
export ARCH=arm
[ "$TOOLCHAIN_PATH" != "" ] && export PATH=$TOOLCHAIN_PATH:$PATH

export LD_LIBRARY_PATH=/smabit-dev/ti/sitara/am437x/cross-toolchain/armv7at2hf-neon-linux-gnueabi/lib
export LIBRARY_PATH=/smabit-dev/ti/sitara/am437x/cross-toolchain/armv7at2hf-neon-linux-gnueabi/lib

I have added LD_LIBRARY_PATH and LIBRARY_PATH to the script hoping to resolve the issue that way but no change.

The line where it happens if compiling "update" is this in the buikd_openssl function:
[ -z $NO_CONFIG ] && ./Configure linux-generic32 --prefix=`path filesystem`/usr/local

However, if selecting other targets, the problem is the same. Always happens on the Configure.

The kernel or other software is cross-compiling fine with the same settings. I was able to conclude the previous steps from https://www.ti.com/lit/ug/swru561a/swru561a.pdf without problems.

Any idea what I might have done wrong? Is there any way to pass the correct library path through to Configure?

Regards
Peter

  • Hi Peter,

    Are you using CC that comes with SDK,  or a different CC ?

    Best

    Saurabh

  • Hi Saurabh,

    I think I am using yours.

    ~$ arm-linux-gnueabihf-gcc --version
    arm-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0
    Copyright (C) 2018 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    ~$ printenv CC
    arm-linux-gnueabihf-gcc --sysroot=/smabit-dev/ti/sitara/am437x/cross-toolchain/armv7at2hf-neon-linux-gnueabi

    Regards
    Peter

  • Hi Peter ,

    I will need to confirm , but shouldn't the default CC path in SDK ( if compiling on Ubuntu etc. ) should be   <SDK>/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/ ?

    Best

    Saurabh

  • Hi Saurabh,

    It is the same compiler. Just different location in our folder structure:

    /smabit-dev/ti/sitara/ti-processor-sdk-linux-am437x-evm-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ ./arm-linux-gnueabihf-gcc --version
    arm-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0
    Copyright (C) 2018 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Regards
    Peter

  • Hi Peter,

    - Do you see any different results if you point to the exact location as in the SDK ?

    - Which SDK version are you running

    Best
    Saurabh