ndiswrapper & kernel-rt = modprobe problem

How do I get ndiswrapper running under the realtime kernel? I’m using the most current version on sourceforge.

The ndiswrapper command works, itself, under the realtime kernel, but modprobing it fails.

I know nothing of ‘kernel-rt’, but
follow the ndiswrapper guide:
Ndiswrapper - openSUSE

let me reiterate - ndiswrapper works just fine under the default kernel, but it won’t work under the realtime kernel.

Any suggestions?

RandomOSUser wrote:
> let me reiterate - ndiswrapper works just fine under the default kernel,
> but it won’t work under the realtime kernel.

The kernel module needs to be rebuilt for the rt kernel. What is the
error message when modprobe’ing it fails?

Larry

I’m not at my OS desktop atm, but I know that I cannot compile ndiswrapper under the realtime kernel - it gives some kind of kernel error, like it couldn’t find the kernel version number or something like that.

When you get there, go into Yast2->software->patterns
and install ‘base development’, and then you should
be able to compile.

RandomOSUser wrote:

>
> I’m not at my OS desktop atm, but I know that I cannot compile
> ndiswrapper under the realtime kernel - it gives some kind of kernel
> error, like it couldn’t find the kernel version number or something
> like that.
>
>

Do you have the rt kernel sources installed? Do you have make, gcc,
ncurses and whatnot installed to compile programs?

If you installed the rt kernel as a package (instead of by hand), have you
performed:

cd /usr/src/linux
make cloneconfig

to set up the current kernel source with your current running configuration?

What is the error message you’re getting when trying to compile
ndiswrapper…

Loni

L R Nix
lornix@lornix.com

in the /usr/src, i have two kernels

linux-2.6.25.5-1.1-obj (default kernel)
linux-2.6.25.11-0.1-obj (realtime kernel)

but “make cloneconfig” gives the error “no rule to make target ‘cloneconfig’. Stop.”

And there is no Pattern place in YaST under the software section, and nothing in the repositories called base development.

I think more clarification is needed :\

RandomOSUser wrote:

>
> in the /usr/src, i have two kernels
>
> linux-2.6.25.5-1.1-obj (default kernel)
> linux-2.6.25.11-0.1-obj (realtime kernel)
>
> but “make cloneconfig” gives the error “no rule to make target
> ‘cloneconfig’. Stop.”
>
> And there is no Pattern place in YaST under the software section, and
> nothing in the repositories called base development.
>
> I think more clarification is needed :
>
>

Ummm, those aren’t kernels.

You need to install the kernel source code, THEN

cd /usr/src/linux
make cloneconfig

should work as expected.


L R Nix
lornix@lornix.com

ok, I’ll try that. In the meantime, this is the problem I’m having in the realtime kernel:

linux-yfyc:~ # ndiswrapper
install/manage Windows drivers for ndiswrapper

usage: ndiswrapper OPTION
-i inffile install driver described by ‘inffile’
-a devid driver use installed ‘driver’ for ‘devid’ (dangerous)
-r driver remove ‘driver’
-l list installed drivers
-m write configuration for modprobe
-ma write module alias configuration for all devices
-mi write module install configuration for all devices
-v report version information

where ‘devid’ is either PCIID or USBID of the form XXXX:XXXX,
as reported by ‘lspci -n’ or ‘lsusb’ for the card
linux-yfyc:~ # ndiswrapper -l
rt2500usb : driver installed
device (13B1:000D) present (alternate driver: rt2500usb)
linux-yfyc:~ # modprobe ndiswrapper
FATAL: Module ndiswrapper not found.
linux-yfyc:~ # ndiswrapper -v
modinfo: could not find module ndiswrapper
module version is too old!
utils version: ‘1.9’, utils version needed by module: ‘0’
module details:
modinfo: could not find module ndiswrapper

You may need to upgrade driver and/or utils to latest versions available at
NDISwrapper - Home
linux-yfyc:~ #

I was able to do the cloneconfig, but still get the same errors with ndiswrapper.

RandomOSUser wrote:

