LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiling kernels 2.6.10 (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-kernels-2-6-10-a-287632/)

aufomechanic 02-08-2005 07:31 AM

Compiling kernels 2.6.10
 
I thought I would post this to help anyone else. I dont think I am a newbie but you never know. The point is this. I have been trying to get RH9 to be upgraded to 2.6.7/9/10 kernel and it has always been a nightmare module-init-tools has typically been the worst offender also make oldconfig gets allot of unreferenced symobols. I have a simple piece of advice when trying to move from 2.4 kernel to 2.6

Get the latest 2.4 kernel
unzip & untar
cp /boot/config-2.4* ./.config
where ./ is where you untared the latest 2.4
then
make oldconfig
get that kernel running
When you have that working
unzip & untar the 2.6 kernel
then do a
make oldconfig

Yes its longer and things should not be that hard but I am just doing a move to 2.6.10 and after 2 days of trying to get 2.4.20 to 2.6.10 by doing 2.4.20 -> 2.4.29 -> 2.6.10 it worked allot easier. Now I have made a disk and dont care untill I have to do it again. I am not going to detail all the problems I had, cause google has them all. If anyone thinks this is dumb advise please say so.

marghorp 02-08-2005 07:58 AM

Why would you do this? The way I do it is get the new kernel, untar it's source and run make mrproper; make gconfig; make; make modules; make modules_install; and that's it.

What problems did you encounter with your move to 2.6.10?

aufomechanic 02-08-2005 08:13 AM

Module init tools were a nightmare tried 3.0 and 3.1 follwed the make to the word but it fails and does not tell you about it. The links gets messed run it twice and all the .old get the 3.0 version. But none of that will be fixed by doing a staged upgrade. the config-2.4.20 when does as a make oldconfig on 2.6.10 will miss symbols in the .config. If you do it 2.4.20 -> 2.4.29 -> 2.6.10 then it picks up the HW config allot cleaner.


All times are GMT -5. The time now is 07:38 AM.