Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-10-2001, 07:08 PM   #1
Registered: Jun 2001
Location: Virginia
Distribution: Slackware,Debian,SuSE
Posts: 43

Rep: Reputation: 15

I have been using Linux for several months now, I have everything working, but there is one problem that is driving me insane....

I started with Redhat and recompiling the kernel was no problem.
I switched to Slackware 7.1. I love it. I had no problem recompiling my kernel. At first.
A few weeks ago I decided that I wanted to slim my kernel down and I recompiled it with no error messages... but it will not boot. I have even gone so far as to reinstall linux, recompile the kernel without making any changes and it still won't reboot. I can copy it to a floppy and it will boot. It seems that I must be making a very simple and blatantly obvious mistake, but after racking my brains for a long time, I haven't found out what it is.

This is the process I go through:
su root;
cd /usr/src/linux;
make xconfig;
(make appropriate changes, or even nothing at all)
(save and exit)
make dep;
make clean;
make bzImage;
mv /usr/src/linux/arch/i386/bzImage /vmlinuz-new
(make changes to /etc/lilo.conf
image = /vmlinuz-new
root = /dev/hda5
label = New )
and switch to runlevel 6....

blank screen.

What am I missing??? It seemed so easy before, what am I doing wrong now???? !!!
Old 06-10-2001, 07:20 PM   #2
LQ Newbie
Registered: Jun 2001
Posts: 17

Rep: Reputation: 0
Are you using kernel modules?? If you are then you missed 'make modules' and 'make modules_install' !! you should do this after you 'make bzImage'


Old 06-10-2001, 07:36 PM   #3
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45

after <make bzImage>...

make modules
make bzlilo (will take care of copying new image,saving old, re-initializing lilo )
make modules_install

you don't need to <make clean> until you have your kernel the way you want it. (bzImage takes much less time, the second, third, forth time thru)

you can come back days, weeks later and cd /usr/src/linux, <make clean> to rid yourself of all the cruft.
Old 06-10-2001, 07:39 PM   #4
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
You can be lazy on Slackware and other distros that don't put their kernels in /boot and do a
make bzlilo
that way it copies the kernel and calls LILO for you, one less thing to forget, mind you it doesn't make a backup profile for you...

If you were missing modules I doubt it would cause the kernel to not start at all, just some things wouldn't work. When you say you get a blank screen do you get any disk access etc? Where is LILO being installed to? The MBR? Its worth checking, although this doesn't normally give you a blank screen.

Just a few guesses.

Old 06-10-2001, 09:13 PM   #5
LQ Newbie
Registered: May 2001
Posts: 15

Rep: Reputation: 0
Also, if none of the above works ensure that when you compile your kernel you say yes to support for elf binaries. That tripped me up for a while.
Old 06-12-2001, 07:55 PM   #6
Registered: Jun 2001
Location: Virginia
Distribution: Slackware,Debian,SuSE
Posts: 43

Original Poster
Rep: Reputation: 15
Question problems with kmod???

Well after reading the numerous replies regarding 'bzlilo', I decided to go back and try it again... and it didn't work.I have looked at my lilo configuration so many times that it is forever burned into my brain... and I have been assuming that it was a lilo problem as my kernel compilation was NOT exiting with any error messages... but there wasn't anything that I could see wrong with my lilo config. Everything is as it should be.

I decided to try something else and reinstalled my source tree, yet again, on a whim... I am guessing that when I did this before I was sloppy and I THOUGHT that I hadn't changed anything, but I really had. This time I really didn't and it worked.. I then changed the config one piece at a time until something didn't work and it was kmod...

Has anyone else had any problems with this? It sounds like a nice function to have, but it is apparently what is making my kernel crash.. I am using egcs 2.91.66 on the 2.2.16 kernel. I did turn off a lot in my kernel, but I don't have much in the way of peripherals, and I read EVERY help message before turning anything off. I read kmod.txt and it did have configuration info to get it to behave in certain ways, but nothing about this. Mais c'est la vie...
Old 06-13-2001, 11:57 PM   #7
LQ Newbie
Registered: Jun 2001
Posts: 3

Rep: Reputation: 0
I've compiled and recompiled about 6 times now and am following these and other walkthru's to the letter but still get the same result. Once i boot to the new config when lilo shows up, it says decompressing kernel or something and freezes forever... no clue..

What can I be missing?

Old 06-14-2001, 02:12 AM   #8
LQ Newbie
Registered: Jun 2001
Posts: 3

Rep: Reputation: 0
Turns out that the freezing on boot was because in the 'make menuconfig' I didn't choose my processor type correctly. It's the first step and I always overlooked it.

Boots like a charm, now I can tweak it to my liking.

Hope this helps someone else out there.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DSL Kernel Wont detect Flash drive on boot, cant boot =( Javahulk Linux - General 1 03-24-2005 03:59 PM
How to keep modules/drivers across kernel recompiles and kernel versions? Pisces107 Linux - General 5 01-21-2004 09:29 PM
Kernel update boot problems, no boot loader StaticSage Red Hat 2 01-09-2004 07:05 AM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC Member Success Stories 0 08-07-2003 08:49 AM
What to do with /boot/ on dual Kernel boot? cathodion Linux - General 2 05-17-2002 12:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:41 AM.

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