Sunday, February 1, 2009

Updating your ndiswrapper module


UPDATING THE ndiswrapper module WHEN YOU UPDATE THE FEDORA KERNEL
---------------------------------------------------------------------

1. Clean the yum database
-------------------------
[root@localhost alex]# yum clean all
Loaded plugins: refresh-packagekit
Cleaning up Everything

2. Update the packages based on the updates from database
----------------------------------------------------------
[root@localhost alex]# yum update
Loaded plugins: refresh-packagekit
fedora | 2.8 kB 00:00
fedora/primary_db | 8.1 MB 02:44
rpmfusion-free-updates | 2.7 kB 00:00
rpmfusion-free-updates/primary_db | 130 kB 00:00
rpmfusion-nonfree-updates | 2.7 kB 00:00
rpmfusion-nonfree-updates/primary_db | 56 kB 00:00
rpmfusion-free | 2.7 kB 00:00
rpmfusion-free/primary_db | 259 kB 00:01
adobe-linux-i386 | 951 B 00:00
adobe-linux-i386/primary | 10 kB 00:00
adobe-linux-i386 17/17
rpmfusion-nonfree | 2.7 kB 00:00
rpmfusion-nonfree/primary_db | 66 kB 00:00
http://mirrors.kernel.org/fedora/updates/10/x86_64/repodata/repomd.xml: [Errno 12] Timeout:
Trying other mirror.
updates | 2.3 kB 00:00
updates/primary_db | 2.4 MB 00:12
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package selinux-policy-targeted.noarch 0:3.5.13-40.fc10 set to be updated
---> Package kernel.x86_64 0:2.6.27.12-170.2.5.fc10 set to be installed
---> Package PackageKit-udev-helper.x86_64 0:0.3.13-1.fc10 set to be updated
---> Package PackageKit-yum-plugin.x86_64 0:0.3.13-1.fc10 set to be updated
---> Package gnome-packagekit.x86_64 0:0.3.13-1.fc10 set to be updated
---> Package selinux-policy.noarch 0:3.5.13-40.fc10 set to be updated
---> Package kernel-firmware.noarch 0:2.6.27.12-170.2.5.fc10 set to be updated
---> Package PackageKit-yum.x86_64 0:0.3.13-1.fc10 set to be updated
---> Package kernel-doc.noarch 0:2.6.27.12-170.2.5.fc10 set to be updated
---> Package xine-lib-pulseaudio.x86_64 0:1.1.16.1-1.fc10 set to be updated
---> Package kernel-headers.x86_64 0:2.6.27.12-170.2.5.fc10 set to be updated
---> Package PackageKit.x86_64 0:0.3.13-1.fc10 set to be updated
---> Package libpurple.x86_64 0:2.5.4-1.fc10 set to be updated
---> Package xine-lib.x86_64 0:1.1.16.1-1.fc10 set to be updated
---> Package pidgin.x86_64 0:2.5.4-1.fc10 set to be updated
---> Package PackageKit-glib.x86_64 0:0.3.13-1.fc10 set to be updated
---> Package kernel-devel.x86_64 0:2.6.27.12-170.2.5.fc10 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
kernel x86_64 2.6.27.12-170.2.5.fc10 updates 20 M
kernel-devel x86_64 2.6.27.12-170.2.5.fc10 updates 5.5 M
Updating:
PackageKit x86_64 0.3.13-1.fc10 updates 361 k
PackageKit-glib x86_64 0.3.13-1.fc10 updates 124 k
PackageKit-udev-helper x86_64 0.3.13-1.fc10 updates 54 k
PackageKit-yum x86_64 0.3.13-1.fc10 updates 112 k
PackageKit-yum-plugin x86_64 0.3.13-1.fc10 updates 55 k
gnome-packagekit x86_64 0.3.13-1.fc10 updates 2.4 M
kernel-doc noarch 2.6.27.12-170.2.5.fc10 updates 9.3 M
kernel-firmware noarch 2.6.27.12-170.2.5.fc10 updates 361 k
kernel-headers x86_64 2.6.27.12-170.2.5.fc10 updates 755 k
libpurple x86_64 2.5.4-1.fc10 updates 7.4 M
pidgin x86_64 2.5.4-1.fc10 updates 1.3 M
selinux-policy noarch 3.5.13-40.fc10 updates 616 k
selinux-policy-targeted noarch 3.5.13-40.fc10 updates 2.0 M
xine-lib x86_64 1.1.16.1-1.fc10 updates 2.4 M
xine-lib-pulseaudio x86_64 1.1.16.1-1.fc10 updates 16 k

Transaction Summary
================================================================================
Install 2 Package(s)
Update 15 Package(s)
Remove 0 Package(s)

Total download size: 52 M
Is this ok [y/N]: y
Downloading Packages:
(1/17): xine-lib-pulseaudio-1.1.16.1-1.fc10.x86_64.rpm | 16 kB 00:00
(2/17): PackageKit-udev-helper-0.3.13-1.fc10.x86_64.rpm | 54 kB 00:00
(3/17): PackageKit-yum-plugin-0.3.13-1.fc10.x86_64.rpm | 55 kB 00:00
(4/17): PackageKit-yum-0.3.13-1.fc10.x86_64.rpm | 112 kB 00:00
(5/17): PackageKit-glib-0.3.13-1.fc10.x86_64.rpm | 124 kB 00:00
(6/17): kernel-firmware-2.6.27.12-170.2.5.fc10.noarch.rp | 361 kB 00:01
(7/17): PackageKit-0.3.13-1.fc10.x86_64.rpm | 361 kB 00:02
(8/17): selinux-policy-3.5.13-40.fc10.noarch.rpm | 616 kB 00:03
(9/17): kernel-headers-2.6.27.12-170.2.5.fc10.x86_64.rpm | 755 kB 00:04
(10/17): pidgin-2.5.4-1.fc10.x86_64.rpm | 1.3 MB 00:06
(11/17): selinux-policy-targeted-3.5.13-40.fc10.noarch.r | 2.0 MB 00:10
(12/17): xine-lib-1.1.16.1-1.fc10.x86_64.rpm | 2.4 MB 00:12
(13/17): gnome-packagekit-0.3.13-1.fc10.x86_64.rpm | 2.4 MB 00:12
(14/17): kernel-devel-2.6.27.12-170.2.5.fc10.x86_64.rpm | 5.5 MB 00:28
(15/17): libpurple-2.5.4-1.fc10.x86_64.rpm | 7.4 MB 00:38
(16/17): kernel-doc-2.6.27.12-170.2.5.fc10.noarch.rpm | 9.3 MB 00:49
(17/17): kernel-2.6.27.12-170.2.5.fc10.x86_64.rpm | 20 MB 01:40
--------------------------------------------------------------------------------
Total 196 kB/s | 52 MB 04:34
============================== Entering rpm code ===============================
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : xine-lib 1/32
Updating : libpurple 2/32
Updating : pidgin 3/32
Updating : xine-lib-pulseaudio 4/32
Updating : kernel-firmware 5/32
Updating : selinux-policy 6/32
Updating : selinux-policy-targeted 7/32
Installing : kernel-devel 8/32
Updating : kernel-headers 9/32
Updating : kernel-doc 10/32
Installing : kernel 11/32
Updating : PackageKit-yum 12/32
Updating : PackageKit-yum-plugin 13/32
Updating : PackageKit-glib 14/32
Updating : PackageKit 15/32
Updating : gnome-packagekit 16/32
Updating : PackageKit-udev-helper 17/32
Cleanup : libpurple 18/32
Cleanup : PackageKit-yum 19/32
Cleanup : kernel-doc 20/32
Cleanup : PackageKit-yum-plugin 21/32
Cleanup : gnome-packagekit 22/32
Cleanup : PackageKit 23/32
Cleanup : selinux-policy 24/32
Cleanup : pidgin 25/32
Cleanup : PackageKit-udev-helper 26/32
Cleanup : xine-lib 27/32
Cleanup : kernel-headers 28/32
Cleanup : kernel-firmware 29/32
Cleanup : xine-lib-pulseaudio 30/32
Cleanup : PackageKit-glib 31/32
Cleanup : selinux-policy-targeted 32/32

=============================== Leaving rpm code ===============================

Installed:
kernel.x86_64 0:2.6.27.12-170.2.5.fc10
kernel-devel.x86_64 0:2.6.27.12-170.2.5.fc10

Updated:
PackageKit.x86_64 0:0.3.13-1.fc10
PackageKit-glib.x86_64 0:0.3.13-1.fc10
PackageKit-udev-helper.x86_64 0:0.3.13-1.fc10
PackageKit-yum.x86_64 0:0.3.13-1.fc10
PackageKit-yum-plugin.x86_64 0:0.3.13-1.fc10
gnome-packagekit.x86_64 0:0.3.13-1.fc10
kernel-doc.noarch 0:2.6.27.12-170.2.5.fc10
kernel-firmware.noarch 0:2.6.27.12-170.2.5.fc10
kernel-headers.x86_64 0:2.6.27.12-170.2.5.fc10
libpurple.x86_64 0:2.5.4-1.fc10
pidgin.x86_64 0:2.5.4-1.fc10
selinux-policy.noarch 0:3.5.13-40.fc10
selinux-policy-targeted.noarch 0:3.5.13-40.fc10
xine-lib.x86_64 0:1.1.16.1-1.fc10
xine-lib-pulseaudio.x86_64 0:1.1.16.1-1.fc10

Complete!
[root@localhost alex]#

3. Uninstall the old ndiswrapper module compiled using the old kernel
---------------------------------------------------------------------
[root@localhost ndiswrapper-1.54]# make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /sbin/loadndisdriver
removing /usr/sbin/ndiswrapper
removing /usr/sbin/ndiswrapper-buginfo

