LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-04-2003, 08:24 PM   #1
tokyo-jamie
LQ Newbie
 
Registered: Aug 2003
Location: sghsg
Distribution: redcrap
Posts: 5

Rep: Reputation: 0
kernel recompile not working


hello world. this is my 1st post for this forum & since I didn`t find the `recompile-kernel` forum I am posting here.
apologies if this is the wrong place.

In general, I am trying to recompile the kernel on my redhat 9 laptop IBM because I need sound, & I chose the most recent kernel for testing 2.6 features... because it includes sound, doesn`t contain the many vulnerabilities of the 2.4 kernel, and its new & exciting. why not...you should too ( for non production systems )

So my problem is that after I perform the required software tool upgrades mentioned in the /new-kernel/ Doc/Changes file;
I then make xconfig, make clean, make bzImage, make modules & when I make modules_install; ** I see many Unresolved Dependencies, next after running /boot/mkinitrd for the new kernel to boot, the init file is only 1/2 the size of the working kernel, and also the new kernel freezes upon reboot.

Has anyone in this forum successfully recompiled the most recent kernel 2.6.0-test2 ???
.
here are the gory details...
steps for recompile...
new install on red Crap 9.0 2.4.21 kernel.
bunzip2 & tar -xvf linux-2.6.0-test2 in /opt/...
/opt/linux-2.6.0-test2/Documentation/Changes lists mimimum reqs for `tools`
9.0 requires upgrade to :

***module-init-tools 0.9.9 minimum
xfsprogs 2.1.0
quota-tools 3.0.9
oprofile 0.5.3
nfs-utils 1.0.3

************ these all meet the minimum
gcc 3.2.2
make 3.791
ld 2.13.90.0.18
util-linux 2.11y
etfsprogs 1.32
jfsutils 1.0.17
reiserfsprogs 3.6.4
pcmcia-cs 3.1.31
quota-tools 3.09
ppp 2.4.1
isdn4k-utils 3.1pre4
procps 2.0.11
nfs-utils 1.0.5

I upgraded software packages except oprofile needs to wait until after new kernel for support. I think.....

module-init-tools-0.9.12 is a bit confusing(for me). the /INSTALL section seems
to indicate that .configure make make install, can be executed per usual; but
the README file seems to indicate that the above will torch your modules.conf
This seems to be the source of confusion.

..anyway at /opt/modules-init-tools-0.9.12 I ./configure Looks ok except for WARNING message about missing script. next I do make links which takes care of the ln -s ( for f in * ), next I run make, & make install. looks good.

Now on to step 3) I do .generate-modprobe.conf /etc/modprobe.conf & see
Warning: not translating * messages on every line. So, obviously I would like to know if this is the desired output. (any feedback?___________.


5) depmod linux-2.6.0-test2 seems to work ok

now time to config the kernel & with the upgraded mkinit, hopefully will boot ;
)

********
FAQ: in the /FAQ section it makes mention of setting up an alias for sound but
doesn`t state how this is done. for instance, alias sound-slot-0, is this right?
++++++++++++++++++

While compiling kernel I see a MODPOST message:
Warning: "ip_vs_tcp_conn_listen" undefined [net/ipv4/ipvs/ip_vs.ko]

make modules_install complains about Unresolved symbols
depmod: ***Unresolved symbols in /lib/modules/2.6.0-test2/kernel/drivers

block/paride/pcd.ko /pd.ko /pg.ko /
media/radio* (i didn`t install any radio options) ???
usb/*
net/ipv4/ipvs/ip_vs.ko /ip_vs_dh.ko /ip_vs_ftp.ko
sound/core/oss/snd-pcm-oss.ko

so then, cp System.map & bzImage to /boot. run mkinitrd..
this time it is a bit larger than previously but not much ~90000 vs
14000 working initrd-2.4.20

And after updating lilo....; reboot & kernel predictably chokes.

loading 2.6-test, Uncompressing...Ok, booting the kernel...freeze
 
Old 08-04-2003, 08:34 PM   #2
tokyo-jamie
LQ Newbie
 
Registered: Aug 2003
Location: sghsg
Distribution: redcrap
Posts: 5

Original Poster
Rep: Reputation: 0
kernel - recompile

after reading the above post which is aguably way too long an obvious question might be if kernel sources are present.

rpm -qa | grep -i kernel displays the following
kernel-pcmcia
kernel-2.4.20-6
kernel-source-2.4.20-6

present but likely not neccessary.***

also note that make dep has been deprecated and is not (no longer) part of recompiling the kernel


Last edited by tokyo-jamie; 08-04-2003 at 08:47 PM.
 
Old 09-01-2003, 06:13 AM   #3
dilipm_79
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Exclamation where did you got that version of kernel???

Where did you got kernel-2.4.20-6 version of kernel whereas it comes with kernel-2.4.20-8 ??
 
Old 09-01-2003, 01:47 PM   #4
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
Welcome to LQ!

you left out "make dep"
 
Old 09-01-2003, 07:33 PM   #5
tokyo-jamie
LQ Newbie
 
Registered: Aug 2003
Location: sghsg
Distribution: redcrap
Posts: 5

Original Poster
Rep: Reputation: 0
Welcome to LQ! you left out "make dep"

hmmmmm, in accordance with your .sig I will do my best not to crush your toes... but as my post indicates *** make dep *** is no longer part of the kernel recompile process after 2.4 (smile)

In any event. 2.6.0-test4 compiles just fine...except that networking has yet to be added ; - > (for my pcmcia card).
 
Old 09-01-2003, 11:44 PM   #6
dilipm_79
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Where did you find the kernel version 2.4.20-6.rpm ??
 
Old 09-02-2003, 12:14 AM   #7
tokyo-jamie
LQ Newbie
 
Registered: Aug 2003
Location: sghsg
Distribution: redcrap
Posts: 5

Original Poster
Rep: Reputation: 0
Where did you find the kernel version 2.4.20-6.rpm ??

ask me something else. laugh. just kidding, but not really.

2.4.20-6 is the default kernel shipped with Redhat 9.

More importantly, I am wondering why you would like to know where I found " the kernel version 2.4.20-6.rpm"

I suppose the point is that unless you are are running redcrap 9 you have no use for it & also; that if you are running 9 you also have no use for it, as a recompile with something like 2.4.22 or in my case 2.4.22-ac will result in a much more harmonious computing experience. ; )

I doubt this is of any help to you, but your question is sort of vague.

smile.
 
Old 09-02-2003, 12:27 AM   #8
dilipm_79
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Question

Hi,

when i installed Redhat-9,i got kernel version kernel-2.4.20-8 !!!!!!!

-----------
dev-machine /home/dilipm > more /etc/redhat-release
Red Hat Linux release 9 (Shrike
-----------
dev-machine /home/dilipm > uname -a
Linux Alladin.india.bristol.com 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
-------------
dev-machine /home/dilipm > rpm -qa|grep kernel
kernel-pcmcia-cs-3.1.31-13
kernel-source-2.4.20-8
kernel-2.4.20-8
--------------
 
Old 09-02-2003, 09:35 PM   #9
tokyo-jamie
LQ Newbie
 
Registered: Aug 2003
Location: sghsg
Distribution: redcrap
Posts: 5

Original Poster
Rep: Reputation: 0
ok. and? smile...

so if you want to be kewl then recompile the kernel by going to
www.kernel.org

get the stable kernel, stick it in /usr/src & create a link
ln -s linux-2.4.22 linux

this creates a link, which is probably unneccessary if you compile at the /usr/src location but potentially critical if you compile someplace else like /opt

anyway, read all the docs and have fun...

my advice is that you also install qt, so that when it comes time to do make xconfig you can check out the meaning of each variable. make menuconfig won`t do this for you.

so pick out the drivers you need, leave the ones you don`t, this will shrink down your kernel and thus result in a more speedy machine...potentially.

In any event, it is fun......in a very perverse & geeky sort of way.
 
  


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
Trying to recompile kernel but config's not working. SonicGT Linux - Newbie 11 08-25-2005 08:01 PM
get USB stick working - recompile kernel?? ditch* Linux - Newbie 8 08-02-2005 04:16 AM
Syanptics touchpad not working after recompile of kernel microsoft/linux Linux - Laptop and Netbook 13 02-18-2005 09:23 AM
Modem not working after kernel recompile blk96gt Slackware 3 07-28-2004 02:47 PM
Mouse not working after kernel recompile. phekno Linux - Newbie 2 12-03-2003 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration