LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-10-2006, 12:17 PM   #1
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Rep: Reputation: 15
trouble installing packages with 16k stack kernel


I have installed the 16k stack kernel from linuxant to get my wireless card to work. I had it working but it would freeze because of the 4k stack in the original kernel. Anyway, now I cannot install any packages using yum because of this kernel. I get the error that 'a newer version kernel-2.6.18-1.2849.fc6.16stk.i686 is already installed.'

Is there a way to rename the kerenel so I can use yum to install the neccessary packages that I need? I did a search on google and could not find anything.
 
Old 12-11-2006, 11:17 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
So boot with a different kernel or reduce the updates or install of new packages. You could also explain what your attempting to do with a bit more detail.

There is no easy way to rename an installed kernel, a complied kernels name is set in stone.
 
Old 12-11-2006, 09:33 PM   #3
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
I am trying to use the 16k stack kernel because my system freezes with my wireless card. So If I have the regular (4k stack) kernel on my computer with all the necessary packages that I need and I always boot the 16k stack kernel, all of those packages should work, right? I'm sorry, still trying to learn all of this. I want to make sure I understand this. So, regardless of what kernel I boot, the packages I have installed will work?
Thanks Lenard, it seems you are the only one who will answer these newbie questions.
 
Old 12-12-2006, 05:24 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Well, one way around this problem is to build a custom kernel yourself. I and many others have explained how to do this here at this forum site and other forum sites. Personally all I use are custom kernels built from the vanilla kernel sources at kernel.org, They are smaller and easy to build after you get a good working configuration which is the only hard part in the process. This is also how and where you can specify the name of the kernel somewhat.

The answer to your query, yes if you install the rpm packages using one kernel they should work just fine with another (99.99%) of the time, unless the package is built just for a specific kernel that is. You should be able to install most packages using yum except of course packages that are for a specific kernel, a lot of third party wireless packages for example only work with a specific kernel.
 
Old 12-12-2006, 11:20 AM   #5
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
Do you think I will run into problems using a pre-built kernel, or do you think I should try building a custom? I have no problem attempting to build a custom kernel. Its just when hit a dead end, it is not guaranteed that someone will walk me through the problem. This is my third fresh install because of the problems I have had. Each time the process is easier but it has been weeks, almost months of me working on this to get it working how I want. My goal at this point is to get a clean kernel running with 16k stack size so my wireless card works.
 
Old 12-12-2006, 01:55 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Unfortunately nobody can guide you through fixing a broken kernel, but building a custom kernel is not that hard if you follow the instructions. This this case you are lucky, you only need to make one change from the pre-built kernel configuration see for example;

http://www.linuxquestions.org/questi...d.php?t=503254

And you might also want to review;

http://www.digitalhermit.com/linux/K...ild-HOWTO.html

Just use the make steps I outlined in the first link above, they work very well when building kernels for the Red Hat family.

Last edited by Lenard; 12-12-2006 at 02:01 PM.
 
Old 12-12-2006, 05:04 PM   #7
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
When build the custom kernel, am I able to change the stack size to 16, or only disable the 4k stack size? It seemed like before, I was able to disable the 4k stack and still had the freezing issue.
 
Old 12-12-2006, 05:55 PM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
No, you don't understand the kernel is built without the 4k stack option just like the Linuxant kernels are built.
 
Old 12-12-2006, 06:01 PM   #9
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
Should I get the vanilla kernel from kernel.org? I am at work right now, so I can't do anything at the moment. At home my computer has no operating system on it. I have the fc6 install cd's. Where should I start?
 
Old 12-16-2006, 10:47 AM   #10
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
Any guidence on where I should start? I have the fc6 installation disks.
 
Old 12-16-2006, 02:28 PM   #11
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Thought you had a working Linux install??? If yes then extract the kernel and build according to the directions, if not install FC6 and the development tools. Then follow the links I already provided.
 
Old 12-20-2006, 02:09 AM   #12
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
ok. I did not have a working system. Since I was having so many problems with fc6, I downloaded the installation disks for fc5. I installed it, installed all the packages that I needed and downloaded the source to begin prep for a custom built kernel. I followed the instructions on the release notes, and changed the configuration a bit. Then did the
make
make modules_install
make install

Got through all that with no errors. Then I rebooted and it booted one of the other kernels that I have installed. I have three kernels installed
kernel-2.6.18-1.2239.fc5
kernel-2.6.18-1.2257.fc5
kernel-2.6.18-prep


The reason why it is called prep is because I didnt change the name before I compiled. When I was building the new kernel the 2239 one was running. After I finished the make install, I rebooted and it booted into the 2257. My /boot file contains this:

grub (folder)
lost+found (folder)
config-2.6.18-1.2239.fc5
config-2.6.18-1.2257.fc5
initrd-2.6.18-1.2239.fc5.img
initrd-2.6.18-1.2257.fc5.img
initrd-2.6.18-prep.img
System.map
System.map-2.6.18-1.2239.fc5
System.map-2.6.18-1.2257.fc5
System.map-2.6.18-prep
vmlinuz
vmlinuz-2.6.18-1.2239.fc5
vmlinuz-2.6.18-1.2257.fc5
vmlinuz-2.6.18-prep

This is what my grub.config file looks like:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hdb
default=1
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-prep)
root (hd0,1)
kernel /vmlinuz-2.6.18-prep ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-prep.img
title Fedora Core (2.6.18-1.2257.fc5)
root (hd0,1)
kernel /vmlinuz-2.6.18-1.2257.fc5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2257.fc5.img
title Fedora Core (2.6.18-1.2239.fc5)
root (hd0,1)
kernel /vmlinuz-2.6.18-1.2239.fc5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2239.fc5.img
title Other
rootnoverify (hd1,0)
chainloader +1

How do I boot the new kernel? And what do I have to edit to change the name from prep to something else?
 
Old 12-20-2006, 08:30 AM   #13
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Choose it, the custom kernel is the first one (zero in grub terms). Either press almost any key and choose the kernel or edit the /boot/grub/grub.conf file to use the default of zero (default=0)

Changing the name of the kernel needs to be done prior to building the kernel. Where the kernel source tree is located edit the Makefile at the top of the directory tree. You can just relabel the title in grub to something else if you want;

title Fedora Core (2.6.18-prep) becomes for example; title Fedora Core (Custom kernel)
 
Old 12-20-2006, 09:03 AM   #14
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Note the default=1 in your grub.conf file, telling it to default to the second entry, and the hidemenu line telling it to hide the boot menu from you.

Try changing them to
Code:
#hidemenu
default=0
 
Old 12-23-2006, 07:26 PM   #15
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
Smile

Thanks for all your help. I got my new custom kernel running just fine. One last question. Now that I have my custom kernel, I don't want to use the updates. The computer keeps bugging me that there is updates available. My computer is functioning how I want it to, there is no need for ANY updates is there? If not, how do I disable it so the computer stops reminding me?

I haven't researched this question yet, so if you don't want to give me the easy answer I understand. But, could you point me to a link?

Merry Christmas
 
  


Reply



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
Where to find a 16k stack kernel for FC5 dennern Linux - Kernel 1 08-24-2006 03:22 AM
Help installing 16K stack. ishcoleobo Linux - Software 3 07-28-2006 02:40 PM
upgrading kernel stack from 4k to 16K wahaha Linux - Newbie 6 07-16-2006 10:52 AM
16k stack kernel update source missing yahonza Linux - Wireless Networking 1 01-25-2006 05:13 PM
Is Kernel-ntfs for 16k stack available for download? mdslf Linux - General 0 08-18-2004 01:23 PM

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

All times are GMT -5. The time now is 11:53 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