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交叉编译:库路径相关错误

Guru**** 2430620 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1016815/wl1801mod-wilink8-cross-compilation-library-path-related-error

器件型号:WL1801MOD

您好!

我正在尝试为基于 AM437x 的系统编译 WL18xx 驱动程序。

出于某种原因、"Configure"不会考虑库部分并返回以下错误:

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 *******

这是我的 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

我已将 LD_LIBRARY_PATH 和 LIBRARY_PATH 添加到脚本中、希望以这种方式解决问题、但没有更改。

在 buikd_openssl 函数中、如果编译"update"、则会发生该情况的行是:
[-z $no_config ]&&./Configure Linux-generic32 --prefix=`path filesystem`/usr/local

但是、如果选择其他目标、问题是相同的。 总是发生在配置上。

内核或其他软件使用相同的设置进行交叉编译。 我在 https://www.ti.com/lit/ug/swru561a/swru561a.pdf 上顺利完成了先前的步骤 。

有什么想法、我可能会出什么问题? 是否有任何方法将正确的库路径传递到配置?

此致
Peter

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Peter:

    您使用的是 SDK 附带的 CC 还是 不同的 CC?

    最好

    Saurabh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Saurabh:

    我想我正在使用您的。

    ~$ 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

    此致
    Peter

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Peter:

    我需要确认,但不应该是 SDK 中的默认 CC 路径(如果在 Ubuntu 上编译等) 应该是   /linux-devkit/sysroots/x86_64-arago-linux/usr/bin /?

    最好

    Saurabh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Saurabh:

    它是同一个编译器。 在我们的文件夹结构中有不同的位置:

    /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.

    此致
    Peter

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Peter:

    -如果您指向 SDK 中的确切位置,是否会看到任何不同的结果?

    -您正在运行的 SDK 版本

    最好
    Saurabh