Fedora Linux Support Community & Resources Center
  #1  
Old 21st June 2005, 11:57 AM
Gallan Offline
Registered User
 
Join Date: Jan 2005
Location: Finland
Posts: 253
ndiswrapper and kernel source&compile??

hello

I have read manymanymany topics and googled but I'm still stuck! I have FC3 with 2.6.11-1.27 kernel and I would like to know do that kernel support 4 or 16 stacks? I have found yes answers and no answers so what is the truth?

I have done this kind of things:

I installed kernel source and ndiswrapper and I had no errors. I found right driver to wlan card and when I type ndiswrapper -l that drivers is ok and hardware also. when I type modprobe ndiswrapper I get FATAL: Error inserting ndiswrapper (/lib/modules/2.6.10-5-686/misc/ndiswrapper.ko) invalid module format. I have tried to figure this out but my skills are limited so I'm stuck! I read ndiswrapper faq and try those steps and it seems to be ok. There is one thing: If I have 1.27 kernel source and in grub I choose kernel 1.27.stk16 can there be something wrong...I'm using different kind of kernel what my source is??is there any idea??

so I know that my problem is some how connected to kernel (maybe) but can someone tell exactly how!!??!!

and If something more is needed please ask!!
__________________
asus A3500 laptop
intel celeron m360
1 GB memory
Fedora Core 9
registered LINUX user 395221
Reply With Quote
  #2  
Old 21st June 2005, 05:31 PM
Gallan Offline
Registered User
 
Join Date: Jan 2005
Location: Finland
Posts: 253
more info

dmesg gives:

ndiswrapper: version magic '2.6.11-1.27_FC3 686 REGPARM 4KSTACKS gcc-3.4' should be '2.6.11-1.27_FC3.stk16 686 REGPARM 16KSTACKS gcc-3.4'
__________________
asus A3500 laptop
intel celeron m360
1 GB memory
Fedora Core 9
registered LINUX user 395221
Reply With Quote
  #3  
Old 21st June 2005, 05:41 PM
fsck Offline
Registered User
 
Join Date: May 2005
Location: London, UK
Posts: 704
It looks like you have the 16K stack kernel binary, but the sources are configured for 4K stacks. You must use the same sources as the binary kernel, unless you want to do some complicated playing with kernel source.
__________________
Want to get better answers? Learn to ask better questions!
fukka.co.uk for spamassassin rules and random garbage.
Reply With Quote
  #4  
Old 21st June 2005, 07:08 PM
Gallan Offline
Registered User
 
Join Date: Jan 2005
Location: Finland
Posts: 253
ok so I should find kernel sources to stk16 kernel?? do you have idea where?
__________________
asus A3500 laptop
intel celeron m360
1 GB memory
Fedora Core 9
registered LINUX user 395221
Reply With Quote
  #5  
Old 21st June 2005, 08:10 PM
Gallan Offline
Registered User
 
Join Date: Jan 2005
Location: Finland
Posts: 253
ok I searched but no luck...

I had 2.6.11-1.27_FC3 kernel and I loaded and installed source to that. then I loaded kernel-2.6.11-1.27_FC3.stk16.i686.rpm.zip and unzipped it and ran rpm -Uvh kernel.....

so I have to do something but I have no clue what!!!! HELP
__________________
asus A3500 laptop
intel celeron m360
1 GB memory
Fedora Core 9
registered LINUX user 395221
Reply With Quote
  #6  
Old 21st June 2005, 11:02 PM
fsck Offline
Registered User
 
Join Date: May 2005
Location: London, UK
Posts: 704
It's on the same page you downloaded the kernel from:

http://www.linuxant.com/driverloader...16.src.rpm.zip

Unzip it, 'rpm -Uvh' it, then (if it does not do it automatically) create a sybolink link from /lib/modules/2.6.11-1.27_FC3.stk16/build to wherever the source got installed (probably /usr/src/kernels/2.6.11-1.27_FC3.stk16)

Then try the ndiswrapper compile again.

C.
__________________
Want to get better answers? Learn to ask better questions!
fukka.co.uk for spamassassin rules and random garbage.

Last edited by fsck; 21st June 2005 at 11:05 PM.
Reply With Quote
  #7  
Old 22nd June 2005, 03:57 AM
virt@ihug.co.nz Offline
Registered User
 
Join Date: Apr 2005
Posts: 5
Is there any pre-compiled 16K kernel for Fedora Core 4??
The documentation that comes with DriverLoader, says to go to the link with FC4 in it.
Problem is, it doesn't exist.
Reply With Quote
  #8  
Old 24th June 2005, 09:00 AM
Gallan Offline
Registered User
 
Join Date: Jan 2005
Location: Finland
Posts: 253
I did what use said fsck but still when I get modinfo ndiswrapper:
[root@100 ~]# modinfo ndiswrapper
filename: /lib/modules/2.6.11-1.27_FC3.stk16/misc/ndiswrapper.ko
parmtype: if_name:charp
parm: if_name:Network interface name or template (default: wlan%d)
parmtype: proc_uid:int
parm: proc_uid:The uid of the files created in /proc (default: 0).
parmtype: proc_gid:int
parm: proc_gid:The gid of the files created in /proc (default: 0).
parmtype: hangcheck_interval:int
parmtype: debug:int
parm: debug:debug level
parm: hangcheck_interval:The interval, in seconds, for checking if driver is hung. (default: 0)
author: ndiswrapper team <ndiswrapper-general@lists.sourceforge.net>
version: 1.2
license: GPL
vermagic: 2.6.11-1.27_FC3 686 REGPARM 4KSTACKS gcc-3.4
depends:
srcversion: 4053A6C7057E345A70AB170

there is that vermagic with 4stacks!!!
__________________
asus A3500 laptop
intel celeron m360
1 GB memory
Fedora Core 9
registered LINUX user 395221
Reply With Quote
  #9  
Old 24th June 2005, 04:43 PM
fsck Offline
Registered User
 
Join Date: May 2005
Location: London, UK
Posts: 704
Ok, my bad. The source RPM provides the source tgz, a bunch of patches and the spec file. You might try the following, but read this first: "THIS IS UNTESTED, AND MAY BREAK THINGS." but it probably won't, so hey.:

Code:
rpm -Uvh kernel-2.6.11-1.27_FC3.stk16.src.rpm
rpmbuild -bp --target=i686 /usr/src/redhat/SPECS/kernel-2.6.spec
vi /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/Makefile
 + change this:
---
EXTRAVERSION = -prep
---
 + to This:
---
EXTRAVERSION = -1.27_FC3.stk16
---
cd  /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/
make include/linux/version.h
make modules
rm /lib/modules/2.6.11-1.27_FC3.stk16/build
ln -s /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/ /lib/modules/2.6.11-1.27_FC3.stk16/build
then rebuild the ndiswrapper stuff from scratch doing
Code:
make distclean 
make all KVERS=kernel-2.6.11-1.27_FC3.stk16 KSRC=/usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11
make install
That gives me:
Code:
[root@songspire ndiswrapper-1.2]# modinfo driver/ndiswrapper.ko filename:       driver/ndiswrapper.ko
parmtype:       if_name:charp
parm:           if_name:Network interface name or template (default: wlan%d)
parmtype:       proc_uid:int
parm:           proc_uid:The uid of the files created in /proc (default: 0).
parmtype:       proc_gid:int
parm:           proc_gid:The gid of the files created in /proc (default: 0).
parmtype:       hangcheck_interval:int
parmtype:       debug:int
parm:           debug:debug level
parm:           hangcheck_interval:The interval, in seconds, for checking if driver is hung. (default: 0)
author:         ndiswrapper team <ndiswrapper-general@lists.sourceforge.net>
version:        1.2
license:        GPL
vermagic:       2.6.11-1.27_FC3.stk16 686 REGPARM 16KSTACKS gcc-4.0
depends:
srcversion:     4053A6C7057E345A70AB170
Which (ignore the gcc-4.0, I'm on FC-4) should be what you are after, no?
__________________
Want to get better answers? Learn to ask better questions!
fukka.co.uk for spamassassin rules and random garbage.

Last edited by fsck; 25th June 2005 at 08:48 PM.
Reply With Quote
  #10  
Old 25th June 2005, 07:57 PM
Gallan Offline
Registered User
 
Join Date: Jan 2005
Location: Finland
Posts: 253
hello fsck!

I'm trying that now! we will see what happens! you are using fc4, is there 16 stack kernel or 4? and do you know can I remove or do I have to remove when I have installed kernel source and there comes a new kernel and I wnat to install sources to that kernel? this because I have earlier installed source to 2.6.11-1.27_FC3 so can this 16stack kernel and source mix that up?
__________________
asus A3500 laptop
intel celeron m360
1 GB memory
Fedora Core 9
registered LINUX user 395221
Reply With Quote
  #11  
Old 25th June 2005, 08:20 PM
fsck Offline
Registered User
 
Join Date: May 2005
Location: London, UK
Posts: 704
It's all 4K for FC4 at the moment, as I understandit. There is much talk about it on the boards.
As for mixing up kernels, as long as you keep the source in different directories for each kernel revision you'll be fine.
If you choose to upgrade the kernel binary, you'll have to perform the above again with the new kernel source which matches the binary. Unless the fedora maintainers get around to giving us both a 16K stack kernel and source.
__________________
Want to get better answers? Learn to ask better questions!
fukka.co.uk for spamassassin rules and random garbage.
Reply With Quote
  #12  
Old 25th June 2005, 08:40 PM
Gallan Offline
Registered User
 
Join Date: Jan 2005
Location: Finland
Posts: 253
you ask me to remove /lib/modules/2.6.11-1.27_FC3.stk16/build and now ndiswrapper doesnt find source from there!?!

I didn't know why to remove that file but...?!?!?!?
[
root@theone ndiswrapper-1.2]# make install
make -C driver install
make[1]: Entering directory `/root/ndiswrapper-1.2/driver'
Can't find kernel sources in /lib/modules/2.6.11-1.27_FC3.stk16/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.2/driver'
make: *** [install] Error 2
__________________
asus A3500 laptop
intel celeron m360
1 GB memory
Fedora Core 9
registered LINUX user 395221
Reply With Quote
  #13  
Old 25th June 2005, 08:47 PM
fsck Offline
Registered User
 
Join Date: May 2005
Location: London, UK
Posts: 704
I asked you to remove that link, and recreate it with:
Code:
ln -s /lib/modules/2.6.11-1.27_FC3.stk16/build /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/
Which was my mistake, I always get 'ln' commands the wrong way round. Please do:
Code:
rm /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/build
ln -s /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/ /lib/modules/2.6.11-1.27_FC3.stk16/build
And then do the "make install" again. If this fails, you can probably do
Code:
make install KSRC=/usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/
I've also corrected in initial post.
__________________
Want to get better answers? Learn to ask better questions!
fukka.co.uk for spamassassin rules and random garbage.
Reply With Quote
  #14  
Old 29th June 2005, 04:12 PM
Gallan Offline
Registered User
 
Join Date: Jan 2005
Location: Finland
Posts: 253
thanks fsck for your help!! you clearred some things to me! I installed FC4 and now everything is working just fine
__________________
asus A3500 laptop
intel celeron m360
1 GB memory
Fedora Core 9
registered LINUX user 395221
Reply With Quote
  #15  
Old 29th June 2005, 04:18 PM
fsck Offline
Registered User
 
Join Date: May 2005
Location: London, UK
Posts: 704
Hurrah! Glad to help.
__________________
Want to get better answers? Learn to ask better questions!
fukka.co.uk for spamassassin rules and random garbage.
Reply With Quote
Reply

Tags
kernel, ndiswrapper, sourceandcompile

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Akmods not finding kernel source (& Kernel Module size too large in Custom Compile) jbkt23 Using Fedora 27 18th July 2009 12:05 AM
ndiswrapper won't compile with 2.6.19-1.2288.fc5 kernel lavie Servers & Networking 1 19th February 2007 08:40 PM
can't compile kernel using FC6 source chostrander Using Fedora 3 13th February 2007 10:00 PM
Compile Kernel From Source RPM - Help Need ukanth Using Fedora 3 15th October 2005 10:39 AM


Current GMT-time: 15:47 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat