cross-compile errors for LF5.10.72_2.2.0 on Ubuntu 18.04

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cross-compile errors for LF5.10.72_2.2.0 on Ubuntu 18.04

2,215 Views
tayjung
Contributor II

Hello 

On cross compiling for imx lf5.10.72_2.2.0 on ubuntu 18.04,

the below error messages showed.

In file included from mlanconfig.c:36:
mlanconfig.h:35:13: fatal error: stdio.h: No such file or directory
35 | #include <stdio.h>
| ^~~~~~~~~
compilation terminated.

 

The additional information of cross-compile are

Native machine: x86, ubuntu 18.04

the  source codes : nxp 88W9098 wifi-bt driver sources 

target board : imx8mq-evk

target os : distro = fsl-imx-xwayland, MACHINE=imx8mqevk, LF5.10.72_2.2.0

 

Are there someone who know the cause of the error or how to solve that?

 

Thanks

Regards

0 Kudos
Reply
7 Replies

2,163 Views
tayjung
Contributor II

Is nothing I can do cross-compiling 'mlanutl' of x86-9098 driver for i.mx8mq evk?

 

0 Kudos
Reply

2,199 Views
joanxie
NXP TechSupport
NXP TechSupport

how did you cross compile? but 5.10.72 bsp includes the 88W9098 driver already

 

0 Kudos
Reply

2,191 Views
tayjung
Contributor II

Hello Joanxie

I know that 5.10.72 bsp has the 88w9098 driver.

But I want to build the x86 version of the 9098 driver newly because 'mlanutl' tool included in 5.10.72 bsp doesn't support commands as much as the 9098 released driver package based on x86 does.

I did step by step the actions described in UM11675.pdf (How to Download and Build NXP Wi-Fi Drivers) and IMXLXYOCTOUG.pdf to make and install the toolchain. I replaced the location of 'KERNELDIR' into my yocto bsp's location in Makefile of 9098 driver sources like the below

KERNELVERSION_X86 := $(shell uname -r)
#KERNELDIR ?= /lib/modules/$(KERNELVERSION_X86)/build

KERNELDIR ?= /home/tay/imx8_yocto/imx-yocto-bsp/build-wayland2/tmp/work/imx8mqevk-poky-linux/linux-imx/5.10.72+gitAUTOINC+a68e31b63f-r0/build

 

Lastly, I tried building the driver sources and then had the error message I shared early.

The 88w9098 released driver package version is 'SD-WLAN-UART-BT-9098-U16-X86-17.68.1.P87-17.26.1.P-MXM5X17286_V1-GPL'

building the driver module sources (mlan.ko and moal.ko) are done successfully with the toolchain I installed. But 'mlanutl' sources are not built and make the error. 

Thanks

Regards

0 Kudos
Reply

2,135 Views
joanxie
NXP TechSupport
NXP TechSupport

confirmed from WIFI team, MXM driver(released together with linux bsp) can be built under X86, you just need to change Makefile, and for 9098, nxp has FP86 version which is for X86, you can download it from official website, but FP86 is under NDA

 

0 Kudos
Reply

2,132 Views
tayjung
Contributor II

Hello joanxie

Thanks for the reply

I think there is a misunderstanding.

I wouldn't like to build MXM driver for X86, I'd like to build 9098 x86 driver for MXM

In detail, I want to use 'mlanutl' included in 9098 x86 driver package - ex) PCIE-WLAN-UART-BT-9098-U16-X86-17.68.1.p81-17.26.1.p81-MXM5X17277_V0V1-GPL - on MXM linux

i.mx8mq 9098 driver -> cross compile -> x86 (x)

x86 9098 driver's 'mlanutl' -> cross compile -> using in i.mx8mq (0)

Please check them 

Regards

0 Kudos
Reply

2,107 Views
joanxie
NXP TechSupport
NXP TechSupport

Cross compile the driver and utilities for Wi-Fi
• Go to the directory PCIE-UAPSTA-UART-BT-9098-U16-X86--MXM4X17166_V0V1-
GPL/wlan_src
$ cd PCIE-UAPSTA-UART-BT-9098-U16-X86--MXM4X17166_V0V1-GPL/wlan_src/
• Modify the Makefile to change the kernel build directory
$ vim Makefile
Comment out the CC variable in the Makefile
#CC= $(CROSS_COMPILE)gcc -I$(COMPATDIR)
• Change the KERNELDIR
<absolute-path>/imx-yocto-bsp/<build dir>/tmp/work/imx8qmmekpoky-
linux/linux-imx/<linux-kernel-version>-r0/build/
• Build the driver package
$ make clean
$ make build

 

The compiled driver modules reside in PCIE-UAPSTA-UART-BT-9098-U16-X86--
MXM4X17166_V0V1-GPL/bin_wlan directory. The firmware binary resides in the PCIEWLAN-
UART-BT-9098-U16-X86-17.68.0.p190-17.26.0.p190-MXM4X17166_V0V1-GPL/
FwImage directory.

 

0 Kudos
Reply

2,109 Views
joanxie
NXP TechSupport
NXP TechSupport

let me double check this from WIFI team again

 

0 Kudos
Reply