AIO Gen for SDIO
./aio_gen_bit.sh -t te-f10 -r -k v4.9.31 -i SDIO
Compile The Driver
Modify to x86 platform
kylin@kylinc:~/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/build$ git diff -- .
diff --git a/cnss_proc/fixce/AIO/build/Makefile b/cnss_proc/fixce/AIO/build/Makefile
index 885c52e..86d433e 100755
--- a/cnss_proc/fixce/AIO/build/Makefile
+++ b/cnss_proc/fixce/AIO/build/Makefile
@@ -26,7 +26,7 @@ endif
#################################################################################################################################
export MAKEARCH=make ARCH=$(KERNELARCH) CROSS_COMPILE=$(TOOLPREFIX)
-export INSTALL_ROOT=/home/thomas/work/ti/am5728-iinux/targetNFS
+export INSTALL_ROOT=/tmp/
export ROOTFS_TOPDIR=${ATH_TOPDIR}/rootfs
export WLAN_DRIVER_TOPDIR=${ATH_TOPDIR}/drivers
export IW30_TOPDIR=${ATH_TOPDIR}/apps/iw-3.0
diff --git a/cnss_proc/fixce/AIO/build/scripts/te-f10/config.te-f10 b/cnss_proc/fixce/AIO/build/scripts/te-f10/config.te-f10
index dde34c7..04666f4 100755
--- a/cnss_proc/fixce/AIO/build/scripts/te-f10/config.te-f10
+++ b/cnss_proc/fixce/AIO/build/scripts/te-f10/config.te-f10
@@ -2,9 +2,9 @@
# Please modify KERNELPATH, KERNELARCH and TOOLPREFIX to meet your environment
#
-export KERNELPATH=~/work/ti/am5728-iinux/board-support/linux-4.9.41+gitAUTOINC+e3a80a1c5c-ge3a80a1c5c
-export KERNELARCH=arm
-export TOOLPREFIX=arm-linux-gnueabihf-
+export KERNELPATH=~/work/kernel/linux-4.9.31
+export KERNELARCH=x86_64
+export TOOLPREFIX=
export CONFIG_NO_USE_BACKPORTS=y
export CONFIG_CFG80211_DEPEND_ON_KERNEL=y
Compile Error 1
gcc -Wp,-MD,/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/build/../drivers/qcacld-new/CORE/HDD/src/.wlan_hdd_cfg80211.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/6/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -DANI_LITTLE_BYTE_ENDIAN -DANI_LITTLE_BIT_ENDIAN -DQC_WLAN_CHIPSET_QCA_CLD -DDOT11F_LITTLE_ENDIAN_HOST -DANI_COMPILER_TYPE_GCC -DANI_OS_TYPE_ANDROID=6 -DANI_LOGDUMP -DWLAN_PERF -DPTT_SOCK_SVC_ENABLE -Wall -Werror -D__linux__ -DHAL_SELF_STA_PER_BSS=1 -DWLAN_FEATURE_VOWIFI_11R -DWLAN_FEATURE_NEIGHBOR_ROAMING -DWLAN_FEATURE_NEIGHBOR_ROAMING_DEBUG -DWLAN_FEATURE_VOWIFI_11R_DEBUG -DFEATURE_WLAN_WAPI -DFEATURE_OEM_DATA_SUPPORT -DSOFTAP_CHANNEL_RANGE -DWLAN_AP_STA_CONCURRENCY -DFEATURE_WLAN_SCAN_PNO -DWLAN_FEATURE_PACKET_FILTERING -DWLAN_FEATURE_VOWIFI -DWLAN_FEATURE_11AC -DWLAN_FEATURE_P2P_DEBUG -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS -DWLANTL_DEBUG -DWLAN_NS_OFFLOAD -DWLAN_ACTIVEMODE_OFFLOAD_FEATURE -DWLAN_SOFTAP_VSTA_FEATURE -DWLAN_FEATURE_ROAM_SCAN_OFFLOAD -DWLAN_FEATURE_GTK_OFFLOAD -DWLAN_WAKEUP_EVENTS -DFEATURE_WLAN_RA_FILTERING -DWLAN_KD_READY_NOTIFIER -DWLAN_NL80211_TESTMODE -DFEATURE_WLAN_LPHB -DFEATURE_WLAN_PAL_TIMER_DISABLE -DFEATURE_WLAN_PAL_MEM_DISABLE -DQCA_SUPPORT_TX_THROTTLE -DWMI_INTERFACE_EVENT_LOGGING -DATH_SUPPORT_WAPI -DWLAN_FEATURE_LINK_LAYER_STATS -DWLAN_LOGGING_SOCK_SVC_ENABLE -DFEATURE_WLAN_EXTSCAN -DFEATURE_WLAN_LFR -DFEATURE_WLAN_CH144 -DHTC_CRP_DEBUG -DWLAN_VOWIFI_DEBUG -DATH_SUPPORT_DFS -DWLAN_POWER_DEBUGFS -DFEATURE_COEX_PTA_CONFIG_ENABLE -DWLAN_FEATURE_MBSSID -DFEATURE_WLAN_MCC_TO_SCC_SWITCH -DFEATURE_WLAN_CH_AVOID -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE -DOSIF_NEED_RX_PEER_ID -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID -DWCN_PRONTO -DWCN_PRONTO_V1 -DTRACE_RECORD -DLIM_TRACE_RECORD -DSME_TRACE_RECORD -DHDD_TRACE_RECORD -DWLAN_DEBUG -DPE_DEBUG_LOGW -DPE_DEBUG_LOGE -DWLAN_FEATURE_P2P -DWLAN_FEATURE_WFD -DKERNEL_SUPPORT_11R_CFG80211 -DUSE_80211_WMMTSPEC_FOR_RIC -DFEATURE_WLAN_ESE -DQCA_COMPUTE_TX_DELAY -DQCA_COMPUTE_TX_DELAY_PER_TID -DFEATURE_WLAN_ESE_UPLOAD -DFEATURE_WLAN_TDLS -DCONFIG_TDLS_IMPLICIT -DWLAN_FEATURE_ROAM_OFFLOAD -DFEATURE_WLAN_OKC -DFEATURE_WLAN_DIAG_SUPPORT -DFEATURE_WLAN_DIAG_SUPPORT_CSR -DFEATURE_WLAN_DIAG_SUPPORT_LIM -DCONFIG_ATH_PROCFS_DIAG_SUPPORT -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 -DQCA_TX_HTT2_SUPPORT -DCONFIG_HDD_INIT_WITH_RTNL_LOCK -DDEBUG_RX_RING_BUFFER -DQCA_PKT_PROTO_TRACE -DWLAN_AUTOGEN_MACADDR_FEATURE -DWLAN_FEATURE_11W -DPANIC_ON_BUG -DWLAN_OPEN_SOURCE -DWLAN_FEATURE_STATS_EXT -DWLAN_FEATURE_NAN -DQCA_IBSS_SUPPORT -DADF_SUPPORT -DATH_PERF_PWR_OFFLOAD -DCONFIG_PER_VDEV_TX_DESC_POOL -DQCA_LL_TX_FLOW_CT -DQCA_SUPPORT_TXDESC_SANITY_CHECKS -DATH_SUPPORT_SHARED_IRQ -DHIF_MESSAGE_BASED -DHIF_USB -DCONFIG_HL_SUPPORT -DDEBUG_HL_LOGGING -DCONFIG_FW_LOGS_BASED_ON_INI -DATH_BUS_PM -DWDI_EVENT_ENABLE -DAH_BYTE_ORDER=1234 -DQCA_WIFI_FTM -DCHECKSUM_OFFLOAD -DWLAN_FEATURE_GTK_OFFLOAD -DIGTK_OFFLOAD -DQCA_CONFIG_SMP -DQCA_FEATURE_RPS -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION -DWLAN_OPEN_P2P_INTERFACE -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC -DLINUX_QCMBR -DCONFIG_NON_QC_PLATFORM -DTARGET_DUMP_FOR_NON_QC_PLATFORM -DWLAN_FEATURE_MEMDUMP -DWLAN_FEATURE_OFFLOAD_PACKETS -DWLAN_FEATURE_NAN_DATAPATH -DFEATURE_DPTRACE_ENABLE -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 –param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/HDD/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/HDD/src -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/EPPING/inc -Iinclude/linux -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/MAC/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/MAC/src/dph -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/MAC/src/include -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/MAC/src/pe/include -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/MAC/src/pe/lim -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/MAC/src/pe/nan -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/wcnss/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SAP/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SAP/src -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SME/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SME/src/csr -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SVC/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SVC/external -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SYS/common/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SYS/legacy/src/pal/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SYS/legacy/src/platform/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SYS/legacy/src/system/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SYS/legacy/src/utils/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/TL/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/VOSS/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/VOSS/src -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/WDA/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/WDA/inc/legacy -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/WDA/src -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/WDI/CP/inc/ -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/WDI/DP/inc/ -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/WDI/TRP/CTS/inc/ -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/WDI/TRP/DTS/inc/ -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/WDI/WPAL/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/DFS/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/DFS/src -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/WMA -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/COMMON -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/WMI -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/UTILS/FWLOG -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/COMMON/adf -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/COMMON/adf/linux -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/COMMON/asf -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/CLD_TXRX/TLSHIM -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/CLD_TXRX/TXRX -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/UTILS/PKTLOG/include -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/CLD_TXRX/HTT -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/HTC -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/DFS/inc -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/DFS/src -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/HIF/USB -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/SERVICES/BMI -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/drivers/qcacld-new/CORE/UTILS/PKTLOG/include -Wmaybe-uninitialized -DMODULE -DKBUILD_BASENAME=‘“wlan_hdd_cfg80211”’ -DKBUILD_MODNAME=‘“wlan”’ -c -o /home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/build/../drivers/qcacld-new/CORE/HDD/src/wlan_hdd_cfg80211.o /home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/build/../drivers/qcacld-new/CORE/HDD/src/wlan_hdd_cfg80211.c
/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/build/../drivers/qcacld-new/CORE/HDD/src/wlan_hdd_cfg80211.c: In function ‘hdd_extscan_start_fill_bucket_channel_spec’:
/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/build/../drivers/qcacld-new/CORE/HDD/src/wlan_hdd_cfg80211.c:3994:1: error: the frame size of 1208 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
}
^
/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/build/../drivers/qcacld-new/CORE/HDD/src/wlan_hdd_cfg80211.c: In function ‘__wlan_hdd_cfg80211_extscan_get_valid_channels.isra.91’:
/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/build/../drivers/qcacld-new/CORE/HDD/src/wlan_hdd_cfg80211.c:3491:1: error: the frame size of 1040 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
}
^
cc1: all warnings being treated as errors
问题描述:
在编译内核模块驱动时,如果出现如下警告信息:
warning: the frame size of 1040 bytes is larger than 1024 bytes。主要是因为内核中设置了堆栈报警大小,其默认为1024bytes。我们主要将其修改为4096既可以消除告警信息。
如果解决:
(1)make menuconfig
(2)kernel hacking
(3)修改warn for stack frames larger than 的数值,将其修改为4096(最好不要大过这个数值)
(4)**重新编译内核, 模块, 则不会出现如上的告警信息。**
Compile Error 2
gcc -c -o ../src/drivers/driver_nl80211.o -MMD -O2 -Wall -g -I/home/thomas/work/ti/am5728-iinux/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/ -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/apps/hostap/src -I/home/kylin/work/kernel/qca9377-lea-1-0_qca_oem/cnss_proc/fixce/AIO/apps/hostap/src/utils -DGIT_VERSION_STR_POSTFIX=\"-hostap_2_6-1259-g2e6f0652b\" -DCONFIG_BACKEND_FILE -DCONFIG_IEEE80211W -DCONFIG_IEEE80211R -DCONFIG_FILS -DCONFIG_WNM -DCONFIG_TDLS -DCONFIG_PEERKEY -DCONFIG_P2P -DCONFIG_WIFI_DISPLAY -DCONFIG_HS20 -DCONFIG_INTERWORKING -DCONFIG_NO_ROAMING -DCONFIG_DRIVER_NL80211 -DCONFIG_DRIVER_NL80211_QCA -DCONFIG_LIBNL20 -DCONFIG_DRIVER_WEXT -DCONFIG_WIRELESS_EXTENSION -DCONFIG_ERP -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MD5 -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_OTP -DEAP_SIM -DEAP_LEAP -DEAP_PSK -DEAP_AKA -DEAP_AKA_PRIME -DEAP_FAST -DEAP_PWD -DCONFIG_WPS -DEAP_WSC -DCONFIG_WPS_NFC -DCONFIG_WPS_OOB -DCONFIG_WPS_ER -DCONFIG_WPS_UPNP -DIEEE8021X_EAPOL -DCONFIG_AP -DCONFIG_NO_RADIUS -DCONFIG_NO_ACCOUNTING -DCONFIG_NO_VLAN -DEAP_SERVER -DEAP_SERVER_IDENTITY -DCONFIG_IEEE80211N -DCONFIG_IEEE80211AC -DNEED_AP_MLME -DEAP_SERVER_WSC -DCONFIG_NO_RADIUS -DCONFIG_ACS -DPKCS12_FUNCS -DCONFIG_SMARTCARD -DEAP_TLS_OPENSSL -DTLS_DEFAULT_CIPHERS=\""DEFAULT:!EXP:!LOW"\" -DCONFIG_SHA256 -DCONFIG_HMAC_SHA256_KDF -DCONFIG_SHA384 -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_SME -DCONFIG_DEBUG_FILE -DCONFIG_GAS -DCONFIG_OFFCHANNEL -DCONFIG_FST ../src/drivers/driver_nl80211.c
../src/drivers/driver_nl80211.c:17:31: fatal error: netlink/genl/genl.h: No such file or directory
#include <netlink/genl/genl.h>
^
https://askubuntu.com/questions/617973/fatal-error-netlink-genl-genl-h-no-such-file-or-directory
You can search the correct package with this command:
apt-file search /netlink/genl/genl.h
In my case the output is:
libnl-3-dev: /usr/include/libnl3/netlink/genl/genl.h
This m
eans, I have to install the package libnl-3-dev:
sudo apt-get install libnl-3-dev
And you need libnl-genl-3-dev
sudo apt-get install libnl-genl-3-dev
Then open the config file:
nano hostap/hostapd/.config
and uncomment the line:
CONFIG_LIBNL32=y
Start make again.
Install the driver on PC
My laptop is DELL vostro 14.5468, which has SD slot but DELL’s support says it does not suppport SDIO.
root@kylinc:/lib/firmware# insmod wlan.ko
insmod: ERROR: could not insert module wlan.ko: No such device
root@kylinc:/lib/firmware#
root@kylinc:/lib/firmware#
root@kylinc:/lib/firmware#
root@kylinc:/lib/firmware# dmesg -c
[ 9084.987155] wlan: loading out-of-tree module taints kernel.
[ 9084.989486] wlan: module verification failed: signature and/or required key missing - tainting kernel
[ 9084.999115] wlan: loading driver v4.5.22.7
[ 9084.999154] usbcore: registered new interface driver hif_usb
[ 9087.035407] R0: wlan: [14677:E :HDD] hdd_hif_register_driver: 16912: HIF registration failed
[ 9087.035408] R0: wlan: [14677:F :HDD] hdd_driver_init: WLAN Driver Initialization failed
[ 9087.035409] Try to unregister hif_driver
[ 9087.035409] usbcore: deregistering interface driver hif_usb
[ 9087.035431] hif_unregister_driver!!!!!!