LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-11-2006, 02:13 PM   #1
shrishailnk
Member
 
Registered: Mar 2006
Posts: 47

Rep: Reputation: 15
kernel recompilation


hello,

i have changed some part of the sched/sch_generic.c file(ie some networking code)
now i need to see the changes.

i recompiled the kernel as below

make mrproper
make oldconfig // as i dont want anything new.
make dep
make bzImage

then i copied the new image and ........
the new sys is working
BUT
lsmod doesnt show any modules
lan is also not working.

and one more thing " even if i change a single line of some src in linux code do i need to do all the steps to recompile or i can i skip some "

please help or
provide any links
 
Old 04-11-2006, 03:23 PM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
my dear friend you forgot to compile modules and then install it.
for 2.4 kernel Full procedure to compile it is=>
make mrproper
make oldconfig
make dep
make
make modules
make modules_install
make bzImage
make install
 
Old 04-11-2006, 09:59 PM   #3
shrishailnk
Member
 
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
thanks Parag

one more thing ,even if i chg a single line of linux src i need to recompile .
DO we have to follow all the above steps or can we just use a subset of those.

Can u please provide some links on how to use timers in linux.
I need to collect pkts for some amt of time.......

yesterday we got the internet connection, the operator changed the ip addr of the sys.

now the problem is,
i followed ur steps (they were the effective)
but during rebooting ,the sys will stop at " bringing up eth0"
what might be problem.
waiting for ur reply,

Last edited by shrishailnk; 04-12-2006 at 12:26 AM.
 
Old 04-12-2006, 12:44 AM   #4
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
it depends if the file u modified is being compiled as module then do
make
make modules
make modules_install
make install
if file is not modules then u can do
make
make install
 
Old 04-12-2006, 12:54 AM   #5
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
for network connection remove net cable and boot system and then try attaching net cable and restart network service
 
  


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
Get agpgart as a loadalbe kernel module, without kernel recompilation? TruongAn Linux - Software 3 03-28-2006 11:44 AM
kernel recompilation ciopi Mandriva 2 11-06-2005 04:18 AM
kernel recompilation sachin_malik Linux - Enterprise 1 05-20-2005 02:57 PM
kernel recompilation najeeb Linux - Networking 1 08-31-2003 06:09 AM
Kernel Recompilation Thomas_Delrue Linux - General 1 08-30-2001 05:11 PM


All times are GMT -5. The time now is 01:46 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration