Mange / rtl8192eu-linux-driver

Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!)
1.32k stars 436 forks source link

Can't compile driver #317

Closed stefanlk closed 9 months ago

stefanlk commented 1 year ago

when compiling on my Raspi I got following messages:

dkms install rtl8192eu/1.0

Kernel preparation unnecessary for this kernel. Skipping...

Building module: cleaning build area... 'make' all KVER=6.1.19-v7+...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.1.19-v7+ (armv7l) Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.

more /var/lib/dkms/rtl8192eu/1.0/build/make.log DKMS make.log for rtl8192eu-1.0 for kernel 6.1.19-v7+ (armv7l) So 2. Apr 12:19:43 CEST 2023 make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/6.1.19-v7+/build M=/var/lib/dkms/rtl8192eu/1.0/build modules make[1]: Verzeichnis ▒/usr/src/linux-headers-6.1.19-v7+▒ wird betreten Makefile:775: arch/armv7l/Makefile: Datei oder Verzeichnis nicht gefunden make[1]: Keine Regel, um ▒arch/armv7l/Makefile▒ zu erstellen. Schluss. make[1]: Verzeichnis ▒/usr/src/linux-headers-6.1.19-v7+▒ wird verlassen make: [Makefile:2287: modules] Fehler 2

uname -r 6.1.19-v7+ uname -a Linux raspi-family 6.1.19-v7+ #1637 SMP Tue Mar 14 11:04:52 GMT 2023 armv7l GNU/Linux

ls -la /usr/src insgesamt 28 drwxr-xr-x 7 root root 4096 2. Apr 11:34 . drwxr-xr-x 22 root root 4096 8. Dez 2021 .. lrwxrwxrwx 1 root root 24 2. Apr 11:33 linux -> linux-headers-6.1.19-v7+ drwxr-xr-x 25 root root 4096 2. Apr 11:31 linux-headers-6.1.19+ drwxr-xr-x 25 root root 4096 2. Apr 12:14 linux-headers-6.1.19-v7+ drwxr-xr-x 25 root root 4096 2. Apr 11:31 linux-headers-6.1.19-v7l+ drwxr-xr-x 7 root root 4096 2. Apr 11:34 rtl8192eu-1.0 drwxr-xr-x 3 root root 4096 4. M▒r 2021 sense-hat

whats the problem? why does the make says architect armv7l? Shall it be arm?

kkaja123 commented 1 year ago

I believe you will need to edit the platform configuration in the Makefile.

Open the Makefile and change CONFIG_PLATFORM_I386_PC to n and change CONFIG_PLATFORM_ARM_RPI to y. And just to be sure, run make clean after changing those options (although this probably isn't necessary).

Dschogo commented 1 year ago

If the rpi is running 64bit use aarch64, its not called rpi but thats just naming. RPI defaults to 32bit i think (kernel 6.1.21-b8+ - rpi3b+) CONFIG_PLATFORM_ARM_RPI = n CONFIG_PLATFORM_ARM_AARCH64 = y

Click me for Makefile ```make EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) ##################### Optimization Flags ########################## EXTRA_CFLAGS += -O2 ##################### Compile-time Warnings ####################### EXTRA_CFLAGS += -Wno-unused-variable EXTRA_CFLAGS += -Wno-unused-label EXTRA_CFLAGS += -Wno-unused-function GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ) ifeq ($(GCC_VER_49),1) endif EXTRA_CFLAGS += -I$(src)/include EXTRA_LDFLAGS += --strip-debug CONFIG_AUTOCFG_CP = n ########################## WIFI IC ############################ CONFIG_MULTIDRV = n CONFIG_RTL8188E = n CONFIG_RTL8812A = n CONFIG_RTL8821A = n CONFIG_RTL8192E = y CONFIG_RTL8723B = n CONFIG_RTL8814A = n CONFIG_RTL8723C = n CONFIG_RTL8188F = n CONFIG_RTL8188GTV = n CONFIG_RTL8822B = n CONFIG_RTL8723D = n CONFIG_RTL8821C = n CONFIG_RTL8710B = n CONFIG_RTL8192F = n ######################### Interface ########################### CONFIG_USB_HCI = y CONFIG_PCI_HCI = n CONFIG_SDIO_HCI = n CONFIG_GSPI_HCI = n ########################## Features ########################### CONFIG_MP_INCLUDED = y # Exposes power saving features to the system if the wireless adapter supports them. # Say "y" here if unsure. CONFIG_POWER_SAVING = y # Automatically suspends the wireless adapter during inactivity. # Say "n" here if unsure. It may save a small amount of power, while introducing instability. CONFIG_USB_AUTOSUSPEND = n CONFIG_HW_PWRP_DETECTION = n CONFIG_BT_COEXIST = y CONFIG_INTEL_WIDI = n CONFIG_WAPI_SUPPORT = n CONFIG_EFUSE_CONFIG_FILE = y CONFIG_EXT_CLK = n CONFIG_TRAFFIC_PROTECT = n CONFIG_LOAD_PHY_PARA_FROM_FILE = y CONFIG_TXPWR_BY_RATE = y CONFIG_TXPWR_BY_RATE_EN = n CONFIG_TXPWR_LIMIT = y CONFIG_TXPWR_LIMIT_EN = n CONFIG_RTW_CHPLAN = 0xFF CONFIG_RTW_ADAPTIVITY_EN = disable CONFIG_RTW_ADAPTIVITY_MODE = normal CONFIG_SIGNAL_SCALE_MAPPING = n # Enables Protected Management Frames (PMF). Say "y" here if unsure. # This is required for TKIP/CCMP support. CONFIG_80211W = y CONFIG_REDUCE_TX_CPU_LOADING = n CONFIG_BR_EXT = y # Compile in TDLS (Tunneled Direct Link Setup) support. # Part of the IEEE 802.11z standard. Say "n" here if unsure. CONFIG_TDLS = n # Compile in monitor-mode support. Say "y" here if unsure. # Some userspace applications may complain if the wireless adapter doesn't have this. # Used mainly to grab packets from a wireless network. CONFIG_WIFI_MONITOR = y CONFIG_MCC_MODE = n CONFIG_APPEND_VENDOR_IE_ENABLE = n CONFIG_RTW_NAPI = y # GRO is not usually beneficial in lossy or slow (<1GB/s) networks, such as wireless. # Setting "n" here will prevent queue management from having to "peel" packets, at no performance cost. # Further reading: https://www.bufferbloat.net/projects/codel/wiki/Cake/#tso-gso-gro-peeling CONFIG_RTW_GRO = n CONFIG_RTW_NETIF_SG = y # Try to offload checksum operations to the wireless adapter. Say "n" if unsure, the CPU usually does a better job at this. # Say "y" here if this is an embedded device. CONFIG_TX_CSUM_OFFLOAD = n CONFIG_RTW_IPCAM_APPLICATION = n CONFIG_RTW_REPEATER_SON = n CONFIG_RTW_WIFI_HAL = n CONFIG_ICMP_VOQ = n CONFIG_IP_R_MONITOR = n #arp VOQ and high rate ########################## Debug ########################### # Say "y" here to have the driver output debugging messages. Not intended for normal use. CONFIG_RTW_DEBUG = n # Default log level is 2, which only displays errors. # Available levels = none(0), always(1), error(2), warning(3), info(4), debug(5), max(6) CONFIG_RTW_LOG_LEVEL = 2 ######################## Wake On Lan ########################## CONFIG_WOWLAN = n #bit2: deauth, bit1: unicast, bit0: magic pkt. CONFIG_WAKEUP_TYPE = 0x7 #bit0: disBBRF off, #bit1: Wireless remote controller (WRC) CONFIG_SUSPEND_TYPE = 0 CONFIG_WOW_STA_MIX = n CONFIG_GPIO_WAKEUP = n CONFIG_WAKEUP_GPIO_IDX = default CONFIG_HIGH_ACTIVE_DEV2HST = n ######### only for USB ######### CONFIG_ONE_PIN_GPIO = n CONFIG_HIGH_ACTIVE_HST2DEV = n CONFIG_PNO_SUPPORT = n CONFIG_PNO_SET_DEBUG = n CONFIG_AP_WOWLAN = n ######### Notify SDIO Host Keep Power During Syspend ########## CONFIG_RTW_SDIO_PM_KEEP_POWER = y ###################### MP HW TX MODE FOR VHT ####################### CONFIG_MP_VHT_HW_TX_MODE = n ###################### Platform Related ####################### CONFIG_PLATFORM_ARM_RPI = n CONFIG_PLATFORM_ARM_AARCH64 = y CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_ANDROID_X86 = n CONFIG_PLATFORM_ANDROID_INTEL_X86 = n CONFIG_PLATFORM_JB_X86 = n CONFIG_PLATFORM_ARM_S3C2K4 = n CONFIG_PLATFORM_ARM_PXA2XX = n CONFIG_PLATFORM_ARM_S3C6K4 = n CONFIG_PLATFORM_MIPS_RMI = n CONFIG_PLATFORM_RTD2880B = n CONFIG_PLATFORM_MIPS_AR9132 = n CONFIG_PLATFORM_RTK_DMP = n CONFIG_PLATFORM_MIPS_PLM = n CONFIG_PLATFORM_MSTAR389 = n CONFIG_PLATFORM_MT53XX = n CONFIG_PLATFORM_ARM_MX51_241H = n CONFIG_PLATFORM_FS_MX61 = n CONFIG_PLATFORM_ACTIONS_ATJ227X = n CONFIG_PLATFORM_TEGRA3_CARDHU = n CONFIG_PLATFORM_TEGRA4_DALMORE = n CONFIG_PLATFORM_ARM_TCC8900 = n CONFIG_PLATFORM_ARM_TCC8920 = n CONFIG_PLATFORM_ARM_TCC8920_JB42 = n CONFIG_PLATFORM_ARM_TCC8930_JB42 = n CONFIG_PLATFORM_ARM_RK2818 = n CONFIG_PLATFORM_ARM_RK3066 = n CONFIG_PLATFORM_ARM_RK3188 = n CONFIG_PLATFORM_ARM_URBETTER = n CONFIG_PLATFORM_ARM_TI_PANDA = n CONFIG_PLATFORM_MIPS_JZ4760 = n CONFIG_PLATFORM_DMP_PHILIPS = n CONFIG_PLATFORM_MSTAR_TITANIA12 = n CONFIG_PLATFORM_MSTAR = n CONFIG_PLATFORM_SZEBOOK = n CONFIG_PLATFORM_ARM_SUNxI = n CONFIG_PLATFORM_ARM_SUN6I = n CONFIG_PLATFORM_ARM_SUN7I = n CONFIG_PLATFORM_ARM_SUN8I_W3P1 = n CONFIG_PLATFORM_ARM_SUN8I_W5P1 = n CONFIG_PLATFORM_ACTIONS_ATM702X = n CONFIG_PLATFORM_ACTIONS_ATV5201 = n CONFIG_PLATFORM_ACTIONS_ATM705X = n CONFIG_PLATFORM_ARM_SUN50IW1P1 = n CONFIG_PLATFORM_ARM_RTD299X = n CONFIG_PLATFORM_ARM_LGE = n CONFIG_PLATFORM_ARM_SPREADTRUM_6820 = n CONFIG_PLATFORM_ARM_SPREADTRUM_8810 = n CONFIG_PLATFORM_ARM_WMT = n CONFIG_PLATFORM_TI_DM365 = n CONFIG_PLATFORM_MOZART = n CONFIG_PLATFORM_RTK119X = n CONFIG_PLATFORM_RTK119X_AM = n CONFIG_PLATFORM_RTK129X = n CONFIG_PLATFORM_RTK390X = n CONFIG_PLATFORM_NOVATEK_NT72668 = n CONFIG_PLATFORM_HISILICON = n CONFIG_PLATFORM_HISILICON_HI3798 = n CONFIG_PLATFORM_NV_TK1 = n CONFIG_PLATFORM_NV_TK1_UBUNTU = n CONFIG_PLATFORM_RTL8197D = n CONFIG_PLATFORM_AML_S905 = n CONFIG_PLATFORM_ZTE_ZX296716 = n ########### CUSTOMER ################################ CONFIG_CUSTOMER_HUAWEI_GENERAL = n CONFIG_DRVEXT_MODULE = n export TopDIR ?= $(shell pwd) ```
CGarces commented 9 months ago

@stefanlk use suggestion from last comment.