I had a problem with the SuSE 10.1 ndiswrapper package. The module wouldn't load. So I uninstalled the current version and retrieved the source for an older version from backup (version 1.8). The source tarball contains an ndiswrapper.spec file, so I used rpmbuild to build it.
First I installed the kernel-source and kernel-syms packages.
sudo cp ndiswrapper-<version>.tar.gz /usr/src/packages/SOURCES/
cd /usr/src/packages/SOURCES/
sudo tar xvzf ndiswrapper-<version>.tar.gz ndiswrapper.spec
mv ndiswrapper.spec ../SPECS
cd ../SPECS
sudo rpmbuild -bi ndiswrapper.spec
This will install both the ndiswrapper program and the ndiswrapper.ko kernel module.
You could also use "sudo rpmbuild -bb ndiswrapper.spec.
This will produce two RPM files in ../RPMS/<arch>/
You need to rebuild the ndiswrapper kernel module rpm when you upgrade the kernel, such as during a security update. So the rpmbuild -bb option works best for that, since you don't need to reinstall the program itself.
It might have worked to download the ndiswrapper source package, but I needed to use version 1.8 before I could download anything. And since it is working now, I didn't bother.
|