• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

modprobe ndiswrapper PROBLEME

oc2pus

Ultimate Guru
When I run 'modprobe ndiswrapper', I get 'Invalid module format' error. What do I do?

This issue has nothing to do with ndiswrapper - it is just kernel module compilation issue and if you are having difficulties with issue, seek help in channels meant for kernel e.g., kernelnewbies or your distribution. The following hints may help you.

* The kernel running should have been compiled from the same sources as ndiswrapper is.
* The compiler used for compiling kernel should be same as the one used to compile ndiswrapper. To make sure these conditions are met, run cat /proc/version and modinfo ndiswrapper and make sure that they match both compiler and kernel versions. If they do not match, you need to recompile either ndiswrapper or kernel or both. One sure way to get it right is to make sure that you have proper kernel headers installed: check that ls -l /lib/modules/$(uname -r)/build/include/linux/version.h does not give error and shows the information about that file.
* If you use precompiled kernel, make sure also that your kernel sources have exact same kernel configuration used for compiling kernel e.g., copy kernel configuration from /proc/config.gz or /boot/config-<version> into /lib/modules/uname -r/build/.config, such as gunzip < /proc/config.gz > /lib/modules/$(uname -r)/build/.config. Then recompile and install ndiswrapper.

aus der FAQ ;)

lies das mal durch:
http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation

und danach:
http://ndiswrapper.sourceforge.net/mediawiki/index.php/Suse_Professional_9.x

dann sollte es gehen ;)
 
OP
M

mark1979

Newbie
Kannst du mir evtl ein wenig helfen? Ich sitze jetzt hier mit einem englisch - deutsch wörterbuch. Aber irgendwie weiß ich nicht wirklic was ich machen soll.
 
OP
M

mark1979

Newbie
Kannst du mir evtl ein wenig helfen? Ich sitze jetzt hier mit einem englisch - deutsch wörterbuch. Aber irgendwie weiß ich nicht wirklic was ich machen soll.

bei dmesg kommt:

ndiswrapper: unsupported module, tainting kernel.
ndiswrapper version 0.10 loaded (preempt=no,smp=no)
ndiswrapper (wrapper_init:2286): loadndiswrapper failed (1536);check utils version mismatch

bei ndiswrapper -l kommt:
marklinux:/usr/src/ndiswrapper-0.12 # ndiswrapper -l
Installed ndis drivers:
netwg121 driver present, hardware present
 

oc2pus

Ultimate Guru
ich versuche es mal :)

so wie es aussieht hast du einen "neueren" kernel als das ndiswrapper Modul.

also:
uname -r ==> deine aktuelle kernel-Version
dann download der dazu passenden Kernel-Sourcen und diese installieren
dann das ndiswarpper-0.12.tar.gz downloaden und entpacken mit
tar xvzf ndiswrapper-0.12.tar.gz
danch in dieses Verzeichnis wechseln (cd ndiswrapper-0.12)
root werden (su und password eingeben)
dann make install aufrufen

rmmod ndiswrapper ==> entladen des Moduls
lsmod | grep ndiswrapper ==> Kontrolle, bei keiner Anzeige ist es entladen
dann ndiswrapper -l ==> dein Treiber
dann ndiswrapper -e <treibername>
aus der ndiswrapper-Wiki-Liste den passenden Treiber zu deinem Chipsatz downloaden
den Chipsatz erhälst du mit dem Befehl lspci
dann mit ndiswrapper -i <tribername> den Treiber installieren
mit ndiswrapper -l kontrolieren
in einer zweiten Konsole: tail -f /var/log/messages aufrufen
dann modprobe ndiswrapper aufrufen und das Logfile beobachten
wenn alles geklappt hat: ndiswrapper -m aufrufen
dann ifup wlan0 und mit YaST die ESSID etc setzen
 
OP
M

mark1979

Newbie
wo wird denn ein eintrag gemacht wenn ich ndiswrapper -m mache?

kann sein das ich das vor modprobe ndiswrapper gemacht habe und deswegen folgende meldung kommt:
marklinux:/usr/src/ndiswrapper-0.12 # modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.5-7.155.29-default/extra/ndiswrapper.ko): Invalid module format
marklinux:/usr/src/ndiswrapper-0.12 #
 

oc2pus

Ultimate Guru
mark1979 schrieb:
wo wird denn ein eintrag gemacht wenn ich ndiswrapper -m mache?
das erzeugt einen alias-Eintrag für wlan0, hat erst mal nicht mit der Meldung zu tun ;)

also kernel und sourcen sind drauf bei dir, dann ndiswrapper downloaden und compilieren ...
 

oc2pus

Ultimate Guru
hast du nicht .. wenn du wirklich ndiswrapper0.12 compiliert hättest würde der dmesg Eintrag NICHTS von 0.10 auswerfen ....

also nochmal an den Start und alles GENAU so machen wie beschrieben. Wichtig: das Modul entladen mit rmmod bevor du es neu installierst und lädst!! sonst hast du immer das alte am Wickel ..

und wenn du das alte in /lib/module/`uname -r` ... löschst bist du auf der ganz sicheren Seite :)
 
OP
M

mark1979

Newbie
tut mir leid das ich soviel frage aber ich habe ein wenig angst jetzt was falsch zu machen.
marklinux:/usr/src/ndiswrapper-0.12 # rmmod ndiswrapper
ERROR: Module ndiswrapper does not exist in /proc/modules
marklinux:/usr/src/ndiswrapper-0.12 #
ist das richtig?

