LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-02-2004, 10:48 AM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
kernel-2.6 compiling not for average users


i am an average user of linux.
i know some c language, my 1st encounter of linux is from redhat version 6.2

now i am using redhat 9 but would like to upgrade my kernel from 2.4.22-8 (RH9 default) to kernel 2.6.

i have successfully compiled and installed kernel 2.4.22 for many times coz i keep reformating kernel after trying something destructive on my system.

in this long time of being linux users, i started to realize that linux is not for most desktop users because complicated and needed wide knowledge of computer inorder to really maintain it. even and expert windows users wouldnt be able to operate and maintain linux system. many terms in linux i just so alien to windows users.

i agree that linux is mature alot from the day Redhat 6.2 is.
most GUI interface are easy to use and stright forwared sometimes it is better then windows apps. there is time where i just wish that the apps can be ported ot windows but no one do that.

when it came to upgrade packages it is as easy as 123 using rpms. but many apps just dosent support rpms or rpms that support the system you have especially when there is so many distro out there. some rpms is specifically for mandrake and some for debian or redhat and etc.

when you dont get rpms you might just have to compiled yourself through source code but this is the things causes many problem espacially kernel2.6 which i compiled more then 15 times taken more 24 hour to that that.

none rpm for module-init-tools can be found so have to compile from source.

modutils has to be upgraded.

guide from migrate to kernel 2.6 wont do also. because of it i have to reformat my rh9 2 time because i messup module.conf, rc.init and etc file.

after successful compilation and installing kernel 2.6 hardware not detected became another problems. mouse wont move at all. soundcard module not loaded. trying ot load sound module using modprobe unsuccessfull so i try depmod but still wont do. ok fixed mouse module problem now usb mouse working fine after tuning the modprobe.conf file. other then this i got many services loaded with failure and error like iptable and etc.

now i conclude that just wait for distro that support the great 2.6 kernel that will takeover windows.

its not an easy task to upgrade kernel to a new version
 
Old 01-02-2004, 10:55 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Re: kernel-2.6 compiling not for average users

Quote:
Originally posted by demmylls
its not an easy task to upgrade kernel to a new version
I only consider myself an average user, no programming skills whatsoever and I had no problems compiling the latest kernel. Kernel compiles are not as hard as some seem to make them to be.

Just a word to those who have never compiled a kernel, don't let it defeat you and wait for the distro to provide the latest kernel, if you so desire and need to update your kernel.

No pun intended but I just don't agree with your thread and many of your statements you've made regarding upgrading and compiling the new kernel.

My

-trickykid
 
Old 01-02-2004, 11:16 AM   #3
johnleemk
Member
 
Registered: Sep 2003
Location: Malaysia
Distribution: Slackware 9.1
Posts: 145

Rep: Reputation: 15
I still haven't managed to compile the 2.6 kernel because make keeps on segfaulting or complaining about missing files. I even redownloaded the source, but no luck.
 
Old 01-02-2004, 11:20 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
Sure, compiling a kernel is a little more involved than tying your laces, but looking at it relatively, the changes made to the build process for 2.6 make is significantly nicer and easier than a 2.4 compile.
 
Old 01-02-2004, 11:42 AM   #5
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
i am possibly biased because my first linux distribution was LFS, i had previous unix experience though. but i see no problem compiling 2.6 if you already have experience compiling software from source and compiling the 2.4 series of kernels you just need to make sure you have backups and that you read the instructions.

if you can afford it keep a spare hard disk then you can just dump your system onto that try out anything new and if all goes well then put it back on your main hd if it doesnt then you havnt lost anything.

a few points that i would disagree with

by demmylls
in this long time of being linux users, i started to realize that linux is not for most desktop users because complicated and needed wide knowledge of computer inorder to really maintain it.

i have not yet met an operating system that needs no more than average desktop user knowledge to maintain it properly.

by demmylls
i just wish that the apps can be ported ot windows but no one do that.

most of the major apps have been ported to windows

by demmylls
because of it i have to reformat my rh9 2 time because i messup module.conf, rc.init and etc file.

why did you not backup before attempting something like this, i do some sort of backup almost every time i su(a while ago i rm -rf * in the wrong directory, im more careful now)

as tricky says if you wanna upgrade your kernel or anything else in fact then as long as you make backups nothing disasterous can happen and whatever happens you'll learn something and can share it with the community so others dont have to go through the same thing.
 
Old 01-02-2004, 12:38 PM   #6
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
by kev82
as tricky says if you wanna upgrade your kernel or anything else in fact then as long as you make backups nothing disasterous can happen and whatever happens you'll learn something and can share it with the community so others dont have to go through the same thing.
+++++++++++++++++++++++++++++++++++++++++++++++++++++

good point through this experience of compiling kernel 2.6 i learnt alot about the files related to booting and the way it really works. previously i jsut read those articles about booting but dont really know much about it.

just to tell you that eventhough modules-init-tools rpm packages descriptuan says it does the same thing that modutils do but in real world you have to upgrade your modutils and compile and install latest module-init-tools on redhat9.

try to configure your kernel in x window then bootup linux in runlevel 3 (that is non linux commad line only) then compile from there. i reboot into runlevel 3 by using startup disk by typing "inux 3" with that you'll save of 20% of compiling time.

in redhat 9 also have to upgrade procps also

and i know all the majour apps is ported and are currently porting to windows but there is still some dont (this issue isnt important to me coz i use linux more then windows. but sometime i have to use windows)

another problem of compiling from source is that there is some apps source code that dosent include descriptions about what to do and what is the minimal requirement to compile all they give is the generic compiling method.

how to upgrade an apps from that installed from rpms. should i uninstall the rpm package and then compile and install?
how about apps already installed using source code but you only get rpms upgrade. should i uninstall the old package and then install rpm?
 
Old 01-03-2004, 01:55 AM   #7
negge
LQ Newbie
 
Registered: Jan 2004
Location: Finland
Distribution: debian
Posts: 4

Rep: Reputation: 0
I have had many problems compiling the kernel. But I believe that you learn eventually if you want to. My only regret in Linux in general is the fact that I have been using it for an year more or less. I haven't had any success compiling 2.6.0, yet.

Maybe I'll wait for a decent guide. (Not Osnews for compiling 2.4.20)
 
Old 01-03-2004, 04:22 AM   #8
bb_matt
Member
 
Registered: Jan 2004
Distribution: Slackware 9.1
Posts: 35

Rep: Reputation: 15
After many hours, I've had limited success with the 2.6 kernel on SuSe 9

Eventually, it got down to compiling gcc 2.9.3 and compiling the kernel with that.

After many false starts, including setting reiser and ext3 as modules instead of compiling into the kernel, I finally got it to boot.

I still can't get hotplugging devices to work - it fails everytime and I can't find a fix for it.

I also cannot get my sound card working, possibly it's related to the above ?

I have noticed significant speed increases, noticable in Yast.

Yast used to take 20 seconds to start and each section about the same time to load, under 2.6 it zips along !

Still, there's problems with the new kernel and my system, mainly because I'm very much a Linux light-weight, so I'm back on 2.4

In fact, I'm back to RedHat 9 after a brief foray into the SuSe universe.

I'm going to attempt to compile the 2.6 kernel for RedHat 9.0 - I've seen a very useful tutorial on getting it up and running - it may of been here ?

 
Old 01-03-2004, 11:22 AM   #9
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
i also got to boot into linux kernel 2.6 but many error on loading services.
soundcard just dont work although the compiled directly into the kernel or as modules. i'm very sure that the souncard driver that i compiled is the one for my soundcard.

going thorough many trial and error just to fix USB mouse to get it work.

yes it is easy to compile kernel 2.6 but it is not easy to tweak the system to load all the neccessary modules and other stuffs.

just wait for fedora core 2.

is there anyone out there successfully running kernel 2.6 under redhat9 with no error in loading iptable, and other services without error.?
 
Old 01-04-2004, 04:42 PM   #10
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
ok, when i posted above i hadnt actually attempted a compile of 2.6 but i had compiled a few 2.5's so i did know what i was talking about, anyway ive just compiled 2.6 for myself, took me just over an hour to get everything working but heres a few things ive discovered that might help you.

by demmylls
soundcard module not loaded. trying ot load sound module using modprobe unsuccessfull so i try depmod but still wont do.

can you post the error, my sound didnt work initially - turned out the entries in /dev wernt correct even though i had used alsa in the 2.4 series perfectly fine, my sound worked after running MAKEDEV.snd in the scripts directory

by demmylls
i got many services loaded with failure and error like iptable

if you dont tell us what the services that dont work are we cant help you with them. my iptables works fine, did you compile in all the modules for the various targets you want to use? just in case its a version problem my iptables is 1.2.7a

as far as the speed increase goes booting isnt noticably faster but it boots in 11 seconds so i cant see much being shaved off that. X seems to take a little longer to load but i dont think ive configured the agp stuff in the kernel correctly yet. the only non-lightweight program i use is mozilla and it loads much faster(3x) and reacts slightly faster, also video4linux has new options cos my xawtv menu is much bigger, ive not tried videocapture yet but that will be interesting.
 
Old 01-07-2004, 11:29 AM   #11
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
actually i cant provide the error for you coz i have removed my kernel 2.6 and some error message i cant be reached such as error from the bootup message.

and about the sound error, it myself also dont know what the error is. i compiled the correct alsa sound driver but dont get sound.
 
Old 01-26-2004, 02:59 AM   #12
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
trickykid

I tried recompiling the 2.6.0 kernel more that 30 times with limited success. I lost my cdrom , sound and USB. It always tells me that I may need to install the modules-init-tools even after I installing these tools and shows a modeprop problem during the bootup. I think the problem is with the installation of the modules-init-tools. The system (Fedora in my case) does not recognize them although the installation was successful with no errors. Can you tell me how I can force them on the system?

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average kernel size after compiling aikidoist72 Slackware 4 06-07-2005 02:31 PM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 05:17 AM
Kernel 2.6.6 kernel heads up ! (Nvidia and Alcatel usb modem users) Evilone Linux - Software 0 04-18-2004 02:08 PM
Load average wrong in RH with cus kernel ckeeper Linux - General 2 06-09-2003 04:52 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 04:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration