imx8mm compiling the external wireless NIC driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8mm compiling the external wireless NIC driver

682件の閲覧回数
tgt007
Contributor II

Hi  NXP

How to solve the following error when compiling the external wireless NIC driver?

make target=$sdio \
ARCH=arm64 \
CROSS_COMPILE=/opt/fsl-imx-xwayland/6.1-mickledore/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux- \
#CROSS_COMPILE="aarch64-poky-linux- " \
KERNEL=/home/ubuntu/host/

//////////////////////////////////////////////////////////////////

make ARCH=arm64 CROSS_COMPILE=/opt/fsl-imx-xwayland/6.1-mickledore/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux- -C /lib/modules/5.15.0-117-generic/build M=/home/ubuntu/host clean
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-117-generic'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-117-generic'
make ARCH=arm64 CROSS_COMPILE=/opt/fsl-imx-xwayland/6.1-mickledore/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux- -C /lib/modules/5.15.0-117-generic/build M=/home/ubuntu/host modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-117-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
You are using: aarch64-poky-linux-gcc (GCC) 12.3.0
CC [M] /home/ubuntu/host/sdio/esp_sdio.o
aarch64-poky-linux-gcc: error: unrecognized command-line option ‘-mrecord-mcount’
make[2]: *** [scripts/Makefile.build:297: /home/ubuntu/host/sdio/esp_sdio.o] Error 1
make[1]: *** [Makefile:1911: /home/ubuntu/host] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-117-generic'
make: *** [Makefile:53: all] Error 2
finsh success tang guang ting

0 件の賞賛
返信
1 返信

650件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You should use source /opt/xxx/xxx/environment-setup-armv8a-poky-linux, not use toolchain directly.

0 件の賞賛
返信