1.Und wie genau lösche ich jetzt ALLES was mit ndiswrapper zu tun hat
2. wie meinst du das mit uname -r?
 

oc2pus

Ultimate Guru
mark1979 schrieb:
tut mir leid das ich soviel frage aber ich habe ein wenig angst jetzt was falsch zu machen.
marklinux:/usr/src/ndiswrapper-0.12 # rmmod ndiswrapper
ERROR: Module ndiswrapper does not exist in /proc/modules
marklinux:/usr/src/ndiswrapper-0.12 #
ist das richtig?

1.Und wie genau lösche ich jetzt ALLES was mit ndiswrapper zu tun hat
2. wie meinst du das mit uname -r?
ja, dann ist es nicht mehr geladen, kannst du auch mit lsmod | grep ndiswrapper prüfen.

im Verzeichnis /lib/modules/<kernelversion> schwirrt irgendwo ein ndiswrapper.ko rum, und weil ich faul bin und nicht immer <kernelversion> schreiben will, benutze ich `uname -r` das ergibt gerade die kernelversionsnummer ;)

also mach einfach mal:
find /lib/modules -name ndiswrapper.ko | xargs rm -f
dieser Befehl sucht alle ndiswrapper.ko und löscht sie im /lib/modules Verzeiichnis.

dann wechselst du nach dem Verzeichnis wo ndiswrapper-0.12 steht und rufst make install auf
 
OP
M

mark1979

Newbie
ach ja jetzt muß ja ein interface neu angelegt werden aber :) wenn ich jetzt ndiswrapper -m mache kommt
marklinux:/usr/src/ndiswrapper-0.12 # ndiswrapper -m
modprobe config already contains alias directive

marklinux:/usr/src/ndiswrapper-0.12 #
Rufe ich danach YAST auf steht da aber kein interface[/quote]
 

oc2pus

Ultimate Guru
ok, soweit so gut.

Wenn du in YaST kein interface hast, erstelle eines. Wichtig ist das du als Modul ndiswrapper einträgst.
 
OP
M

mark1979

Newbie
habe ich gemacht.

ok die 2.te lampe am wlan adapter ist immer noch aus aber was mir aufgefallen ist, ich kann nur wep einstellen ich habe den router aber auf wpa-psk stehen. wo stelle ich das in suse 9.1 denn ein?
 

oc2pus

Ultimate Guru
bringe es erst mal mit WEP zum laufen ...

das andere erfolgt mit wpa_suplicant ... ein anderes Thema, aber genauso reizvoll ;)
 
OP
M

mark1979

Newbie
ok mache ich.

aber wann fängt die 2te lampe denn an zu brennen?
Bis jetzt ist nur die lampe an wo dieses USB-Symbol drüber ist. Die wlan lampe ist aus. Hier wird erklärt wie es gehen soll aber auch das hilft nicht http://www.linux-club.de/viewtopic.php?t=20341. Jetzt habe ich deine Interface methode angewandt aber die lampe bleibt ebenfalls aus!

Hast du nen Rat. Ich denke ja nachdem YAST die Netzwerkeinstellungen nach dem ändern neustartet sollte die lampe angehen oder?
 

oc2pus

Ultimate Guru
vergiss doch mal YaST ;)

ifup wlan0 schaltet das Interface an. mit ifdown eth0 solltest du das LAN Interface auch mal abschalten, sofern vorhanden.

poste mal die Ausgabe von ifconfig und von iwconfig
 
OP
M

mark1979

Newbie
Also,

marklinux:/usr/src/ndiswrapper-0.12 # ifup wlan0
wlan0
marklinux:/usr/src/ndiswrapper-0.12 # ifconfig
eth0 Link encap:Ethernet HWaddr 00:B0:CB:D9:AF:31
inet addr:192.167.034.12 Bcast:192.167.034.255 Mask:255.255.255.0
inet6 addr: fe80::2a0:ffff:fef5:af31/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:75982 errors:1 dropped:0 overruns:0 frame:2
TX packets:35157 errors:0 dropped:0 overruns:0 carrier:0
collisions:2391 txqueuelen:1000
RX bytes:49237208 (46.9 Mb) TX bytes:4987059 (4.7 Mb)
Interrupt:10 Base address:0xcc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:100 errors:0 dropped:0 overruns:0 frame:0
TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8282 (8.0 Kb) TX bytes:8282 (8.0 Kb)

wlan0 Link encap:Ethernet HWaddr 00:04:BB:D1:9D:BC
inet addr:192.167.034.20 Bcast:192.167.034.255 Mask:255.255.255.0
inet6 addr: fe80::209:ffff:fed1:5bbc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:13050 (12.7 Kb)

marklinux:/usr/src/ndiswrapper-0.12 # iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:eek:ff/any Nickname:"marklinux"
Mode:Managed Frequency:2.462GHz Access Point: 00:00:00:00:00:00
Bit Rate=2Mb/s
RTS thr=2432 B Fragment thr=2432 B
Encryption key:8767-6DED-CD61-4E84-4B92-4293-97 Security mode:restricted
Power Management:eek:ff
Link Quality:100 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

marklinux:/usr/src/ndiswrapper-0.12 #

Ich hoffe das reicht
 
Oben