Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th October 2004, 01:41 AM
Tru Offline
Registered User
 
Join Date: Aug 2004
Location: Boise, Idaho
Posts: 126
How To Compile A custom Kernel???

Hello, I searched around the forums a bit and didnt see anything real clear on how to compile a kernel. This would be a great How To and I know myself and many others would love to have a detailed How to with screen shots of the terminal on each step.

Could someone please post this ASAP or if no one wants to do that give me some good links. Also is compiling a kernel the same process for all distros?
Reply With Quote
  #2  
Old 12th October 2004, 04:19 AM
superbnerd
Guest
 
Posts: n/a
Here is a good tutorial for compiling a custom kernel into an rpm. This method may only work on fedora or other rpm based distros, but you can always compile and manually install the kernel if you want to learn how to do it universially.

Just so you know, compiling and configuring a kernel are different task. You have to configure it before you compile it.
Reply With Quote
  #3  
Old 12th October 2004, 04:23 AM
Tru Offline
Registered User
 
Join Date: Aug 2004
Location: Boise, Idaho
Posts: 126
ok, thank you i am reading it now.
Reply With Quote
  #4  
Old 12th October 2004, 10:10 PM
Trel Offline
Registered User
 
Join Date: Sep 2004
Posts: 188
question on compiling a kernel

I have a kernel I downloaded so I could use nvidia drivers, however this kernel doesn't support the ud whatever I need so I can view DVDs. So I guess I need to compile it myself.

This brings up the following problems
1. I don't want to lose anything it supports now
2. I don't want to add anything except the thing I need to be able to watch DVDs
3. I don't have any source for the kernel
4. I have no clue how to comile a custom kernel

Any help would be appriciated.
Reply With Quote
  #5  
Old 13th October 2004, 01:04 AM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
It's not that hard if you already have gcc (the compile) installed.

open a terminal/console window

"cd /usr/src"
"ls"
"cd yourbasickerneldirhere"
"make xconfig", (or if it's a 2.8 version kernel, then i BELIEVE that it is "make gconfig")
select the options that you want turned on.
save the configuration and exit the configuration window
"make ; make install ; make modules ; make modules_install"

If you are running grub, then just reboot, and select your new kernel when the machine comes back.
if you are running lilo, then type in "lilo", then reboot and select your new kernel when the machine comes back on.

If you are using the lilo bootloader, when you see the "lilo" prompt after rebooting, hit the tab key for a list of kernels you can boot. then type in the specific kernel that you want to boot.
Reply With Quote
  #6  
Old 13th October 2004, 01:13 AM
Trel Offline
Registered User
 
Join Date: Sep 2004
Posts: 188
I am using 2.8 but gconfig doens't work but xconfig does, however, I don't see anything about nvidia drivers.
Reply With Quote
  #7  
Old 13th October 2004, 01:48 AM
lreznick Offline
Registered User
 
Join Date: Oct 2004
Posts: 4
Trel:

You nave to go to the NVIDIA site at nvidia.com to download their latest driver. Their current version is 1.0-6111. The nv driver already available for you isn't as good as NVIDIA's. The rest of the kernel support appears to be Riva support and nForce support. I disabled Riva support for my card because NVIDIA's driver complained. (I'm using kernel 2.6.8.1 on FC2.) The driver installation package you download is a shell script.

Once you've downloaded it, you have to build it with the kernel you want to run it with built and executing. So, if you haven't already done so, configure, compile, & install your kernel and modules. Then reboot to single user or runlevel 3. NVIDIA's driver won't install if X is running.

Once rebooted in the kernel you want to run the driver with, cd to the dir where you stored the driver and run

sh NVIDIA-whatever-version-it-is

and answer the questions. You probably don't want to bother with a networking retrieval because your newly made kernel won't match anything they've got.

Once the driver is installed, edit your /etc/X11/xorg.conf. Comment out the "dri" line in the modules sectoin and change your screen section's driver to "nvidia" (The default driver is "nv" so don't use that one any more.) You can add any other relevant options from their README file, but for now, just do these changes and come back to xorg.conf later. Save it and reboot to runlevel 5.

If all works right, you'll see the NVIDIA logo screen once or twice during the startup.

If you ever remake your kernel again, you'll have to reinstall the NVIDIA driver. It links into the kernel, so all kernel changes demand that you run it again.
Reply With Quote
  #8  
Old 13th October 2004, 01:48 AM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
Just poked around a bit, it looks like NVidia offers a "binary" driver for linux kernel-2.6.

What that means is, that you need a 2.6 kernel to run their driver. But that it is NOT part of the 2.6 kernel.

So if you get a 2.6 kernel, (2.8 might??? be compatible enough), build it.

then you will have to follow the instructions for the NVidia driver. That will be a seperate task than building the kernel.

Sorry, it would be SOOOO much easier if NVidia would just add their driver to the kernel, but NOOOO...

Oh well, good luck let me know how it goes.

(also you will probably have to change your screen config "driver" definition section in the file /etc/X11/xorg.conf..)

IF I helped, please boot my reputation!
Reply With Quote
  #9  
Old 13th October 2004, 02:00 AM
Trel Offline
Registered User
 
Join Date: Sep 2004
Posts: 188
I'm still pretty much lost, I'm mostly a newbie to linux.
Reply With Quote
  #10  
Old 13th October 2004, 02:01 AM
Tru Offline
Registered User
 
Join Date: Aug 2004
Location: Boise, Idaho
Posts: 126
Goto www.fedorafaq.org and there it shows you how to use yum to install nvidia driver thats what I did and it was easy. Although I did this with the 2.6 kernel not 2.8 but its worth a try and with yum doing it, it is much easier.

Well I am about to try the kernel compile on FC2 that I am running on VMWARE well see how it goes. I will check back and say what happend.
Reply With Quote
  #11  
Old 13th October 2004, 02:22 AM
Trel Offline
Registered User
 
Join Date: Sep 2004
Posts: 188
Well actually I was confused, I have 2.6.8, I messed up when I said I had 2.8.

So hopefully I'll get it, but still when trying to compile the kernel with xconfig, I don't see anything about nvidia drivers and I'm using them now, so I know it's on my computer.
Reply With Quote
  #12  
Old 13th October 2004, 05:24 AM
Tru Offline
Registered User
 
Join Date: Aug 2004
Location: Boise, Idaho
Posts: 126
I am running FC2 on vmware on my xp box and I get thru all the steps fine until I do "make config" then I just get a bunch of errors. This could just be because of vmware, I will try tomorrow at school on my fedora box there.
Reply With Quote
  #13  
Old 13th October 2004, 07:22 AM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
I am not certain if the nvidia driver acceleration will work under vmware?.....

You are probably better off setting up a "dual boot" system, where you have a dedicated partiton for windows, and another, seperate partition for linux. Some of the low level drivers might not be compatible while running under an emulator
Reply With Quote
  #14  
Old 13th October 2004, 03:30 PM
Tru Offline
Registered User
 
Join Date: Aug 2004
Location: Boise, Idaho
Posts: 126
No, that is the other guy trying to get 3d acceleration I am just trying to compile kerenl. I did some more searching and found that instead of "make config" you have to do "make gconfig&" for the 2.6.8 kernel. I am about to try this and see if it helps, I will post back.
Reply With Quote
  #15  
Old 13th October 2004, 11:17 PM
Trel Offline
Registered User
 
Join Date: Sep 2004
Posts: 188
I get an error on the make install

make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.8-1.521/arch/i386/boot/install.sh 2.6.8-1.521custom arch/i386/boot/bzImage System.map ""
WARNING: Couldn't open directory /lib/modules/2.6.8-1.521custom: No such file or directory
FATAL: Could not open /lib/modules/2.6.8-1.521custom/modules.dep.temp for writing: No such file or directory
/lib/modules/2.6.8-1.521custom is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
Reply With Quote
Reply

Tags
compile, custom, kernel

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
Guide to Compile Custom Fedora11 Kernel? Jeff91 Using Fedora 3 12th June 2009 07:56 PM
Compile custom kernel Billybob Using Fedora 7 14th March 2005 11:21 PM
help with custom kernel compile v8s10blazer Using Fedora 3 27th December 2004 10:15 AM


Current GMT-time: 17:12 (Friday, 24-05-2013)

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