Install As Stand Alone Module with Kernel 2.6
Download pwc sources
Download the file
http://www.saillard.org/linux/pwc/files/pwc-10.0.9.tar.bz2 (or the last available file on the site
http://www.saillard.org/pwc/files/)
Unpack the tar.gz
Unpack the file using the command command:
# tar xjf pwc-10.0.9.tar.bz2
Prepare the module build environment
You will need the source of your actual kernel to be installed.
In Debian, just execute this command:
# sudo apt-get install linux-headers-$(uname -r)
In Suse 10, see the exact installation procedure of pcw at
http://www.novell.com/coolsolutions/feature/16340.html
For RPM based distributions download the source RPM for the kernel you use.
Patch the module
You might need to patch the module if you have kernel 2.6.22 or higher. Applies to version pwc-10.0.12-rc1:
http://www.xs4all.nl/~carlo17/pwc/index.html
Compile the module
Compile the module
# cd pwc-10.0.9
# make
Login as root
Login as root
# su -
Remove existing old pwc module (if any)
In case an older version of the module was already installed, use the following commands to delete that module, if not go to next step.
# find /lib/modules/`uname -r`/ -name "pwc*.ko*"
# rm <name of the file.ko>
Install the new module
Copy the new modules to the old ones
# make install
or in case you want the modules installed a specific place. For example: /lib/modules/`uname -r`/{misc,extra}
# cp pwc.ko <path to the folder of original pwc.ko module>
Update module dependency and map files
# depmod -a
Unload old pwc/pwcx modules
If you already had an old version of pwc/pwcx installed you need to unload them first. You can also just simply reboot the machine. If you are not sure run the commands anyway. They will not harm anything.
# rmmod pwcx
# rmmod pwc
Load the new module
Finally load the new pwc module. Note that there is no longer any binary pwcx module to worry about. It is all in the pwc module
# modprobe pwc
--
KennethLavrsen - 11 Nov 2004