4. Compile a new version of ndiswrapper module using the new kernel
-------------------------------------------------------------------
[root@localhost ndiswrapper-1.54]# make
make -C driver
make[1]: Entering directory `/home/alex/Download/ndiswrapper-1.54/driver'
make -C /usr/src/kernels/2.6.27.12-170.2.5.fc10.x86_64 M=/home/alex/Download/ndiswrapper-1.54/driver
make[2]: Entering directory `/usr/src/kernels/2.6.27.12-170.2.5.fc10.x86_64'
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/crt_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/crt.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/hal_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/hal.o
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/iw_ndis.o
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/loader.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/ndis_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/ndis.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/ntoskernel_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/ntoskernel.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/ntoskernel_io_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/ntoskernel_io.o
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/pe_linker.o
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/pnp.o
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/proc.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/rtl_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/rtl.o
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/wrapmem.o
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/wrapndis.o
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/wrapper.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/usb_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/usb.o
MKSTUBS /home/alex/Download/ndiswrapper-1.54/driver/win2lin_stubs.h
AS [M] /home/alex/Download/ndiswrapper-1.54/driver/win2lin_stubs.o
LD [M] /home/alex/Download/ndiswrapper-1.54/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/alex/Download/ndiswrapper-1.54/driver/ndiswrapper.mod.o
LD [M] /home/alex/Download/ndiswrapper-1.54/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.27.12-170.2.5.fc10.x86_64'
make[1]: Leaving directory `/home/alex/Download/ndiswrapper-1.54/driver'
make -C utils
make[1]: Entering directory `/home/alex/Download/ndiswrapper-1.54/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/alex/Download/ndiswrapper-1.54/utils'

5. Install the new ndiswrapper module
-------------------------------------
[root@localhost ndiswrapper-1.54]# make install
make -C driver install
make[1]: Entering directory `/home/alex/Download/ndiswrapper-1.54/driver'
make -C /usr/src/kernels/2.6.27.12-170.2.5.fc10.x86_64 M=/home/alex/Download/ndiswrapper-1.54/driver
make[2]: Entering directory `/usr/src/kernels/2.6.27.12-170.2.5.fc10.x86_64'
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/crt_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/crt.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/hal_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/hal.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/ndis_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/ndis.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/ntoskernel_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/ntoskernel.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/ntoskernel_io_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/ntoskernel_io.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/rtl_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/rtl.o
MKEXPORT /home/alex/Download/ndiswrapper-1.54/driver/usb_exports.h
CC [M] /home/alex/Download/ndiswrapper-1.54/driver/usb.o
MKSTUBS /home/alex/Download/ndiswrapper-1.54/driver/win2lin_stubs.h
AS [M] /home/alex/Download/ndiswrapper-1.54/driver/win2lin_stubs.o
LD [M] /home/alex/Download/ndiswrapper-1.54/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST 1 modules
LD [M] /home/alex/Download/ndiswrapper-1.54/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.27.12-170.2.5.fc10.x86_64'
echo /lib/modules/2.6.27.12-170.2.5.fc10.x86_64/misc
/lib/modules/2.6.27.12-170.2.5.fc10.x86_64/misc
mkdir -p /lib/modules/2.6.27.12-170.2.5.fc10.x86_64/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.27.12-170.2.5.fc10.x86_64/misc
/sbin/depmod -a 2.6.27.12-170.2.5.fc10.x86_64 -b /
make[1]: Leaving directory `/home/alex/Download/ndiswrapper-1.54/driver'
make -C utils install
make[1]: Entering directory `/home/alex/Download/ndiswrapper-1.54/utils'
install -D -m 755 loadndisdriver /sbin/loadndisdriver
install -D -m 755 ndiswrapper /usr/sbin/ndiswrapper
install -D -m 755 ndiswrapper-buginfo /usr/sbin/ndiswrapper-buginfo

NOTE: Windows driver configuration file format has changed since 1.5. You must re-install Windows drivers if they were installed before.
make[1]: Leaving directory `/home/alex/Download/ndiswrapper-1.54/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man8
install -m 644 loadndisdriver.8 /usr/share/man/man8

6. Load the new ndiswrapper module using modprobe
--------------------------------------------------
[root@localhost ndiswrapper-1.54]# modprobe ndiswrapper
[root@localhost ndiswrapper-1.54]# modprobe ndiswrapper
[root@localhost ndiswrapper-1.54]# modprobe ndiswrapper

7. Check is ndiswrapper module is successfully loaded
-----------------------------------------------------
[root@localhost ndiswrapper-1.54]# modinfo ndiswrapper
filename: /lib/modules/2.6.27.12-170.2.5.fc10.x86_64/misc/ndiswrapper.ko
license: GPL
version: 1.54
description: NDIS wrapper driver
author: ndiswrapper team
srcversion: FB4F5DE146139E5A7B80324
depends:
vermagic: 2.6.27.12-170.2.5.fc10.x86_64 SMP mod_unload
parm: if_name:Network interface name or template (default: wlan%d) (charp)
parm: proc_uid:The uid of the files created in /proc (default: 0). (int)
parm: proc_gid:The gid of the files created in /proc (default: 0). (int)
parm: debug:debug level (int)
parm: hangcheck_interval:The interval, in seconds, for checking if driver is hung. (default: 0) (int)
parm: utils_version:Compatible version of utils (read only: 1.9) (charp)
[root@localhost ndiswrapper-1.54]#

No comments:

Post a Comment