LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-08-2005, 08:00 PM   #406
DoctorWho
LQ Newbie
 
Registered: Sep 2005
Posts: 20

Rep: Reputation: 0

Well I feel like a complete noob, perhaps I DO need to find a new guide for my kernel version and distro which is BTW

Uname-r: 2.6.11-1.14_FC3smp (Fedora3)

I got stuck at the first step

Typing 'make xconfig' or 'make menuconfig'

make xconfig
make: *** No rule to make target `xconfig'. Stop.

and I stop there
 
Old 09-08-2005, 08:04 PM   #407
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Ahh... For xconfig, (as I wrote somewhere in the tutorial for 2.6.x) you need to have the QT-devel packages. Run make menuconfig, you should have already everything required to use that (ncurses)
 
Old 09-08-2005, 08:12 PM   #408
DoctorWho
LQ Newbie
 
Registered: Sep 2005
Posts: 20

Rep: Reputation: 0
I have installed EVERY development tool I could find during the install. I maed a few aborted attempts at an install before and kept missing htis package or that so I did a re-install and just installed all development packages But typing 'make menuconfig' does the same thing

make menuconfig
make: *** No rule to make target `menuconfig'. Stop.

Somehow I feel that some basic things have been moved around in Fedor3. I have tried installing quite a few programs that wont compile becasue they cant find GTK libraries, and I know they are installed on my system as well ...
 
Old 09-08-2005, 08:15 PM   #409
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Where are you doing this? Are you under /usr/src/<kernel_version>?? Looks like you are not under the source tree
 
Old 09-08-2005, 08:28 PM   #410
DoctorWho
LQ Newbie
 
Registered: Sep 2005
Posts: 20

Rep: Reputation: 0
Thanx for bearing with me Under /usr/src there are three subdirectories

/redhat
/Linux
/ATI

I have changed to the redhat sources folder

cd /usr/src/redhat/sources but the same thing happans, I am pretty sure I have the sources in /usr/src/redhat/sources I can see a bunch of files along with some config LINUX.xxxxxx and Kernel.xxxxxxx files there which I assume to be the sources. EIther way I still get

make menuconfig
make: *** No rule to make target `menuconfig'. Stop.
 
Old 09-08-2005, 08:38 PM   #411
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Ok, please what does this command say:
Code:
ls -l /lib/modules/`uname -r`/
Of special interest there is the build entry of the output, since that should point to the source tree... Unless the kenrel modules are distributed with the kernel headers (usually found in /lib/modules/`uname -r`/build/include )

Edit: If build is not a symlink but a regular directory, you may need to compile a new kernel altogether or get the sources from the kernel-<version>.src.rpm, install that (which would go then to /usr/src/redhat/SOURCES/) and then extract the .tar.bz2 from that directory to /usr/src/:
Code:
cd /usr/src/redhat/SOURCES
tar jxf linux-2.6.11.tar.bz2 -C /usr/src/
This will create the /usr/src/linux-2.6.11 directory. Then you can apply the patches from that directory to the actual kernel in /usr/src/linux-2.6.11 by:
Code:
cd /usr/src/linux-2.6.11
patch -p1 -i /usr/src/redhat/SOURCES/<file1>.patch
The order to patch the kernel to have a Fedora patched kernel is outlined in the file kernel.spec found in /usr/src/redhat/SPECS
The file is easy to read and follow, just pay attention to what patches go first than which and apply them. Once done, copy the configuration for your architecture from the /usr/src/redhat/SOURCES/kernel/configs/<your_arch>.confg to /usr/src/linux-2.6.11/ as .config, then:
Code:
cd /usr/src/linux-2.6.11
make menuconfig
That seems like a lot, I know, but once you're in menuconfig's interface, you'll be able to modify the kernel configuration to meet your needs.

Last edited by Thetargos; 09-08-2005 at 08:45 PM.
 
Old 09-08-2005, 08:47 PM   #412
DoctorWho
LQ Newbie
 
Registered: Sep 2005
Posts: 20

Rep: Reputation: 0
OK typing that comand I get:

[root@localhost lib]# ls -l /lib/modules/`uname -r`/
total 1000
drwxr-xr-x 17 root root 4096 May 11 19:05 build
drwxr-xr-x 9 root root 4096 May 11 19:05 kernel
-rw-r--r-- 1 root root 185528 Sep 6 21:29 modules.alias
-rw-r--r-- 1 root root 69 Sep 6 21:29 modules.ccwmap
-rw-r--r-- 1 root root 225070 Sep 6 21:29 modules.dep
-rw-r--r-- 1 root root 517 Sep 6 21:29 modules.ieee1394map
-rw-r--r-- 1 root root 357 Sep 6 21:29 modules.inputmap
-rw-r--r-- 1 root root 16053 Sep 6 21:29 modules.isapnpmap
-rw-r--r-- 1 root root 160077 Sep 6 21:29 modules.pcimap
-rw-r--r-- 1 root root 86765 Sep 6 21:29 modules.symbols
-rw-r--r-- 1 root root 252865 Sep 6 21:29 modules.usbmap
 
Old 09-08-2005, 08:52 PM   #413
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Ok, build is a regular directory... So no much luck there...

If you'd ask me, I'd suggest you to compile a vanilla 2.6.12 or 2.6.11 kernel rather than trying to re-compile a Fedora kernel. You can always use your kernel's configuration, since it lives in /boot/config-<kernel>, and you'd only have to enable/disable things from there. As for any special patches, as long as you stick to the Alan Cox' patch, you'll pretty much have a native Fedora kernel... Or very close.
 
Old 09-08-2005, 09:43 PM   #414
DoctorWho
LQ Newbie
 
Registered: Sep 2005
Posts: 20

Rep: Reputation: 0
Wow this is all to much information for me, I need to digest it all. Is it really that big of an issue to re-compile a Fedora Kernel? It almost sounds like I would be better off putting the original Geforce2 card in and waiting a week or two for a paycheck and then buy an NVIDIA card, the drivers are just SO much easier to install, there is no comparision. It just gets me upset becasue ATI has great hardware and IMO superior graphic quality.....
 
Old 09-08-2005, 10:48 PM   #415
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Well, yeah. Indeed, ATi has better hardware overall, but their support for Linux is laughable at best. Even performance wise, a GeForce Ti 4600 beats the heck out of a Radeon 9500 which in theory is superior due to SM 2.0 support in hardware, not to mention that some features makes it more efficient (and has a superior T&L engine too). When softmoded to a Pro card, a 9500 should beat the heck out of Ti 4600 simply because they both would have the same amount of texture units available... At least in Windows. In Linux, however, the 9500 card just doesn't cut it. Its performance is way too slow to what it should be (again in Windows).

Anyway, enough of rants, which are off topic anyway. Regarding your problem at hand, knowing how build (or re-build) a kernel will be beneficial to you even with an nVidia card, which would mean tweaking the AGP to use NVAGP which some say is faster than AGPGART, though I've only seen that increase with nForce chipsets, which I have, for others, there's no much difference. Also to trim down a bit a kernel, and in the process you may learn a lot of how Linux works at the bare bones. Though I use Fedora mainly, my kernels are based off some (some say) quite experimental patches, which makes my PC to yield the best performance off it. Sure I've crashed my system when trying to get all working the way I want, but I think it's been worth it. At least for me. I would not advise anyone to attempt these kind of stuff as a regular basis, simply because 99.9% of the users won't need to. This kind of stuff is more for enthusiasts and those who want to learn the system inside-out.

All that exposed earlier, indeed seems like a lot, but in the end it is not that difficult... Just laborous.
 
Old 12-31-2005, 12:46 AM   #416
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 217

Rep: Reputation: 30
RPM of kernel

From where can i get the RPM for kernel 2.6 stable?? For RH8.0 and 9.0. I need the link because I have made a lot search but found nothing excepr tar files.. But i need the RPM.
 
Old 01-02-2006, 02:19 AM   #417
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
I'm not sure there are even 2.6 kernel packages for those distributions, as they require some hacks to get them to properly boot (for instance some regarding the USB keyboard and mouse devices). Your best bet would be to install a native 2.6 distribution. You can always test your luck and attempt to build a 2.6 kernel on them, be ware, you will require a lot of packages to be updated (binutils, modutils, etc)
 
Old 12-18-2006, 05:12 AM   #418
windycity_linux
Member
 
Registered: Mar 2006
Distribution: rhel 5
Posts: 74

Rep: Reputation: 15
Unhappy Error 13

this is my first try at kernel compilation and so far it has not been going well (5:00 am )

May be my issue more related to the grub config (kernel compilation went OK, no error - I have copied the vmlinux file to /boot). but when I am trying to boot to new kernel i am getting an error message,
Error 13: invalid or unsupported executable format

Is there any thing i need to do for the initrd option in grub.conf file? My understanding & I read some where that since i am putting every thing in the main kernel file or as a module i dont need a ram disk, so i delete the initrd line. does it sound ok? or is that the problem?

here is the grub.conf file, i am trying to load the 3rd one red hat test linux

default=1
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux ES (2.6.9-22.ELsmp)
root (hd1,0)
kernel /vmlinuz-2.6.9-22.ELsmp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-22.ELsmp.img
title Red Hat Enterprise Linux ES-up (2.6.9-22.EL)
root (hd1,0)
kernel /vmlinuz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-22.EL.img
title Red Hat Test LINUX (2.6.9-22.ELsmp)
root (hd1,0)
kernel /vmlinux-test ro root=LABEL=/ rhgb quiet

title Other
rootnoverify (hd0,1)
chainloader +1

here is the list of file from /boot
drwxr-xr-x 4 root root 1024 Dec 18 03:50 .
drwxr-xr-x 25 root root 4096 Dec 18 04:50 ..
-rw-r--r-- 1 root root 5824 Nov 15 2004 boot.b
-rw-r--r-- 1 root root 612 Nov 15 2004 chain.b
-rw-r--r-- 1 root root 48509 Sep 19 2005 config-2.6.9-22.EL
-rw-r--r-- 1 root root 48017 Sep 19 2005 config-2.6.9-22.ELsmp
drwxr-xr-x 2 root root 1024 Dec 18 04:47 grub
-rw-r--r-- 1 root root 490334 Dec 5 02:41 initrd-2.6.9-22.EL.img
-rw-r--r-- 1 root root 481902 Dec 5 02:41 initrd-2.6.9-22.ELsmp.img
drwx------ 2 root root 12288 Dec 4 19:56 lost+found
-rw-r--r-- 1 root root 81860 Sep 29 2004 memtest86+-1.26
-rw-r--r-- 1 root root 23108 Aug 3 2005 message
-rw-r--r-- 1 root root 21282 Aug 3 2005 message.ja
-rw-r--r-- 1 root root 640 Nov 15 2004 os2_d.b
-rw-r--r-- 1 root root 731262 Sep 19 2005 System.map-2.6.9-22.EL
-rw-r--r-- 1 root root 758606 Sep 19 2005 System.map-2.6.9-22.ELsmp
-rwxr-xr-x 1 root root 43038615 Dec 18 03:50 vmlinux-test
-rw-r--r-- 1 root root 1465064 Sep 19 2005 vmlinuz-2.6.9-22.EL
-rw-r--r-- 1 root root 1426721 Sep 19 2005 vmlinuz-2.6.9-22.ELsmp

any help is appreciated.
 
Old 12-18-2006, 05:37 PM   #419
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
You do not need to update grub manually. By issuing "make install" this will automatically update your grub entry, as the routine is part of the kernel scripts, so no need to do anything but issuing the following command (assuming everyting else is correct):

Code:
make bzImage modules modules_install install
This line will have the effect of building and installing everything, the kenrel image, the modules and then install them. That's the way I have been doing this since... seems like forever now. In any case, make install will take care of that for you.
 
Old 04-11-2007, 04:14 AM   #420
gauchy
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Rep: Reputation: 0
Angry why usb keyboard doesn't work?

hi, I recompiled Redhat9.0 with kernel-2.4.20-8,the original kernel source in Redhat9.0,the command like this:
make mrproper
make clean
make oldconfig
make dep bzImage modules modules_install install
after rebooted the computer, I chose new kernel which is 2.4.20-8custome, and it was normal until the login screen was on, the keyboard didn't work! then I can't input username and password!
also I use /boot/config-2.4.20-8 to make again, the problem is still on.my keyboard is usb interfaced.
can you tell me why?
BTW: I did nothing in make oldconfig.
thanks
 
  


Reply

Tags
howto, tutorial



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
Red Hat/Fedora ALSA mini-HowTo. Thetargos Red Hat 182 04-01-2006 12:12 PM
red hat 9 kernel compilation b0nd Linux - Newbie 1 08-11-2005 10:05 AM
Kernel compilation (2.4.25 - Red Hat) on DELL Inspiron 2650 rohitmordani Linux - Laptop and Netbook 7 04-05-2004 05:10 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM
Red Hat Update Agent for kernel updates and custom kernels SparceMatrix Linux - General 5 09-03-2002 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:05 AM.

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