LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling kernel (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-kernel-374724/)

LAdProg2005 10-19-2005 12:49 PM

compiling kernel
 
I am trying to compile kernel (as a first timer) and i having problems with the make modules. I am compiling new kernel because i need ipvs to use ipvsadm. while running make modules i get this error:

drivers/scsi/qla2xxx/qla_os.c: In function `qla2x00_queuecommand':
drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining failed in call to 'qla2x00_callback': function not considered for inlining
drivers/scsi/qla2xxx/qla_os.c:269: sorry, unimplemented: called from here
drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining failed in call to 'qla2x00_callback': function not considered for inlining
drivers/scsi/qla2xxx/qla_os.c:269: sorry, unimplemented: called from here
make[3]: *** [drivers/scsi/qla2xxx/qla_os.o] Error 1
make[2]: *** [drivers/scsi/qla2xxx] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2


any idea how might i fix this. i am compiling kernel 2.6.9 patched with hidden 2.6.9-1.diff.
i did change some of the network configuration that is used for ipvs...i don't know y drivers are being affected. please help...

pooja

Emerson 10-19-2005 02:10 PM

Re: compiling kernel
 
Quote:

Originally posted by LAdProg2005
I am trying to compile kernel (as a first timer) and i having problems with the make modules. I am compiling new kernel because i need ipvs to use ipvsadm. while running make modules i get this error:
---
pooja
And why are you running make modules with 2.6 kernel?
'make' and 'make modules_install' are the necessary steps.

LAdProg2005 10-19-2005 02:29 PM

Uh...you see I was following the LVS-HOWTO on linuxvirtualserver.org and it says to do that...now i understand that it directions were per 2.4.x kernel but it doesn't say for 2.6.x kernel....so i figured i am suppose to do that step. it would be great if you can give me a website that gives correct directions to compile the 2.6.x kernel or yourself ...either way it would be great. it is my first time compiling kernel other than provided one so i am having a bit of hard time.


thank you
--p

Emerson 10-19-2005 02:36 PM

This is explained in README file supplied with kernel sources.

LAdProg2005 10-19-2005 02:55 PM

thanks, the commands are not too obvious but looking around and getting to kknow it better did help.

even when i just do MAKE it gives me the SAME ABOVE MENTIONED ERROR

i was also wondering: on lvs website it says that the newest kernel comes patched with ipvs and so there is need of ipvsadm.gz package.

in the installation instructions it says to compile kernel with ipvs and once set boot into the new kernel and then make install ipvsadm to make it work.

but if the kernel already comes with ipvs patch then do we just skip to adding the new kernel to the grub.conf and boot into it? or do i have to go about compiling the kernel and everything before i boot into it.

above that what i am concerned is that i am running centos linux with kernel 2.6.9-22.EL so i am assuming ipvs is already there (when i run locate ipvs it gives me bunch of files which makes me think that ipvs is there already)and i just need to make install ipvsadm without having to go through compiling kernel by hand. am i right to make that assumption?

--p

foo_bar_foo 10-20-2005 01:56 AM

you have to make sure you don't enable experimental modules that are likely to not compile also
sometimes those are likely to not compile.

Electro 10-20-2005 03:34 AM

Use 2.6.12 or the latest stable version. 2.6.9 is old and permissions for CD/DVD recordable drives are set to restricted for users except by root.

To compile 2.6.x kernels:
1) make && make modules_install
2) Copy System.map to /boot
3) Copy bzImage from arch/i386/boot to /boot
4) Use mkinitrd to make a ramdisk file of the new kernel version (this is require)
5) Edit your boot loader config file

I configured and compiled the kernel so much that I can compile the kernel in my sleep.

Below are howto links. I prefer single page because it is a lot easier to read in a web browser.
Single Howto page on LVM - http://www.ibiblio.org/pub/Linux/doc...LVM-HOWTO.html
Multi Howto page on LVM - http://www.tldp.org/HOWTO/LVM-HOWTO/index.html

I have not yet setup LVM, but I think I accidently enabled device mapper support while I was in REM sleep.

LAdProg2005 10-20-2005 09:38 AM

Yep, I made sure the experimental modules are not enable.

does it matter where the kernel is extracted? i mean it is ok to not go about doing this in /usr/src?

Quote:

To compile 2.6.x kernels:
1) make && make modules_install
2) Copy System.map to /boot
3) Copy bzImage from arch/i386/boot to /boot
4) Use mkinitrd to make a ramdisk file of the new kernel version (this is require)
5) Edit your boot loader config file
oh..exactly how do you do #4 just run mkinitrd or u have to suggest a path?


ok but u see with lvs you have to set up little different configuration mostly to enable lvs-load balancing and all the good stuff. this happens when you run 'make menuconfig'. this step is not there. that is y i am so confused.

after this when i run make it gives the devices error :( anyway, i don't know if setting up lvm would fix anything. is it related to the drivers error?
thanks for a little run-down...-p


All times are GMT -5. The time now is 09:07 PM.