LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kernel recompilation (https://www.linuxquestions.org/questions/linux-general-1/kernel-recompilation-434151/)

shrishailnk 04-11-2006 01:13 PM

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

paragn 04-11-2006 02:23 PM

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

shrishailnk 04-11-2006 08:59 PM

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,

paragn 04-11-2006 11:44 PM

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

paragn 04-11-2006 11:54 PM

for network connection remove net cable and boot system and then try attaching net cable and restart network service


All times are GMT -5. The time now is 04:36 AM.