LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-31-2005, 08:56 AM   #1
nathanmoorehead
LQ Newbie
 
Registered: Mar 2005
Location: Vegas baby!
Distribution: Suse 9.1 Personal
Posts: 22

Rep: Reputation: 15
4Kstack to 12Kstack, found patch but how?


Ok so I just installed ndiswrapper-1.1 and got my wireless connection setup (goodie this didn't event try to work right in RH9 all kinds of stupid errors)

I went to activate my connection and BAM locked up system. Ok, so I saw a warning about this in the make/make install of ndiswrapper, how do I fix it?

I found information about a patch in their wiki at sourceforge and located the patch on Linuxant's website. The patch should up the kernel stack from 4K to 12K allowing drivers to work properly (this is a quote from the wiki for ndiswrapper)

"If you are using 2.6 kernels, make sure 4K stacks are not used (i.e., disable CONFIG_4KSTACKS). (Q: Is this a cause of system freezes? A: On the Webpage of the commercial Linuxant Driverloader I found the information that even with 8kb (=4k off) the system may freeze because some Windows-Drivers (in particular for the Intel BG 2200) needs 12kb. On their Webpage they are offering a 12k patch for the 2.6.7-kernel.) Note that Fedora kernels actually disable this option, so you won't see it in kernel configuration, so if you are using Fedora kernel, you should either get the patch from Linuxant or compile a vanilla kernel without 4K stacks."

Ok, so how do I install this patch?

What angers me the most out of all this is that Fedora refuses to include kernel source!!!

I have the 2.6.9-1.667 kernel, the patch I am referring to is located here: http://www.linuxant.com/driverloader.../downloads.php

A little more than half way through that page, I quote

"Note about kernel stack size: Because some Windows drivers (notably for Intel Centrino cards) require at least 12K of stack to operate properly and the default Linux kernel stack size is a little less than 8K (4K on Fedora Core 2, 3 and some other 2.6 kernels), we recommend using a kernel with a larger stack size if you experience problems or crashes. Fedora Core 2 or 3 users can download one of our replacement "stk16" kernels provided through the distribution-specific links above. Advanced users may alternatively rebuild a custom kernel without the CONFIG_4KSTACKS option. A generic kernel patch adding CONFIG_16KSTACKS support is also available for 2.6.7, 2.6.8[.1], 2.6.9, 2.6.10 and 2.6.11."

And the exact link to my specific patch is here: http://www.linuxant.com/driverloader...6kstacks.patch

I don't know how to patch a kernel, so any instructions on how to do this would be great. I already installed the kernel-2.6.9-1.667.src.rpm and "issued the following command rpmbuild -bp --target=i586 kernel-2.6.spec"which worked! (but because of my own filename adapting skills, because the instructions in the release notes for FC3 are a little wrong. You have to add -2.6 to a filename or else this doesn't work)

Why couldn't FC3 just put the kernel source in the /usr/src/kernel directory just like suse 9.2 did? why? WHY!? Why do they have to be so damned difficult!

My system is this:

Fedora Core 3 with dual boot Windows XP (thankyou NTFSResize!)
PCChips M800 Motherboard
AMD Athlon 750 CPU (i586)
512 MB SDRam
Western Digital WD400 40GB EIDE hard drive

and as a side note, the reason for not using different distros is this:

Redhat - getting old (things don't work like they should) and too commercial for my taste
Slackware - people say this is advanced, and I don't think I am ready for that
Mandrake - too commercial
Debian - same as slack
Suse - A tad bloated and 1 step too babying (I am a newbie but not that new)

Fedora seams just right for me, I like it and I really want this patch 4/12K to get squared away.
 
Old 03-31-2005, 10:21 AM   #2
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
The source for each kernel is available in rpm format at download.fedora.redhat.com. You can also configure up2date to download the source whenever it updates. The 16k kernel patch you have I have never used - i download the whole thing from linuxant and use that instead by just rpm -ivh kernel*
or however you want to install it. Reboot and it should automatically select the new kernel. You might however find that choosing a different driver solves your problem as that is what was causing my lock ups. Check the ndiswrapper card list at their wiki to find a tried and tested one.
Regards
Chris

Link for source just in case you want it:

http://download.fedora.redhat.com/pu...-1.667.src.rpm

Ah, just re-read and see you got it. Well heres the link for the full recompiled 16k kernels from linuxant.
http://www.linuxant.com/driverloader.../downloads.php

Last edited by snecklifter; 03-31-2005 at 10:27 AM.
 
Old 03-31-2005, 12:27 PM   #3
nathanmoorehead
LQ Newbie
 
Registered: Mar 2005
Location: Vegas baby!
Distribution: Suse 9.1 Personal
Posts: 22

Original Poster
Rep: Reputation: 15
WOW!

Thanks man, you ROCK!

I can't believe they recompile the entire kernel just for me...how nice!

Wow, lifesaver!

p.s. I use the net5211.inf for my Atheros card, which is on the list with the same pci number and everything.
 
Old 03-31-2005, 12:32 PM   #4
nathanmoorehead
LQ Newbie
 
Registered: Mar 2005
Location: Vegas baby!
Distribution: Suse 9.1 Personal
Posts: 22

Original Poster
Rep: Reputation: 15
For anyone else...

If you have an i586 cpu and have the same stack size problem as me, here is the exact link to the new recompiled kernels from linuxant.

http://www.linuxant.com/driverloader...ernel-i586.php

These saved me hours...thanks Chris you rock!

p.s. I am reformatting and reinstalling FC3, because I think I messed something up already (I do this often)
 
Old 03-31-2005, 01:29 PM   #5
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
[bashful]
awww, twernt nuthin'
[/bashful]

Did it work though? Keep me posted...
 
Old 03-31-2005, 02:55 PM   #6
nathanmoorehead
LQ Newbie
 
Registered: Mar 2005
Location: Vegas baby!
Distribution: Suse 9.1 Personal
Posts: 22

Original Poster
Rep: Reputation: 15
Yep, sure did

Yes, the new kernel does work. and how easy it was! All I had to do was rpm -i the thing and bam, my system auto installed and booted with the new kernel.

Also, as soon as I typed ifconfig wlan0 up, guess what? no freeze! YEAH!!!

My new problem is with ndiswrapper itself, but that is for a different forum hehe.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
8kSTACK vs 4KSTACK in kernel - how to determine? jmattclark Linux - Software 1 09-24-2004 10:17 PM
patch: command not found vman33197 Linux From Scratch 2 09-22-2004 09:15 AM
rpm error-> patch: command not found Bosnja Linux - Software 5 01-30-2004 12:59 PM
is there a patch for kernel flaw found in Debian ergo_sum Linux - Newbie 3 12-02-2003 11:15 AM
6.14.2 glibc installation - patch command not found itsjustme Linux From Scratch 4 07-23-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration