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.
Originally posted by poochie2 I think it was a binary, I did it putting the driver disk upon the installation of RH, the file was ".o" and the product page on the producer's site has some sources, but I don't know how to feed them to the kernel config files!
Is it an ITE8212 ATA-RAID card? I'm going to investigate on that one... I know you have to put the sources from the driver (for 2.6.x) in the drivers/scsi directory and compile it from there.
Quote:
Originally posted by angel_hva I had same problem last time. Then, after type:
make modules_install
Everything is fine now but my new kernel can not boot. What is wrong? Luckyly, I already make oldconfig thus Linux still can run if I choose the old kernel.
R there anybody can use your help?
Please give some more information on the error message that is printed on the screen when the kernel stops booting.
[QUOTE]Originally posted by Thetargos
[B]Is it an ITE8212 ATA-RAID card? I'm going to investigate on that one... I know you have to put the sources from the driver (for 2.6.x) in the drivers/scsi directory and compile it from there.
Not exactly, it's a Highoint htp372a ATA 133 RAID PCI card.
I found a post around here that could do for my case too, but following those directions didn't lead me to the right conclusion.
During the driver compilation I get lots of errore, and I got no clue of what can I do with it...
I copied the driverfiles to the /drivers/scsi folder, then
[root@poochie-client scsi]# make KERNELDIR=/home/poochie/kernel2.6/linux-2.6.4 ATHLON=1
...
hpt.c: In function `hpt_set_device_on_offline':
hpt.c:4791: structure has no member named `host_queue'
hpt.c:4800: structure has no member named `next'
hpt.c: At top level:
hpt.c:4824: warning: type defaults to `int' in declaration of `EXPORT_NO_SYMBOLS'
hpt.c:4824: warning: data definition has no type or storage class
hpt.c:4753: warning: `hpt_scsi_unregister_module' defined but not used
make: *** [hpt.o] Error 1
anyway trying to continue with the compilation of the kernel will result in the same old error of a missing module for the RAID device :'(
Ok, I saw a fairly larger file there for RH systems (about 8.8 Mb) I guess this is a binary only file... I tried to look around in the page also, but I could not find instructions on how to compile this driver... I'll download the tarball and see what information does it provide... Sadly this problem is beyond the scope of this thread, although it may be an example of when some HW holds you back... There's always a way, don't worry, it'll need a little bit of investigation, that's all.
Originally posted by Thetargos Ok, I saw a fairly larger file there for RH systems (about 8.8 Mb) I guess this is a binary only file... I tried to look around in the page also, but I could not find instructions on how to compile this driver... I'll download the tarball and see what information does it provide... Sadly this problem is beyond the scope of this thread, although it may be an example of when some HW holds you back... There's always a way, don't worry, it'll need a little bit of investigation, that's all.
The README in the source compressed file explains it all, it says to run
make KERNELDIR=MYKERNELDIR + various "optional options"
Ok, I just read the readme in the package... The instructions are fairly simple. Please could you post exactly what you are typing to make the module? Also I did not see any reference to 2.6.x support on these drivers, I'll try to check on the page rather than the readme.txt.
Originally posted by Thetargos Ok, I just read the readme in the package... The instructions are fairly simple. Please could you post exactly what you are typing to make the module? Also I did not see any reference to 2.6.x support on these drivers, I'll try to check on the page rather than the readme.txt.
As posted before, I try to compile the driver with:
[root@poochie-client scsi]# make KERNELDIR=/home/poochie/kernel2.6/linux-2.6.4 ATHLON=1
Just a suggestion. Try to copy the kernel sources to /usr/src/, and edit the /usr/src/linux, /lib/modules/<kernelversion>/build symlinks to point to /usr/src/linux-2.6.4 and try re-compiling... Maybe this is the problem.
Originally posted by Thetargos Just a suggestion. Try to copy the kernel sources to /usr/src/, and edit the /usr/src/linux, /lib/modules/<kernelversion>/build symlinks to point to /usr/src/linux-2.6.4 and try re-compiling... Maybe this is the problem.
Ok, did that (sorry for bothering, but I'm enjoying this stuff :] )
What about the symlinks in the build folder... how and which should I make? The folder already exists (related to the 2.6.4 kernel) but it only contains folders and files, no links...
Originally posted by poochie2 Ok, did that (sorry for bothering, but I'm enjoying this stuff :] )
What about the symlinks in the build folder... how and which should I make? The folder already exists (related to the 2.6.4 kernel) but it only contains folders and files, no links...
ooops, build itself is the symlink... I just got it... hehe
Wow, incredible... I got some progress done, but the new stop is quite upsetting:
[root@poochie-client linux-2.6.4]# 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.4/arch/i386/boot/install.sh 2.6.4 arch/i386/boot/bzImage System.map ""
No module hpt37x2 found for kernel 2.6.4
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
Is this a hint for incompatibility with the kernel? Or is it probably just complaining for not having found the needd module? I fear the first option is the one right...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.