LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-16-2003, 11:28 PM   #1
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Rep: Reputation: 15
New Kernel Causes Endless Rebooting


I recently recompiled my kernel in an attempt to get some peripherals working. I've recompiled it before (successfully even!) but I really don't know what I'm doing without a HOW-TO. I've never had problems before, but the new kernels I try to make won't boot up. When I try to boot with them in LILO, the screen goes black and the computer reboots.

Other than the options I choose in xconfig, there's only two things I've done differently. One is part of the different instructions I'm using---I've never before deleted the /usr/src/linux/ symlink. I don't know if I should have it or not.

I think my other change is causing the problem. Before, I used the 2.4.21-0.13mdk kernel sources. Now I'm using the 2.4.21-0.18mdk sources. I decided to use them because they're newer, but if I shouldn't use them then I won't. I downloaded them with Mandrake Update. The first time I compiled a kernel with the 0.18 sources, I didn't actually have the 0.18 kernel installed. I do now, so I don't know why these kernels won't work. Is it something to do with this release or would it just be the options I choose? (All I'm doing is adding some input/usb support.)

I appreciate everyone's help even if you're not sure. If I get a lead, I can usually figure things out.
 
Old 07-17-2003, 02:20 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Sure I could help you but the condition is that you have to tell me a little bit more(thinks like what is in stdout, log files etc)
So give me the message displayed and check the logs too and I will try.
 
Old 07-17-2003, 01:01 PM   #3
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
There's no error message at all When LILO disappears, the screen goes black and then the computer reboots.

Could you explain what information I need to show you? I've never heard of stdout and I don't know what error logs to look for.

Thanks a lot for taking the time to help me.
 
Old 07-18-2003, 02:11 AM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
stdout means standard output which is usually the moniter,so any messages that you see in the moniter (which may also be stderr the standard error) you have to tell.
The logs are in the folder /var/logs
You have to read the messages there to understand what is going on.Coz there every kernel message is stored.(in most cases,though you can turn off this thing).Lilo disappears(?) strange one that.You have to reinstall lilo after changing your kernel(golden rule that ).How can you do that?
After you have made changes in /etc/lilo.conf (I think make install does that to you automatically in new kernels),
type
lilo
in the shell
(that's it)
And I think that you should try grub,becoz you don't have to reinstall everything in grub everytime you change your kernel.
I think the command to install grub is
grub-install
(but before you do all this you have to boot your installation through the rescue floppy ,I hope you have created or
you can insert the Mandy disk 1 and use the disk as rescue disk)
 
Old 07-18-2003, 04:46 AM   #5
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 18
Just a few things you may want to check:

1. Did you rerun lilo after compiling the kernel. If you are unfamilliar with lilo, see http://www.tldp.org/HOWTO/mini/LILO.html
2. If you are using a very old pc (pre-1995), make sure that the kernel is on the first partition of your drive, and this partition is less than 528 Mb
3. Does your kernel have support for either IDE disks or SCSI disks (whatever holds your root filesystem) compiled in. This cannot be a kernel module.
4. Likewise for the ext2, ext3 or ReiserFS. Check the one that must be made, by typing 'mount', checking the line for '/'.

Hope this helps
 
Old 07-20-2003, 11:50 PM   #6
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
I think I confused you when I said that LILO disappears. After I make my selection for which kernel to boot, usually the screen goes black then stuff comes up saying
Code:
INIT: version 2.84 booting
After that things start loading one by one saying OK after each one is loaded. However, when I load one of my kernels compiled from the 2.4.21-0.18mdk source, after I choose my selection the screen goes black then the computer reboots.

I checked the messages in /var/log/kernel/. I'm not sure if there's another place to look.

This is what showed up in /var/log/kernel/errors when I booted the kernel in question:
Code:
Jul 20 23:13:03 localhost kernel: [drm:radeon_unlock] *ERROR* Process 3150 using kernel context 0
That same message shows up whenever I boot any kernel, just with a different process number.

/var/log/kernel/info:
Code:
localhost kernel: Kernel logging (proc) stopped.
localhost kernel: Kernel log daemon terminating.
That's something that doesn't show up when I boot my working kernel.

/var/log/kernel/warnings:
Code:
localhost kernel: mtrr: no MTRR for e8000000,4000000 found
localhost kernel: mtrr: no MTRR for e8000000,4000000 found
localhost kernel: nfsd: last server has exited
localhost kernel: nfsd: unexporting all filesystems
That's also stuff that doesn't show up normally.

These results always show up when I boot this kernel. Any insight about these messages would be appreciated.

Thanks for your help so far.
 
Old 07-22-2003, 11:10 PM   #7
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
Today I tried using new kernel sources---the 2.4.21-0.22mdk rpms. However, the same problem occurs. Is this most likely because of the options I am compiling? Or is it the way I am compiling it? I don't think I've changed much, except I remember having some problems with tk. I don't know what tk does---could it impact this?
 
Old 07-23-2003, 12:19 AM   #8
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
add mtrr as a module or as a part of the kernel!
Mtrr is not required but it speeds up the vga performance.
did you tried
make oldconfig;make && make modules && make modules_install
 
Old 07-23-2003, 11:33 PM   #9
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
I was pretty sure that I was using mtrr already. I recompiled anyway making sure I checked that box (no option to make it a module, but I don't think that matters). It still doesn't work. I'm going to do another compile without picking any options to see if it's actually my options that causes the problem. I'll let you know tomorrow.

I don't understand how make xconfig works. This is my method for kernel compilation. Let me know if it's faulty.
  • make mrproper
  • make xconfig
  • go through xconfig; save and exit
  • make dep && make bzImage && make modules && make modules_install
  • cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.18-my
  • cp /usr/src/linux/System.map /boot/System.map-2.4.18-my
  • mkinitrd /boot/initrd-2.4.18-my.img 2.4.18-6mdk

Thanks for your help so far. If anyone thinks of anything else, please let me know.

Last edited by Parksy; 07-23-2003 at 11:39 PM.
 
Old 07-23-2003, 11:44 PM   #10
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
everything is ok,but if you want to: after make modules_install you can try make install; which would not require the last two steps.In the latest kernels,it also automatically configures the grub.conf file too.
 
Old 07-24-2003, 01:09 PM   #11
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
I just recompiled without changing anything in xconfig. I then did the make install---it set the kernel up in LILO and it booted up correctly! I'm going to try recompiling the kernel with the options I want then doing the make install.

Thanks a lot for helping me through this. In a few hours everything might be working! :-D
 
Old 07-24-2003, 10:37 PM   #12
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
I just tried booting up the new kernel. It does the same thing. Now I'll try to figure out which option is causing the problem.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic error after rebooting new kernel image fiero Linux - General 4 07-13-2005 09:32 AM
Rebooting after kernel panic nbarraud *BSD 2 01-12-2005 09:35 PM
kernel upgrade 2.2.20 -> 2.4.26 = continuous rebooting db369 Linux - Laptop and Netbook 1 07-19-2004 03:58 PM
Kernel 2.6.0 rebooting??? zer0python Linux - General 2 12-29-2003 01:33 AM
Slack9.0 - Kernel 2.4.22 - System keeps rebooting Infje Linux - Newbie 6 10-04-2003 09:05 AM


All times are GMT -5. The time now is 11:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration