 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

21st June 2005, 11:57 AM
|
|
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
|

21st June 2005, 05:31 PM
|
|
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
|

21st June 2005, 05:41 PM
|
|
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.
|

21st June 2005, 07:08 PM
|
|
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
|

21st June 2005, 08:10 PM
|
|
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
|

21st June 2005, 11:02 PM
|
|
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.
Last edited by fsck; 21st June 2005 at 11:05 PM.
|

22nd June 2005, 03:57 AM
|
|
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.
|

24th June 2005, 09:00 AM
|
|
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
|

24th June 2005, 04:43 PM
|
|
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?
Last edited by fsck; 25th June 2005 at 08:48 PM.
|

25th June 2005, 07:57 PM
|
|
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
|

25th June 2005, 08:20 PM
|
|
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.
|

25th June 2005, 08:40 PM
|
|
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
|

25th June 2005, 08:47 PM
|
|
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.
|

29th June 2005, 04:12 PM
|
|
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
|

29th June 2005, 04:18 PM
|
|
Registered User
|
|
Join Date: May 2005
Location: London, UK
Posts: 704

|
|
|
Hurrah! Glad to help.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 09:25 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|