Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, and thanks for you comments, I'm glad tht you found it useful.
The most commonly used method to use external module code is to compile it after compiling the kernel, like another driver would (ALSA or videocard drivers), because you have to see if what you overwrote had or not any dependencies in the ACPI code or somewhere else in the whole source structure (and hence the error). I don't know much about this stuff, but maybe there's already patch for the SCSI RAID controller you are installing? Maybe this code has already been put together as a patch.
My recommendation as to leave the source tree in an original state would be to either execute 'make distclean' or 'make mrproper' (these will also erase your .config file), however if you have made any substitution to the sources files this will not work you'll need to re-extract the sources or in the case of the kernel you are using in Fedora, re-install the kernel-source package by rpm -e kernel-source<version> and followed by rpm -ivh kernel-source-<version>
I managed to remove the UR errors by compiling all the related modules into the kernel. Now I can successfully boot. However, I still get these errors in my dmesg:
Code:
...
agpgart: Detected an Intel i815 Chipset, but could not find the secondary device.
...
Uniform CD-ROM driver Revision: 3.12
end_request: I/O error, dev hdd, sector 0
hdd: ATAPI 32X CD-ROM CD-R/RW drive, 4096kB Cache, UDMA(33)
...
request_module: failed /sbin/modprobe -- snd-card-0. error = -16
...
HID device not claimed by input or hiddev
hid: probe of 1-1:1.2 failed with error -5
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 18 ret -32
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 18 ret -110
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 18 ret -110
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 9 ret -110
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 9 ret -110
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 9 ret -110
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 9 ret -110
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 94 ret -110
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 9 ret -32
It also says that my BIOS is too old to support APIC. Yet one of the dmesg messages says: "Found and enabled local APIC!"
Any ideas on how to fix these problems?
Also, what do I need to compile to remove that CD-R/RW drive error up there? The config help says that you no longer need ide-scsi...
I've been trying to upgrade my computer using apt (I'm running rh8 on 266 mhz amd w/30gig hd) and
when apt attempts to install packages I get these error messages:
"warning : /var/cache/apt/archives/rpm-python_4.1.1-1.8x_i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: /var/cache/apt/archives/kdelibs_6%3a3.05a-5_i386.rpm V3 DSA signature: BAD, key ID db42a60e
error: /var/cache/apt/archives/kdelibs_6%3a3.05a_5i386.rom cannot be installed
E: Sub-process /bin/rpm returned an error code (1)
and if you could... keep the explanation simple, please. thanks.
I am trying to upgrade my kernel from 2.4.20-8 to 2.6.0 using an RPM. However, every time I start that RPM it tells me that I need to install module-init-tools. I installed the module-init-tools-3.0-pre5.tar.gz successfully but I still get the message. Apparently, this module is not installing but the system tells me installation done with no errors. I tried to that with many different versions of the module-init-tools, but I get the same result. When I check the version of the module-init-tools in the system it tells me no such command. How can I solve this problem. My system is Red Hat 9.
By the way, I tried to upgrade the kernel using a tarball, but I got too many problems with sound, USB, DOS partition, etc.
Originally posted by Blackrose1 I've been trying to upgrade my computer using apt (I'm running rh8 on 266 mhz amd w/30gig hd) and
when apt attempts to install packages I get these error messages:
"warning : /var/cache/apt/archives/rpm-python_4.1.1-1.8x_i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: /var/cache/apt/archives/kdelibs_6%3a3.05a-5_i386.rpm V3 DSA signature: BAD, key ID db42a60e
error: /var/cache/apt/archives/kdelibs_6%3a3.05a_5i386.rom cannot be installed
E: Sub-process /bin/rpm returned an error code (1)
and if you could... keep the explanation simple, please. thanks.
Did you install the apt repository's GPG signature first?
Code:
# rpm --import /path/to/<GPG signature file>
If you are using freshrpms, first upgrade apt, then install synaptic and see what upgrades are available.
Originally posted by linx win I am trying to upgrade my kernel from 2.4.20-8 to 2.6.0 using an RPM. However, every time I start that RPM it tells me that I need to install module-init-tools. I installed the module-init-tools-3.0-pre5.tar.gz successfully but I still get the message. Apparently, this module is not installing but the system tells me installation done with no errors. I tried to that with many different versions of the module-init-tools, but I get the same result. When I check the version of the module-init-tools in the system it tells me no such command. How can I solve this problem. My system is Red Hat 9.
By the way, I tried to upgrade the kernel using a tarball, but I got too many problems with sound, USB, DOS partition, etc.
You did not install the package from RPM and hence it is not on the dependencies database of the RPM database, however from the very same page you got the tar.gz, there's an RPM you may use.
i have compilied 2.6.0 kernel for my red hat 9.0 linux box. there r some troubles. and i dont know how to fix it. it doesnt load ethernet card (dmfe) . i think i compilied kernel wirh wrong options. i coulndt find an option for this in configurator (make xconfig). <lsmod> nor <modprobe> doesnt work.
it says :
[root@teknik-rh9 root]# lsmod
Module Size Used by Not tainted
lsmod: QM_MODULES: Function not implemented
Originally posted by maxut enable loadable module support - checked
module unloading - checked
forced module unloading - unchecked
module versioning support - checked
automatic kernel module loading - checked
Ok, how's your modprobe.conf file looks like (you should have an entry similar to that in modules.conf regarding your ethernet card)? Maybe you did not compile the correct driver?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.