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 |
Re: compiling kernel
Quote:
'make' and 'make modules_install' are the necessary steps. |
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 |
This is explained in README file supplied with kernel sources.
|
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 |
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. |
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. |
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:
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. |