08/10/2023, 11:28
(08/10/2023, 11:03)adrianomorselli Ha scritto: https://askubuntu.com/questions/1455396/...-rtl8852beForse sono io che ho capito male ma... non funziona.
Forse adesso il kernel attuale non vuole digerirlo per niente, o magari è il gcc di compilazione
Codice:
lmde6c@i7-11390H:~/Documenti$ git clone https://github.com/HRex39/rtl8852be.git -b dev
Clone in 'rtl8852be' in corso...
remote: Enumerating objects: 1070, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (91/91), done.
remote: Total 1070 (delta 73), reused 137 (delta 57), pack-reused 913
Ricezione degli oggetti: 100% (1070/1070), 4.56 MiB | 11.20 MiB/s, fatto.
Risoluzione dei delta: 100% (250/250), fatto.
lmde6c@i7-11390H:~/Documenti$ cd rtl8852be
lmde6c@i7-11390H:~/Documenti/rtl8852be$ make
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-13-amd64/build M=/home/lmde6c/Documenti/rtl8852be modules
make[1]: ingresso nella directory «/usr/src/linux-headers-6.1.0-13-amd64»
CC [M] /home/lmde6c/Documenti/rtl8852be/platform/platform_linux_pc_pci.o
CC [M] /home/lmde6c/Documenti/rtl8852be/os_dep/osdep_service.o
CC [M] /home/lmde6c/Documenti/rtl8852be/os_dep/osdep_service_linux.o
/home/lmde6c/Documenti/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_change_ifname’:
/home/lmde6c/Documenti/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);
| ~~~~~~~^~~~~~~~~~
/home/lmde6c/Documenti/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)
| ~~~~~~^~~
/home/lmde6c/Documenti/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_random32’:
/home/lmde6c/Documenti/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
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-13-common/scripts/Makefile.build:255: /home/lmde6c/Documenti/rtl8852be/os_dep/osdep_service_linux.o] Errore 1
make[1]: *** [/usr/src/linux-headers-6.1.0-13-common/Makefile:2039: /home/lmde6c/Documenti/rtl8852be] Errore 2
make[1]: uscita dalla directory «/usr/src/linux-headers-6.1.0-13-amd64»
make: *** [Makefile:637: modules] Errore 2
lmde6c@i7-11390H:~/Documenti/rtl8852be$
Comandi da ricordare:
http://sargonsei.altervista.org/15_bash/
http://sargonsei.altervista.org/15_bash/