Doppelte Kernelmodule

Aus crazylinux.de
Zur Navigation springen Zur Suche springen

Fehlerbild

Folgender Fehler kam beim Laden eines Linux-Kernel-Modules:

root@laptop:/usr/src# modprobe ieee80211_crypt_tkip
FATAL: Error inserting ieee80211_crypt_tkip (/lib/modules/2.6.15-16-686/net/ieee80211/ieee80211_crypt_tkip.ko): Unknown symbol in module, or unknown parameter (see dmesg)
dmesg
[4295095.916000] ieee80211_crypt_tkip: disagrees about version of symbol ieee80211_register_crypto_ops
[4295095.916000] ieee80211_crypt_tkip: Unknown symbol ieee80211_register_crypto_ops
[4295095.916000] ieee80211_crypt_tkip: disagrees about version of symbol ieee80211_unregister_crypto_ops
[4295095.916000] ieee80211_crypt_tkip: Unknown symbol ieee80211_unregister_crypto_ops
[4295101.549000] ieee80211_crypt_tkip: disagrees about version of symbol ieee80211_register_crypto_ops
[4295101.549000] ieee80211_crypt_tkip: Unknown symbol ieee80211_register_crypto_ops
[4295101.549000] ieee80211_crypt_tkip: disagrees about version of symbol ieee80211_unregister_crypto_ops
[4295101.549000] ieee80211_crypt_tkip: Unknown symbol ieee80211_unregister_crypto_ops

Das Problem ist, daß das Modul zweimal vorhanden war, und leider das Falsche vesucht worden ist, zu laden:

root@laptop:/usr/src/linux# locate ieee80211.ko
/lib/modules/2.6.15-16-686/kernel/net/ieee80211/ieee80211.ko
/lib/modules/2.6.15-16-686/net/ieee80211/ieee80211.ko

Lösung

Zuerst das richtige Modul finden

root@laptop:/# modinfo /lib/modules/2.6.15-16-686/kernel/net/ieee80211/ieee80211.ko
filename:       /lib/modules/2.6.15-16-686/kernel/net/ieee80211/ieee80211.ko
version:        git-1.1.7
description:    802.11 data/management/control stack
author:         Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
license:        GPL
vermagic:       2.6.15-16-686 SMP preempt 686 gcc-4.0
depends:        ieee80211_crypt
srcversion:     F40D2AF003C1CA1FC2C5A8D

root@laptop:/# modinfo /lib/modules/2.6.15-16-686/net/ieee80211/ieee80211.ko
filename:       /root/net/ieee80211/ieee80211.ko
version:        1.1.6
description:    802.11 data/management/control stack
author:         Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
license:        GPL
vermagic:       2.6.15-16-686 SMP preempt 686 gcc-4.0
depends:        ieee80211_crypt
srcversion:     3B48D814D07AE37039BF1A1

Wir nehmen Version 1.1.7, da diese durch das Kernel-Package gekommen ist.

mv /lib/modules/2.6.15-16-686/net/ /root
depmod -a
modprobe ieee80211_crypt_tkip

Ergebnis

Auszug dmesg:

[4297318.176000] ieee80211_crypt: registered algorithm 'TKIP'