LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling a new kernel (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-a-new-kernel-201725/)

djgerbavore 07-06-2004 09:46 AM

compiling a new kernel
 
i compiled a new 2.6.1 kernel on a slackware box.

here were my steps;

edit lilo and makefile accordly.
make dep
make clean
make menuconfig
make bzImage
make
make install
make modules
make modules_install
then i ran a script to grab the first 512 bytes of my root partiion, and copied it to my c:\ of winXP so, i can dual boot between xp and slackware.

When i loaded my old kernel it loads fine, but when i run the new 2.6.1 kernel, it goes through a scan and say BIOS check successful; then it goes to uncompress kernel image and just hangs there, It doesn't go anywhere further. My question is why is it hanging there? Thanks in advance

MikeZila 07-06-2004 10:33 AM

I'm not sure, I've haven't ran into the need to recompile my kernel yet. (Thank the powers that be) Do you have any way of getting back to your old kernel?

djgerbavore 07-06-2004 11:37 AM

I have both kernels in lilo, and i can load the 2.4.22 kernel, but when i ran the 2.6.1 one, its hangs there and doesn't do anything.

MikeZila 07-06-2004 12:48 PM

Oh, well thats a good thing. Are you sure theres nothing special you need to pass to the kernel? Do you pass anything to your old kernel?

djgerbavore 07-07-2004 09:38 AM

no i don't pass anything to the old kernel. When the kernel tries to uncompress it just hangs. Is there anything i can do to see why it is hanging? or should i just try to compile another kernel?

citrus 07-07-2004 09:50 AM

in slackware 9.1
i allways did this

***edit my .config file for the kernel with # make menuconfig

make dep
make clean
make bzImage
make modules
make modules_install
rm /boot/System.map
cp /usr/linux/arch/i386/boot/bzImage /boot/bzImage-newkernel
cp /usr/linux/System.map /boot/System.map
****then edit the lilo.conf file accordinlly
***then run
lilo
reboot

works great for me

just make sure you select the right things in your .config file like filesystem types sound card modem/network driver etc....

djgerbavore 07-07-2004 10:21 AM

hey thanks, i'm gonna try your method when i get home from work. too bad my work doesn't use linux. I will let you know how it goes. thanks again, everyone is really helpful at this website.


Another question what is System.map?


All times are GMT -5. The time now is 07:15 PM.