You are not logged in.
Pages: 1
Trying to install wifi driver (Realtek RTL8852) from Github for Lenovo Thinkpad E16. I'm running Daedalus 5.0.1 amd64 XFCE. I am stuck at MAKE command getting the following errors. Not sure how to proceed.
comborico1611@devuan1611:~$ su -
Password:
root@devuan1611:~# cd rt8852be
-bash: cd: rt8852be: No such file or directory
root@devuan1611:~# git clone https://github.com/HRex39/rtl8852be.git
fatal: destination path 'rtl8852be' already exists and is not an empty directory.
root@devuan1611:~# cd rtl8852be
root@devuan1611:~/rtl8852be# make -j8
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build M=/root/rtl8852be modules
make[1]: *** /lib/modules/6.1.0-35-amd64/build: No such file or directory. Stop.
make: *** [Makefile:637: modules] Error 2
root@devuan1611:~/rtl8852be# apt update
Hit:1 http://deb.devuan.org/merged daedalus InRelease
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@devuan1611:~/rtl8852be# ^C
root@devuan1611:~/rtl8852be# apt install make gcc linux-headers-$(uname -r) build-essential git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
make is already the newest version (4.3-4.1).
make set to manually installed.
gcc is already the newest version (4:12.2.0-3).
gcc set to manually installed.
build-essential is already the newest version (12.9).
git is already the newest version (1:2.39.5-0+deb12u2).
The following packages were automatically installed and are no longer required:
libwpe-1.0-1 libwpebackend-fdo-1.0-1
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
linux-compiler-gcc-12-x86 linux-headers-6.1.0-35-common linux-kbuild-6.1
The following NEW packages will be installed:
linux-compiler-gcc-12-x86 linux-headers-6.1.0-35-amd64
linux-headers-6.1.0-35-common linux-kbuild-6.1
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.0 MB of archives.
After this operation, 65.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.devuan.org/merged daedalus/main amd64 linux-compiler-gcc-12-x86 amd64 6.1.137-1 [992 kB]
Get:2 http://deb.devuan.org/merged daedalus/main amd64 linux-headers-6.1.0-35-common all 6.1.137-1 [10.2 MB]
Get:3 http://deb.devuan.org/merged daedalus/main amd64 linux-kbuild-6.1 amd64 6.1.137-1 [1,250 kB]
Get:4 http://deb.devuan.org/merged daedalus/main amd64 linux-headers-6.1.0-35-amd64 amd64 6.1.137-1 [1,523 kB]
Fetched 14.0 MB in 14s (1,027 kB/s)
Selecting previously unselected package linux-compiler-gcc-12-x86.
(Reading database ... 132689 files and directories currently installed.)
Preparing to unpack .../linux-compiler-gcc-12-x86_6.1.137-1_amd64.deb ...
Unpacking linux-compiler-gcc-12-x86 (6.1.137-1) ...
Selecting previously unselected package linux-headers-6.1.0-35-common.
Preparing to unpack .../linux-headers-6.1.0-35-common_6.1.137-1_all.deb ...
Unpacking linux-headers-6.1.0-35-common (6.1.137-1) ...
Selecting previously unselected package linux-kbuild-6.1.
Preparing to unpack .../linux-kbuild-6.1_6.1.137-1_amd64.deb ...
Unpacking linux-kbuild-6.1 (6.1.137-1) ...
Selecting previously unselected package linux-headers-6.1.0-35-amd64.
Preparing to unpack .../linux-headers-6.1.0-35-amd64_6.1.137-1_amd64.deb ...
Unpacking linux-headers-6.1.0-35-amd64 (6.1.137-1) ...
Setting up linux-compiler-gcc-12-x86 (6.1.137-1) ...
Setting up linux-kbuild-6.1 (6.1.137-1) ...
Setting up linux-headers-6.1.0-35-common (6.1.137-1) ...
Setting up linux-headers-6.1.0-35-amd64 (6.1.137-1) ...
root@devuan1611:~/rtl8852be# make -j8
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build M=/root/rtl8852be modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-35-amd64'
CC [M] /root/rtl8852be/platform/platform_linux_pc_pci.o
CC [M] /root/rtl8852be/os_dep/osdep_service.o
CC [M] /root/rtl8852be/os_dep/osdep_service_linux.o
CC [M] /root/rtl8852be/os_dep/linux/rtw_cfg.o
CC [M] /root/rtl8852be/os_dep/linux/os_intfs.o
CC [M] /root/rtl8852be/os_dep/linux/ioctl_linux.o
CC [M] /root/rtl8852be/os_dep/linux/xmit_linux.o
CC [M] /root/rtl8852be/os_dep/linux/mlme_linux.o
/root/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_change_ifname’:
/root/rtl8852be/os_dep/osdep_service_linux.c:810:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
810 | _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN);
| ~~~~~~~^~~~~~~~~~
/root/rtl8852be/os_dep/osdep_service_linux.c:48:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
48 | void _rtw_memcpy(void *dst, const void *src, u32 sz)
| ~~~~~~^~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_net_set_mac_address’:
/root/rtl8852be/os_dep/linux/os_intfs.c:79:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
79 | _rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
| ~~~~~~~^~~~~~~~~~
In file included from /root/rtl8852be/include/drv_types.h:25,
from /root/rtl8852be/os_dep/linux/os_intfs.c:17:
/root/rtl8852be/include/osdep_service.h:281:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
| ~~~~~~^~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_ndev_init’:
/root/rtl8852be/os_dep/linux/os_intfs.c:294:9: error: too many arguments to function ‘netif_napi_add’
294 | netif_napi_add(dev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
| ^~~~~~~~~~~~~~
In file included from /root/rtl8852be/include/osdep_service_linux.h:31,
from /root/rtl8852be/include/osdep_service.h:42:
/usr/src/linux-headers-6.1.0-35-common/include/linux/netdevice.h:2593:1: note: declared here
2593 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
| ^~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_os_ndev_register’:
/root/rtl8852be/os_dep/linux/os_intfs.c:623:25: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
623 | _rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
| ~~~~^~~~~~~~~~
/root/rtl8852be/include/osdep_service.h:281:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
| ~~~~~~^~~
/root/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_random32’:
/root/rtl8852be/os_dep/osdep_service_linux.c:850:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
850 | return prandom_u32();
| ^~~~~~~~~~~
| prandom_u32_max
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/osdep_service_linux.o] Error 1
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_wback’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:21:17: error: implicit declaration of function ‘pci_dma_sync_single_for_device’; did you mean ‘dma_sync_single_for_device’? [-Werror=implicit-function-declaration]
21 | pci_dma_sync_single_for_device(hwdev, *bus_addr, size,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| dma_sync_single_for_device
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_inv’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:30:17: error: implicit declaration of function ‘pci_dma_sync_single_for_cpu’; did you mean ‘dma_sync_single_for_cpu’? [-Werror=implicit-function-declaration]
30 | pci_dma_sync_single_for_cpu(hwdev, *bus_addr, size, direction);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| dma_sync_single_for_cpu
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_get_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:39:29: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration]
39 | *bus_addr = pci_map_single(hwdev, vir_addr, size, direction);
| ^~~~~~~~~~~~~~
| dma_map_single
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_unmap_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:50:17: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
50 | pci_unmap_single(hwdev, *bus_addr, size, direction);
| ^~~~~~~~~~~~~~~~
| dma_unmap_single
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_free_noncache_mem’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:97:17: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
97 | pci_free_consistent(pdev, size, vir_addr, *bus_addr);
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/platform/platform_linux_pc_pci.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-35-common/Makefile:2038: /root/rtl8852be] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-35-amd64'
make: *** [Makefile:637: modules] Error 2
root@devuan1611:~/rtl8852be# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
libwpe-1.0-1 libwpebackend-fdo-1.0-1
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 186 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 149229 files and directories currently installed.)
Removing libwpebackend-fdo-1.0-1:amd64 (1.14.2-1) ...
Removing libwpe-1.0-1:amd64 (1.14.0-1) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
root@devuan1611:~/rtl8852be# make -j8
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build M=/root/rtl8852be modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-35-amd64'
CC [M] /root/rtl8852be/platform/platform_linux_pc_pci.o
CC [M] /root/rtl8852be/os_dep/osdep_service_linux.o
CC [M] /root/rtl8852be/os_dep/linux/os_intfs.o
CC [M] /root/rtl8852be/os_dep/linux/recv_linux.o
CC [M] /root/rtl8852be/os_dep/linux/ioctl_cfg80211.o
CC [M] /root/rtl8852be/os_dep/linux/rtw_cfgvendor.o
CC [M] /root/rtl8852be/os_dep/linux/wifi_regd.o
CC [M] /root/rtl8852be/os_dep/linux/rtw_android.o
/root/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_change_ifname’:
/root/rtl8852be/os_dep/osdep_service_linux.c:810:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
810 | _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN);
| ~~~~~~~^~~~~~~~~~
/root/rtl8852be/os_dep/osdep_service_linux.c:48:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
48 | void _rtw_memcpy(void *dst, const void *src, u32 sz)
| ~~~~~~^~~
/root/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_random32’:
/root/rtl8852be/os_dep/osdep_service_linux.c:850:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
850 | return prandom_u32();
| ^~~~~~~~~~~
| prandom_u32_max
/root/rtl8852be/os_dep/linux/wifi_regd.c: In function ‘rtw_regd_init’:
/root/rtl8852be/os_dep/linux/wifi_regd.c:697:36: error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first use in this function)
697 | wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/wifi_regd.c:697:36: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/linux/wifi_regd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/osdep_service_linux.o] Error 1
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_net_set_mac_address’:
/root/rtl8852be/os_dep/linux/os_intfs.c:79:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
79 | _rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
| ~~~~~~~^~~~~~~~~~
In file included from /root/rtl8852be/include/drv_types.h:25,
from /root/rtl8852be/os_dep/linux/os_intfs.c:17:
/root/rtl8852be/include/osdep_service.h:281:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
| ~~~~~~^~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_ndev_init’:
/root/rtl8852be/os_dep/linux/os_intfs.c:294:9: error: too many arguments to function ‘netif_napi_add’
294 | netif_napi_add(dev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
| ^~~~~~~~~~~~~~
In file included from /root/rtl8852be/include/osdep_service_linux.h:31,
from /root/rtl8852be/include/osdep_service.h:42:
/usr/src/linux-headers-6.1.0-35-common/include/linux/netdevice.h:2593:1: note: declared here
2593 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
| ^~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_os_ndev_register’:
/root/rtl8852be/os_dep/linux/os_intfs.c:623:25: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
623 | _rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
| ~~~~^~~~~~~~~~
/root/rtl8852be/include/osdep_service.h:281:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
| ~~~~~~^~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:494:17: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
494 | cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, false);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/rtl8852be/include/osdep_service_linux.h:100,
from /root/rtl8852be/include/osdep_service.h:42,
from /root/rtl8852be/include/drv_types.h:25,
from /root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-6.1.0-35-common/include/net/cfg80211.h:8443:6: note: declared here
8443 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:505:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
505 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/linux-headers-6.1.0-35-common/include/net/cfg80211.h:8427:6: note: declared here
8427 | void cfg80211_ch_switch_notify(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:1189:26: error: ‘struct cfg80211_roam_info’ has no member named ‘bssid’
1189 | roam_info.bssid = cur_network->network.MacAddress;
| ^
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_wback’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:21:17: error: implicit declaration of function ‘pci_dma_sync_single_for_device’; did you mean ‘dma_sync_single_for_device’? [-Werror=implicit-function-declaration]
21 | pci_dma_sync_single_for_device(hwdev, *bus_addr, size,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| dma_sync_single_for_device
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_inv’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:30:17: error: implicit declaration of function ‘pci_dma_sync_single_for_cpu’; did you mean ‘dma_sync_single_for_cpu’? [-Werror=implicit-function-declaration]
30 | pci_dma_sync_single_for_cpu(hwdev, *bus_addr, size, direction);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| dma_sync_single_for_cpu
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/linux/os_intfs.o] Error 1
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: At top level:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10354:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int, u8, bool, const u8 *, struct key_params *)’ {aka ‘int (*)(struct wiphy *, struct net_device *, int, unsigned char, _Bool, const unsigned char *, struct key_params *)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8, bool, const u8 *, struct key_params *)’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char, _Bool, const unsigned char *, struct key_params *)’} [-Werror=incompatible-pointer-types]
10354 | .add_key = cfg80211_rtw_add_key,
| ^~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10354:20: note: (near initialization for ‘rtw_cfg80211_ops.add_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10355:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int, u8, bool, const u8 *, void *, void (*)(void *, struct key_params *))’ {aka ‘int (*)(struct wiphy *, struct net_device *, int, unsigned char, _Bool, const unsigned char *, void *, void (*)(void *, struct key_params *))’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8, bool, const u8 *, void *, void (*)(void *, struct key_params *))’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char, _Bool, const unsigned char *, void *, void (*)(void *, struct key_params *))’} [-Werror=incompatible-pointer-types]
10355 | .get_key = cfg80211_rtw_get_key,
| ^~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10355:20: note: (near initialization for ‘rtw_cfg80211_ops.get_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10356:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int, u8, bool, const u8 *)’ {aka ‘int (*)(struct wiphy *, struct net_device *, int, unsigned char, _Bool, const unsigned char *)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8, bool, const u8 *)’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char, _Bool, const unsigned char *)’} [-Werror=incompatible-pointer-types]
10356 | .del_key = cfg80211_rtw_del_key,
| ^~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10356:20: note: (near initialization for ‘rtw_cfg80211_ops.del_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10357:28: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int, u8, bool, bool)’ {aka ‘int (*)(struct wiphy *, struct net_device *, int, unsigned char, _Bool, _Bool)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8, bool, bool)’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char, _Bool, _Bool)’} [-Werror=incompatible-pointer-types]
10357 | .set_default_key = cfg80211_rtw_set_default_key,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10357:28: note: (near initialization for ‘rtw_cfg80211_ops.set_default_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10359:33: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int, u8)’ {aka ‘int (*)(struct wiphy *, struct net_device *, int, unsigned char)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8)’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char)’} [-Werror=incompatible-pointer-types]
10359 | .set_default_mgmt_key = cfg80211_rtw_set_default_mgmt_key,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10359:33: note: (near initialization for ‘rtw_cfg80211_ops.set_default_mgmt_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10392:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types]
10392 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10392:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10434:24: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int, struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
10434 | .get_channel = cfg80211_rtw_get_channel,
| ^~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10434:24: note: (near initialization for ‘rtw_cfg80211_ops.get_channel’)
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_get_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:39:29: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration]
39 | *bus_addr = pci_map_single(hwdev, vir_addr, size, direction);
| ^~~~~~~~~~~~~~
| dma_map_single
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10690:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
10690 | if (wdev->current_bss) {
| ^~
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_unmap_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:50:17: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
50 | pci_unmap_single(hwdev, *bus_addr, size, direction);
| ^~~~~~~~~~~~~~~~
| dma_unmap_single
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:6233:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
6233 | *ht = 0;
| ~~~~^~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:6235:9: note: here
6235 | case NL80211_CHAN_WIDTH_20:
| ^~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/linux/ioctl_cfg80211.o] Error 1
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_free_noncache_mem’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:97:17: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
97 | pci_free_consistent(pdev, size, vir_addr, *bus_addr);
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/platform/platform_linux_pc_pci.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-35-common/Makefile:2038: /root/rtl8852be] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-35-amd64'
make: *** [Makefile:637: modules] Error 2
root@devuan1611:~/rtl8852be# make install
install -p -m 644 8852be.ko /lib/modules/6.1.0-35-amd64/kernel/drivers/net/wireless/
install: cannot stat '8852be.ko': No such file or directory
make: *** [Makefile:646: install] Error 1
Last edited by comborico1611 (Yesterday 15:44:10)
Offline
please use code tag.
Offline
The answer is right there, in gigantic font, at the top of the README for the (archived) github repository you are cloning:
KERNEL > 6.0.0 NOT LONGER MAINTAIN
For kernel > 6.0.0, You should view https://github.com/lwfinger/rtw89
The module you are trying to compile references functions that no longer exist (at least under those names) in your installed (6.1.0) kernel. Either fix it yourself (out of scope here) or use a codebase that is maintained for current kernels.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.
Offline
Okay, great! Thanks for next step!
Offline
I blacklisted the driver per the driver given via lshw -C network: r8169. There was no blacklist.conf file so I created one by making a txt file, adding the only line 'blacklist r8169' and saving it as blacklist-r8169.conf in the modprobe.d folder.
I then resumed once again MAKE, errors remain, albeit shorter. Unable to execute MAKE INSTALL. No useful results on search engine for the errors given "linux rtl driver pci_dma_sync_single_for_device" or "linux rtl driver.
Any suggestions?
Do I need to make blacklist-r8169.conf executable? I see blacklist hash error at boot, however, search engine stated it was normal for disabled secure boot. Do I need to get A.I. involved in this?
If we work together, I think we can resolve the issue.
-Combo
P.S. I hope some humor is agreeable.
[root@devuan1611:~/rtl8852be# make
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build M=/root/rtl8852be modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-35-amd64'
CC [M] /root/rtl8852be/platform/platform_linux_pc_pci.o
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_wback’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:21:17: error: implicit declaration of function ‘pci_dma_sync_single_for_device’; did you mean ‘dma_sync_single_for_device’? [-Werror=implicit-function-declaration]
21 | pci_dma_sync_single_for_device(hwdev, *bus_addr, size,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| dma_sync_single_for_device
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_inv’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:30:17: error: implicit declaration of function ‘pci_dma_sync_single_for_cpu’; did you mean ‘dma_sync_single_for_cpu’? [-Werror=implicit-function-declaration]
30 | pci_dma_sync_single_for_cpu(hwdev, *bus_addr, size, direction);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| dma_sync_single_for_cpu
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_get_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:39:29: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration]
39 | *bus_addr = pci_map_single(hwdev, vir_addr, size, direction);
| ^~~~~~~~~~~~~~
| dma_map_single
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_unmap_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:50:17: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
50 | pci_unmap_single(hwdev, *bus_addr, size, direction);
| ^~~~~~~~~~~~~~~~
| dma_unmap_single
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_free_noncache_mem’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:97:17: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
97 | pci_free_consistent(pdev, size, vir_addr, *bus_addr);
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/platform/platform_linux_pc_pci.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-35-common/Makefile:2038: /root/rtl8852be] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-35-amd64'
make: *** [Makefile:637: modules] Error 2
root@devuan1611:~/rtl8852be# make install
install -p -m 644 8852be.ko /lib/modules/6.1.0-35-amd64/kernel/drivers/net/wireless/
install: cannot stat '8852be.ko': No such file or directory
make: *** [Makefile:646: install] Error 1
Offline
Any suggestions?
Yes firstly stop trying to compile as root do the ./configure, and ./make steps as a normal user then when needing to install the module use sudo make install this is the only step that requires the root user to get done. And I see nothing about the ./configure step being done. Lastly where does this crazy line come from make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build. You are already on the x86_64 arch with the kernel headers installed and since it is the same arch you are not cross-compiling, try make instead. Start with newly extracted source for the proper driver as pointed out above the source you try to use is out of date according to the posting by steve_v. You want the linked rtw_89 and you just might have chance of having some success in getting it done.
Last edited by RedGreen925 (Today 02:46:34)
Offline
I blacklisted the driver
You haven't compiled the replacement driver successfully yet, so blacklisting the in-kernel one is completely irrelevant at this point.
I then resumed once again MAKE
Without addressing (or even reading it seems) what I posted above, so...
errors remain
Of course they do.
No useful results on search engine for the errors given
I just told you what the compiler errors mean, a search engine won't tell you anything different - even of it has indexed that exact line, which it probably hasn't.
Do I need to get A.I. involved
Nor will an Artificial Idiot.
Any suggestions?
Already provided: Get a driver that is maintained and compatible with your kernel version... Or learn enough C and kernel programming to find and fix all the deprecated function calls in the broken one you seem determined to use.
One of these is easy, the other is hard. Your choice.
Do I need to make blacklist-r8169.conf executable?
Uhh, whut? Why would that matter, it's a configuration file for modprobe. Try 'man modprobe' and 'man modprobe.d' instead of flailing randomly.
If we work together, I think we can resolve the issue.
If you read the README in that github repo and followed the link, I expect you would have resolved this already by yourself.
The maintained driver repo even includes DKMS packaging instructions, which I suggest you follow so you get a .deb package and automatic rebuilds on kernel changes.
./configure, and ./make steps
Autoconf 'configure' scripts are stored in the source directory, but 'make' is a binary in system path. So './configure [--option]' and 'make [target]'.
In this case however...
I see nothing about the ./configure step being done.
The source in question does some (sort of) autoconf from the makefile (and a bunch of other crazy besides), there is no configure script.
where does this crazy line come from... try make instead
They did. Read the makefile.
Last edited by steve_v (Today 06:41:53)
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.
Offline
since the OP seems unable to use simple code tags perhaps we might hypothesize we are interacting with ai/llm? how would we know? could we? really?
don't get me wrong, i understand. a dear one has dementia and no longer knows who they are/was/were. it is hard to relate unless/until it is personally experienced and so one must seek out others who have both experienced it and are willing to share and talk about it as well. life is short, love them long.
Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!
Online
perhaps we might hypothesize we are interacting with ai/llm?
Sure reads like one, and I was gunna say it... But benefit of the doubt and all that. They could also just be a noob, copy-pasting the usual outdated blog-post garbage.
Then again, the Large-Regurgitation-Model hypothesis would neatly explain things like missing the "No longer maintained for kernel > 6.0.0" bit (it's an image, not plaintext), and the inane "Okay, great! Thanks for next step!" reply (while clearly not understanding the advice)...
Last edited by steve_v (Today 07:06:35)
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.
Offline
Pages: 1