WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ndiswrapper error  (Read 2328 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
ndiswrapper error
« on: September 08, 2016, 01:46:05 PM »
Hi ndiswrapper needs modprobe, but not the one from busybox:
Code: [Select]
jls@box:~/mrv$ sudo ndiswrapper -l
lspci: Unable to load libkmod resources: error -12
modprobe: opzione non valida -- "c"
BusyBox v1.20.2 (2014-12-04 11:32:04 UTC) multi-call binary.

Usage: modprobe [-alrqvsDb] MODULE [symbol=value]...

-a Load multiple MODULEs
-l List (MODULE is a pattern)
-r Remove MODULE (stacks) or do autoclean
-q Quiet
-v Verbose
-s Log to syslog
-D Show dependencies
-b Apply blacklist to module names too

mrv8335 : driver installed
device (11AB:1FAA) present
jls@box:~/mrv$
after removing bb modprobe and using the one from the kmod package I got:
Code: [Select]
jls@box:~/mrv$ sudo ndiswrapper -i mrv8335.inf
installing mrv8335 ...
jls@box:~/mrv$ sudo ndiswrapper -m
module configuration contains directive install pci:v000011ABd00001FAAsv*sd*bc*sc*i* /sbin/modprobe ndiswrapper
;you should delete that at /usr/sbin/ndiswrapper line 811, <MODPROBE> line 117.
module configuration contains directive install pci:v000011ABd00001FABsv*sd*bc*sc*i* /sbin/modprobe ndiswrapper
;you should delete that at /usr/sbin/ndiswrapper line 811, <MODPROBE> line 118.
module configuration already contains alias directive

jls@box:~/mrv$ sudo modprobe ndiswrapper
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.2.9-tinycore/modules.dep.bin'
modprobe: FATAL: Module ndiswrapper not found in directory /lib/modules/4.2.9-tinycore
jls@box:~/mrv$

« Last Edit: September 08, 2016, 01:59:27 PM by jls »
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: ndiswrapper error
« Reply #1 on: September 11, 2016, 07:36:27 AM »
I have used ndiswrapper, and I "modprobe ndiswrapper" before I issue the ndiswrapper command.  That error you see from "sudo ndiswrapper -l" is then harmless.  Because of Tinycore's /lib/modules directory contents, the full version of modprobe does not work and /sbin/modprobe is a symlink to Busybox in base so it does not get overwritten when the kmod package is installed. 

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: ndiswrapper error
« Reply #2 on: September 11, 2016, 08:35:50 AM »
Hi
tryied to first the modprobe command, but it doesn't work.
Code: [Select]
jls@box:~/mrv$ sudo modprobe ndiswrapper
jls@box:~/mrv$ sudo ndiswrapper -i mrv8335.inf
driver mrv8335 is already installed
jls@box:~/mrv$ sudo ndiswrapper -m
modprobe: opzione non valida -- "c"
BusyBox v1.20.2 (2014-12-04 11:32:04 UTC) multi-call binary.

Usage: modprobe [-alrqvsDb] MODULE [symbol=value]...

-a Load multiple MODULEs
-l List (MODULE is a pattern)
-r Remove MODULE (stacks) or do autoclean
-q Quiet
-v Verbose
-s Log to syslog
-D Show dependencies
-b Apply blacklist to module names too

adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper.conf ...
jls@box:~/mrv$ iwconfig
ip_vti0   no wireless extensions.

dummy0    no wireless extensions.

wlx0026f2b1cf1e  IEEE 802.11bg  ESSID:"WebCubeNew-06AF"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 24:7F:3C:41:06:AF
          Bit Rate=54 Mb/s   Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=-23 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:228  Invalid misc:399   Missed beacon:0

lo        no wireless extensions.

tunl0     no wireless extensions.

jls@box:~/mrv$ sudo ifconfig wlan0 up
ifconfig: SIOCGIFFLAGS: Nessun device corrisponde
jls@box:~/mrv$ sudo ndiswrapper -l
lspci: Unable to load libkmod resources: error -12
modprobe: opzione non valida -- "c"
BusyBox v1.20.2 (2014-12-04 11:32:04 UTC) multi-call binary.

Usage: modprobe [-alrqvsDb] MODULE [symbol=value]...

-a Load multiple MODULEs
-l List (MODULE is a pattern)
-r Remove MODULE (stacks) or do autoclean
-q Quiet
-v Verbose
-s Log to syslog
-D Show dependencies
-b Apply blacklist to module names too

mrv8335 : driver installed
device (11AB:1FAA) present
jls@box:~/mrv$

dCore user