Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-07-2004, 05:31 PM   #1
LQ Newbie
Registered: Dec 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Weird Rebooting Problem After Recompiling Kernel??????

I found this site while looking for answers to the problem I just had after compiling my kernel. I'm kind've new to Linux and Slackware but I have a basic understanding of how things work with Linux.

I have an old Compaq Armada 1575DM laptop I installed Slackware 10 on. Slackware works *perfect* on my machine! Install went fine until I recompiled the kernel. Actually the kernel compile process went perfect until I rebooted. Upon rebooting, my laptop now restarts itelf after the BIOS Data Check message.......repeatedly.

So I did a search and came here, read the excellent information available and wrote the steps down to (hopefully) recompile the kernel correctly this time.

Can anyone point out any mistake in this list? I'm trying to do all this from the command line (no X). I would greatly appreciatte any help given. THANKS!!!

Steps to recompile Kernel 2.4.26 in Slackware 10 after a fresh install:

01. Login As root
02. cd /usr/src/linux
03. cp .config ~/
04. rm -rf /lib/modules/2.4.26
05. make mrproper
06. cp ~/.config ./
07. make menuconfig
08. make dep && make clean bzImage modules modules_install
11. cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.26
12. del /boot/vmlinuz
13. ln -s /boot/vmlinuz-2.4.26 /boot/vmlinuz
14. cp /boot/
15. cp .config /boot/config-2.4.26
16. ln -s /boot/ /boot/
17. ln -s /boot/config-2.4.26 /boot/config
18. Edit /etc/lilo.conf
image = /boot/vmlinuz-2.4.26
root = /dev/hda1
label = Slackware-2.4.26
19. /sbin/lilo
20. Reboot System
Old 12-07-2004, 05:52 PM   #2
Registered: Jan 2004
Location: Behind You!
Distribution: Slackware 10 | SmoothWall 2.0 | FreeBSD 4.8
Posts: 56

Rep: Reputation: 15
I would suggest using the kernel compiling method here , as it does a lot of the file copying work for you and if you edit lilo.conf gives you a backup kernel to boot in the event something goes wrong.

What changes did you make to the kernel configuration when you recompiled?
Old 12-07-2004, 06:00 PM   #3
LQ Newbie
Registered: Dec 2004
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for responding! I looked at the article you suggested, I actually looked at it before my first post....I like the method, except for editing the makefile. My line of thought on this is that if I stay away from editing files and try to do as much as possible by typing simple commands, I'll be less likely to screw it up!

I didn't do too many changes to the kernel, mostly just wanted to get rid of Amatuer Radio support - stuff like that - that I'll never use and optimize it for a PII. I left anything I wasn't sure of alone.

So, with a fresh install of slack 10, will the post you linked to absolutely work? I'm going through all this trouble to make a definete list because of the long time it takes to do these things on this machine.....ancient machine.
Old 12-07-2004, 06:51 PM   #4
Registered: Jan 2004
Location: Behind You!
Distribution: Slackware 10 | SmoothWall 2.0 | FreeBSD 4.8
Posts: 56

Rep: Reputation: 15
That's the method I have always used for compiling my kernels and the only time I have had any problems has been when i have selected an incompatible option to be compiled or left out required option (like my filesystem ).
And being able to select the backup working kernel at lilo has meant no hassle in being able to get back in and try again.

The downside of this method is that if the main kernel is non working compiling again will make that main non-working kernel the backup kernel and you would then need to boot the system using a kernel from the CD.

For the first few compiles it can certainly make life a little easier by reducing the amount of hassle to get back into a working system. And if the backup works when the new kernel doesn't then it can at least give you an ide that something is wrong in the compile and you can start narrowing down what options might have caused it.

Last edited by pave_spectre; 12-07-2004 at 06:53 PM.


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
Problem on recompiling kernel satimis Linux From Scratch 13 10-23-2005 07:49 PM
Weird, high pitched noise upon rebooting. Slovak Linux - Hardware 2 11-29-2004 10:40 PM
video problem after recompiling my kernel thomyorke38 Linux - Software 1 10-26-2004 07:43 PM
Spontaneous rebooting in RH8....weird! kstarks Linux - Software 2 03-19-2004 12:28 PM
recompiling kernel goes fine, problem with make modules fritex Linux - Software 4 11-07-2002 10:17 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:14 PM.

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