>
> ok, I’ll try that. In the meantime, this is the problem I’m having in
> the realtime kernel:
>
>> linux-yfyc:~ # ndiswrapper
>> install/manage Windows drivers for ndiswrapper
>>
>> usage: ndiswrapper OPTION
>> -i inffile install driver described by ‘inffile’
>> -a devid driver use installed ‘driver’ for ‘devid’ (dangerous)
>> -r driver remove ‘driver’
>> -l list installed drivers
>> -m write configuration for modprobe
>> -ma write module alias configuration for all devices
>> -mi write module install configuration for all devices
>> -v report version information
>>
>> where ‘devid’ is either PCIID or USBID of the form XXXX:XXXX,
>> as reported by ‘lspci -n’ or ‘lsusb’ for the card
>> linux-yfyc:~ # ndiswrapper -l
>> rt2500usb : driver installed
>> device (13B1:000D) present (alternate driver: rt2500usb)
>> linux-yfyc:~ # modprobe ndiswrapper
>> FATAL: Module ndiswrapper not found.
>> linux-yfyc:~ # ndiswrapper -v
>> modinfo: could not find module ndiswrapper
>> module version is too old!
>> utils version: ‘1.9’, utils version needed by module: ‘0’
>> module details:
>> modinfo: could not find module ndiswrapper
>>
>> You may need to upgrade driver and/or utils to latest versions
>> available at
>> ‘NDISwrapper - Home’ (http://ndiswrapper.sourceforge.net)
>> linux-yfyc:~ #
>
>

From what you’ve posted, it looks like the ndiswrapper module isn’t
installed properly. OH!..

did you run ‘depmod -a’ after installing ndiswrapper? That causes the
system to recatalog the modules… might help.

Otherwise, I’d suggest reinstalling ndiswrapper. (yeah, I know… humor me?)

Loni


L R Nix
lornix@lornix.com

I can re-compile it under the regular kernel - and it modprobes and runs just fine there.

I cannot re-compile or modprobe under the realtime kernel though >:(

here is the compile error under the realtime kernel:

master@linux-yfyc:~/drivers/ndiswrapper-1.53> make install
make -C driver install
make[1]: Entering directory `/home/master/drivers/ndiswrapper-1.53/driver'
Makefile:34: *** Cannot find kernel version in /usr/src/linux-2.6.25.11-0.1-obj/x86_64/rt, is it configured?.  Stop.
make[1]: Leaving directory `/home/master/drivers/ndiswrapper-1.53/driver'
make: *** [install] Error 2
master@linux-yfyc:~/drivers/ndiswrapper-1.53> 

On Wed, 13 Aug 2008 04:16:03 GMT
RandomOSUser <RandomOSUser@no-mx.forums.opensuse.org> wrote:

>
> here is the compile error under the realtime kernel:
>
> Code:
> --------------------
> master@linux-yfyc:~/drivers/ndiswrapper-1.53> make install
> make -C driver install
> make[1]: Entering directory `/home/master/drivers/ndiswrapper-1.53/driver’

Makefile:34: *** Cannot find kernel version
in /usr/src/linux-2.6.25.11-0.1-obj/x86_64/rt, is it configured?. Stop.
make[1]: Leaving directory `/home/master/drivers/ndiswrapper-1.53/driver’
> make: *** [install] Error 2 master@linux-yfyc:~/drivers/ndiswrapper-1.53>
>
> --------------------
>
>

When you’re trying to compile the ndiswrapper software… which kernel are
you running? The default? or -rt?

You must be currently running the kernel you wish to compile for, and the
sources must match too. Not sure where “linux-2.6.25.11-0.1-obj/x86_64/rt”
came from, but that’s not part of the kernel sources, and would not contain
anything regarding the kernel version.

(It IS part of the kernel, yes. But not the sources you require.)

Loni


L R Nix
lornix@lornix.com

i’m trying to re-compile on the rt kernel, it gives me that error. AFAIK there isn’t any kernel-rt source for x64 in the repository.

On Wed, 13 Aug 2008 05:46:03 GMT
RandomOSUser <RandomOSUser@no-mx.forums.opensuse.org> wrote:

>
> i’m trying to re-compile on the rt kernel, it gives me that error.
> AFAIK there isn’t any kernel-rt source for x64 in the repository.
>
>

It’s source code… if you compile it with a 64-bit compiler, you get 64 bit
code. If you compile it with a 32-bit compiler… you get 32 bit code.
Compile it with a powerpc compiler, you get ppc code…

There is no ‘-rt’, or ‘-default’, or ‘-pae’ source code either, it depends on
configuration options which “flavor” you end up with. Enable the realtime
options in the configuration… you get a kernel that it would be
appropriate to label “-rt”… enable the PAE options, you get a kernel, which
could be properly labelled ‘-pae’. You may call it ‘bob’ if you desire.

Install the kernel-source.

then:

cd /usr/src/linux
make cloneconfig

You will not find “kernel-source-rt”…

The ‘make cloneconfig’ command uses the CURRENTLY running kernel and
configures the source code to MATCH it. (gee… ‘clone’?). If you’re
currently running a realtime kernel, you’ll get a new realtime enabled
kernel if you were to compile it.

You need the source code for the headers and information to help modules
(ndiswrapper?) set themselves up properly to interface with the kernel.

You may need to run another command to ‘precreate’ the data needed for
ndiswrapper module.

make modules_prepare

which should set things up so software may be installed and used.

Loni


L R Nix
lornix@lornix.com

Under the realtime kernel, I did the cloneconfig and the make modules prepare, both did their thing without hitch, but ndiswrapper still gives the same kernel error when trying to compile.

I guess that the 64-bit kernel-rt sucks for these things, considering nothing has helped in getting programs to compile and run under it. I’ll install the 32-bit version (or Jacklab), apparently ndiswrpaper works there no problem.

Has anyone else gotten ndiswrapper working with the x64 realtime kernel?

Solved from here:
Nvidia drivers do not work under the realtime kernel - openSUSE Forums

Thanks again, lornix :slight_smile: