Answer the question
In order to leave comments, you need to log in
How to install ndiswrapper?
make -C driver install
make[1]: enter directory "/root/ndiswrapper-1.62/driver"
make modules
make[2]: enter directory "/root/ndiswrapper-1.62/driver"
make -C /usr/src /linux-headers-5.4.0-kali4-amd64 M=/root/ndiswrapper-1.62/driver
make[3]: enter directory "/usr/src/linux-headers-5.4.0-kali4-amd64"
CC [ M] /root/ndiswrapper-1.62/driver/crt.o
In file included from /root/ndiswrapper-1.62/driver/crt.c:16:
/root/ndiswrapper-1.62/driver/ntoskernel.h: In function 'raise_irql ':
/root/ndiswrapper-1.62/driver/ntoskernel.h:113:40: error: 'struct task_struct' has no member named 'cpus_allowed'; did you mean 'nr_cpus_allowed'?
113 | #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed)
| ^~~~~~~~~~~~
/root/ndiswrapper-1.62/driver/ntoskernel.h:668:36: note: in expansion of macro 'tsk_cpus_allowed'
668 | cpumask_copy(&info->cpus_allowed, tsk_cpus_allowed(current));
| ^~~~~~~~~~~~~~~~
make[5]: *** [/usr/src/linux-headers-5.4.0-kali4-common/scripts/Makefile.build:271: /root/ndiswrapper-1.62/driver/crt.o] Error 1
make[4]: *** [/usr/src/linux-headers-5.4.0-kali4-common/Makefile:1665: /root/ndiswrapper- 1.62/driver] Error 2
make[3]: *** [/usr/src/linux-headers-5.4.0-kali4-common/Makefile:179: sub-make] Error 2
make[3]: out of directory "/usr/src/linux-headers-5.4.0-kali4-amd64"
make[2]: *** [Makefile:183: modules] Error 2
make[2]: exiting directory "/root/ndiswrapper-1.62/driver"
make[1]: *** [Makefile:186: ndiswrapper.ko] Error 2
make[1]: exiting directory "/root/ndiswrapper -1.62/driver"
make: *** [Makefile:27: install] Error 2
Help please
Answer the question
In order to leave comments, you need to log in
Judging by https://sourceforge.net/p/ndiswrapper/news/2019/02... version 1.62 was tested with a maximum of 5.0 kernel. My prediction is that you'll f****** get it right to start it with 5.4.
Shit, you can start by looking here and replacing in /root/ndiswrapper-1.62/driver/ntoskernel.h:113
#define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed)
on #define tsk_cpus_allowed(tsk) ((tsk)->cpus_ptr)
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question