88Q9098(mlan.ko) compile problem

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

88Q9098(mlan.ko) compile problem

1,621 Views
gbpark
Contributor I

In order to use u-blox jody-w3 (88Q9098), we need to compile the kernel module.
However, an error occurs when a kernel using flex-builder (ls1027a) is used.
Can I see what I did wrong?

== error log =================================================================

/home/sysadmin/work/gbpark/Project/S-project/Linux_driver/PCIE-SW/PCIE/PCIE/wlan_src/mlinux/moal_main.c: In function ‘woal_reset_intf’:
/home/sysadmin/work/gbpark/Project/S-project/Linux_driver/PCIE-SW/PCIE/PCIE/wlan_src/mlinux/moal_main.c:5775:12: error: ‘moal_handle {aka struct _moal_handle}’ has no member named ‘mon_if’
if (handle->mon_if) {
^~
/home/sysadmin/work/gbpark/Project/S-project/Linux_driver/PCIE-SW/PCIE/PCIE/wlan_src/mlinux/moal_main.c:5777:30: error: ‘moal_handle {aka struct _moal_handle}’ has no member named ‘mon_if’
woal_set_net_monitor(handle->mon_if->priv, wait_option,
^~
/home/sysadmin/work/gbpark/Project/S-project/Linux_driver/PCIE-SW/PCIE/PCIE/wlan_src/mlinux/moal_main.c:5780:29: error: ‘moal_handle {aka struct _moal_handle}’ has no member named ‘mon_if’
netif_device_detach(handle->mon_if->mon_ndev);
^~

.......
/home/sysadmin/work/gbpark/Project/S-project/flexbuild_lsdk2004_update_290520/packages/linux/linux/scripts/Makefile.build:265: recipe for target '/home/sysadmin/work/gbpark/Project/S-project/Linux_driver/PCIE-SW/PCIE/PCIE/wlan_src/mlinux/moal_main.o' failed
make[3]: *** [/home/sysadmin/work/gbpark/Project/S-project/Linux_driver/PCIE-SW/PCIE/PCIE/wlan_src/mlinux/moal_main.o] Error 1
/home/sysadmin/work/gbpark/Project/S-project/flexbuild_lsdk2004_update_290520/packages/linux/linux/Makefile:1652: recipe for target '/home/sysadmin/work/gbpark/Project/S-project/Linux_driver/PCIE-SW/PCIE/PCIE/wlan_src' failed
make[2]: *** [/home/sysadmin/work/gbpark/Project/S-project/Linux_driver/PCIE-SW/PCIE/PCIE/wlan_src] Error 2
/home/sysadmin/work/gbpark/Project/S-project/flexbuild_lsdk2004_update_290520/packages/linux/linux/Makefile:179: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: directory '/home/sysadmin/work/gbpark/Project/S-project/flexbuild_lsdk2004_update_290520/build/linux/linux/arm64/LS/output/LSDK-20.04-V5.4-update-290520' exit
Makefile:445: recipe for target 'default' failed
make: *** [default] Error 2

=====================================================================

 

 

=== Makefile =========================================================

# File: Makefile
#
# Copyright 2014-2020 NXP
#
# This software file (the File) is distributed by NXP
# under the terms of the GNU General Public License Version 2, June 1991
# (the License). You may use, redistribute and/or modify the File in
# accordance with the terms and conditions of the License, a copy of which
# is available by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
# worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
#
# THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
# IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
# ARE EXPRESSLY DISCLAIMED. The License provides additional details about
# this warranty disclaimer.
#

CROSS_COMPILE=aarch64-linux-gnu-
COMPATDIR=/lib/modules/$(KERNELVERSION_X86)/build/compat-wireless-3.2-rc1-1/include
#CC= $(CROSS_COMPILE)gcc -I$(COMPATDIR)
CC= $(CROSS_COMPILE)gcc
LD= $(CROSS_COMPILE)ld
BACKUP= /root/backup
YMD= `date +%Y%m%d%H%M`

#############################################################################
# Configuration Options
#############################################################################
# Multi-chipsets
CONFIG_PCIE8897=n
CONFIG_PCIE8997=n
CONFIG_PCIE9097=y
CONFIG_PCIE9098=y


# Debug Option
# DEBUG LEVEL n/1/2:
# n: NO DEBUG
# 1: Only PRINTM(MMSG,...), PRINTM(MFATAL,...), ...
# 2: All PRINTM()
CONFIG_DEBUG=1

# Enable STA mode support
CONFIG_STA_SUPPORT=y

# Enable uAP mode support
CONFIG_UAP_SUPPORT=y

# Enable WIFIDIRECT support
CONFIG_WIFI_DIRECT_SUPPORT=y

# Enable WIFIDISPLAY support
CONFIG_WIFI_DISPLAY_SUPPORT=y

# Re-association in driver
CONFIG_REASSOCIATION=y


# Manufacturing firmware support
CONFIG_MFG_CMD_SUPPORT=y

# OpenWrt support
CONFIG_OPENWRT_SUPPORT=n

# Big-endian platform
CONFIG_BIG_ENDIAN=n

ifeq ($(CONFIG_DRV_EMBEDDED_SUPPLICANT), y)
CONFIG_EMBEDDED_SUPP_AUTH=y
CONFIG_EMBEDDED_SUPP_AUTH=y
endif
endif


# DFS testing support
CONFIG_DFS_TESTING_SUPPORT=y

# Multi-channel support
CONFIG_MULTI_CHAN_SUPPORT=y


CONFIG_ANDROID_KERNEL=n


#32bit app over 64bit kernel support
CONFIG_USERSPACE_32BIT_OVER_KERNEL_64BIT=n


#############################################################################
# Select Platform Tools
#############################################################################

MODEXT = ko
ccflags-y += -I$(M)/mlan
ccflags-y += -DLINUX

KERNELVERSION_X86 := $(shell uname -r)
#KERNELDIR ?= /lib/modules/$(KERNELVERSION_X86)/build
#KERNELDIR ?= /home/sysadmin/work/gbpark/Project/S-project/flexbuild_lsdk2004_update_290520/packages/linux/linux/build/
KERNELDIR ?= /home/sysadmin/work/gbpark/Project/S-project/flexbuild_lsdk2004_update_290520/build/linux/linux/arm64/LS/output/LSDK-20.04-V5.4-update-290520
LD += -S

.....

====================================================================

0 Kudos
Reply
0 Replies