[Solved] Kernel installation gone kinda wrong.

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
darkwolf
Level 2
Level 2
Posts: 79
Joined: Sat Feb 03, 2018 5:37 am

[Solved] Kernel installation gone kinda wrong.

Post by darkwolf » Wed Apr 11, 2018 1:49 pm

I decided to install the 4.15.0-13-generic kernel and during installation i got ERROR dkms bad return ndiswrapper (or something like that) , from what i understood, the ndiswrapper module failed to get installed (am i wrong?) and here is the log:

Code: Select all

DKMS make.log for ndiswrapper-1.60 for kernel 4.15.0-13-generic (x86_64)
Wed Apr 11 18:54:48 CEST 2018
make: Entering directory '/usr/src/linux-headers-4.15.0-13-generic'
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/crt_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/hal_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ndis_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_io_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/rtl_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/usb_exports.h
  MKSTUBS /var/lib/dkms/ndiswrapper/1.60/build/win2lin_stubs.h
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/crt.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/hal.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/iw_ndis.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/loader.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/ndis.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.o
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c: In function ‘wrap_init_timer’:
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:455:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
  init_timer(&wrap_timer->timer);
  ^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:456:19: error: ‘struct timer_list’ has no member named ‘data’
  wrap_timer->timer.data = (unsigned long)wrap_timer;
                   ^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:457:29: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  wrap_timer->timer.function = timer_proc;
                             ^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c: In function ‘ntoskernel_init’:
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:2563:29: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  shared_data_timer.function = update_user_shared_data_proc;
                             ^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:2564:19: error: ‘struct timer_list’ has no member named ‘data’
  shared_data_timer.data = 0;
                   ^
cc1: some warnings being treated as errors
scripts/Makefile.build:324: recipe for target '/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.o' failed
make[1]: *** [/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.o] Error 1
Makefile:1543: recipe for target '_module_/var/lib/dkms/ndiswrapper/1.60/build' failed
make: *** [_module_/var/lib/dkms/ndiswrapper/1.60/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.15.0-13-generic'
And here is the dkms status:

Code: Select all

 dkms status
bbswitch, 0.8, 4.13.0-37-generic, x86_64: installed
bbswitch, 0.8, 4.13.0-38-generic, x86_64: installed
bbswitch, 0.8, 4.15.0-13-generic, x86_64: installed
ndiswrapper, 1.60, 4.13.0-37-generic, x86_64: installed
ndiswrapper, 1.60, 4.13.0-38-generic, x86_64: installed
nvidia-384, 384.111, 4.13.0-37-generic, x86_64: installed
nvidia-384, 384.111, 4.13.0-38-generic, x86_64: installed
nvidia-384, 384.111, 4.15.0-13-generic, x86_64: installed
Despite of this error everything seems to work fine right now, but my main question is, should i be worried? and if this is a big problem, how can i install this module properly?
Last edited by darkwolf on Wed Apr 11, 2018 4:28 pm, edited 1 time in total.

JeremyB
Level 20
Level 20
Posts: 11034
Joined: Fri Feb 21, 2014 8:17 am

Re: Kernel installation gone kinda wrong.

Post by JeremyB » Wed Apr 11, 2018 1:54 pm

All the errors involve ndiswrapper and most people have no use for it. It is used to adapt Win XP wifi drivers for use in Linux

darkwolf
Level 2
Level 2
Posts: 79
Joined: Sat Feb 03, 2018 5:37 am

Re: Kernel installation gone kinda wrong.

Post by darkwolf » Wed Apr 11, 2018 2:03 pm

JeremyB wrote:
Wed Apr 11, 2018 1:54 pm
All the errors involve ndiswrapper and most people have no use for it. It is used to adapt Win XP wifi drivers for use in Linux
Windows xp wifi drivers? but why is it even on my system? i use a newer usb wifi adapter and everything seems to work fine and maybe even better without ndiswrapper, so in the end i can ignore it, right?

DAMIEN1307
Level 8
Level 8
Posts: 2217
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Kernel installation gone kinda wrong.

Post by DAMIEN1307 » Wed Apr 11, 2018 3:39 pm

i believe that ndiswrapper is exactly as jeremyb has stated for use with winxp wifi drivers...it is installed by default in many linux distros...

The NDISwrapper project provides a Linux kernel module that loads and runs Windows kernel API and NDIS (Network Driver Interface Specification) API drivers supplied by the vendors within the Linux kernel. A Windows driver is then linked to this implementation so that the driver runs natively, as though it is in Windows, without binary emulation.

NDISwrapper uses Windows XP driver files - which may have been supplied with your hardware - to operate your device. This driver wrapper is only available for use on the x86 and x86-64 architectures (Debian i386 and AMD64 ports respectively).

While NDISwrapper is intended for use with WiFi devices, it may alternatively be used for other hardware classes, such as Ethernet adapters or USB-to-serial converters. This page assumes use of a wireless LAN device.

if you wish to just remove it, here is the terminal command code to do so...DAMIEN

sudo apt purge ndiswrapper
ORDO AB CHAO

darkwolf
Level 2
Level 2
Posts: 79
Joined: Sat Feb 03, 2018 5:37 am

Re: Kernel installation gone kinda wrong.

Post by darkwolf » Wed Apr 11, 2018 3:49 pm

DAMIEN1307 wrote:
Wed Apr 11, 2018 3:39 pm
i believe that ndiswrapper is exactly as jeremyb has stated for use with winxp wifi drivers...it is installed by default in many linux distros...

The NDISwrapper project provides a Linux kernel module that loads and runs Windows kernel API and NDIS (Network Driver Interface Specification) API drivers supplied by the vendors within the Linux kernel. A Windows driver is then linked to this implementation so that the driver runs natively, as though it is in Windows, without binary emulation.

NDISwrapper uses Windows XP driver files - which may have been supplied with your hardware - to operate your device. This driver wrapper is only available for use on the x86 and x86-64 architectures (Debian i386 and AMD64 ports respectively).

While NDISwrapper is intended for use with WiFi devices, it may alternatively be used for other hardware classes, such as Ethernet adapters or USB-to-serial converters. This page assumes use of a wireless LAN device.

if you wish to just remove it, here is the terminal command code to do so...DAMIEN

sudo apt purge ndiswrapper
Well since it isn't working with the latest kernel, i think it shouldn't be a problem if i remove it, am i wrong?

darkwolf
Level 2
Level 2
Posts: 79
Joined: Sat Feb 03, 2018 5:37 am

Re: Kernel installation gone kinda wrong.

Post by darkwolf » Wed Apr 11, 2018 4:26 pm

So in the end i completely removed ndiswrapper using apt purge ndiswrapper and dkms remove ndiswrapper/1.60 --all, tested the latest kernel and previous kernel, no problems at all, everything seems to work fine.

DAMIEN1307
Level 8
Level 8
Posts: 2217
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: [Solved] Kernel installation gone kinda wrong.

Post by DAMIEN1307 » Wed Apr 11, 2018 5:27 pm

thats great...glad that this was of help to you...DAMIEN
ORDO AB CHAO

User avatar
einpoklum
Level 1
Level 1
Posts: 26
Joined: Sat Dec 24, 2016 5:14 am
Location: Amsterdam

Re: [Solved] Kernel installation gone kinda wrong.

Post by einpoklum » Wed Jun 06, 2018 9:01 pm

Removing ndiswrapper has worked for me too with the packages for kernel 4.15.0-22 . But - why is this not somehow taken care of automagically? Also - what about people who need ndiswrapper for some drivers?

Post Reply

Return to “Newbie Questions”