LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-24-2003, 10:14 AM   #1
Darktyco
Member
 
Registered: Aug 2003
Location: michigan
Distribution: slackware
Posts: 59

Rep: Reputation: 15
Blast, I screwed my kernel up


I was trying to install some new experimental nforce nic drivers last night, so I recompiled my kernel following the instructions in the sticky thread. All went well except I disabled some joystick stuff that in turn the sound driver needed to load, so I recompiled a second time but instead of running "make install" I just manually ran:

cp System.map /boot/System.map
cp arch/i386/bzImage /boot/vmlinuz

Now when I try to reboot I get this error when I try to boot into Linux from LILO: "Loading LinuxEBDA is big; kernel setup stack overlaps LILO second stage" and it hangs. I'm guessing where I went wrong in two places: firstlyl I didn't back up an old good entry in lilo.conf and secondly I must not have manually copied the new kernel correctly.

I booted off the Slack CD and mounted my hard-disk and tried restoring /boot/System/map and vmlinuz with known-good files from the CD but I still get the same error. I also tried to compile a new kernel right in there so I could just use make install but the make program is unable to find gcc (since root is mounted it is no longer "/") and I was unsuccessful in getting make to find it. Am I screwed or is there anything else I can try?

Last edited by Darktyco; 12-24-2003 at 10:18 AM.
 
Old 12-24-2003, 10:41 AM   #2
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Rep: Reputation: 30
Re: Blast, I screwed my kernel up

Quote:
Originally posted by Darktyco
I was trying to install some new experimental nforce nic drivers last night, so I recompiled my kernel following the instructions in the sticky thread. All went well except I disabled some joystick stuff that in turn the sound driver needed to load, so I recompiled a second time but instead of running "make install" I just manually ran:

cp System.map /boot/System.map
cp arch/i386/bzImage /boot/vmlinuz

Now when I try to reboot I get this error when I try to boot into Linux from LILO: "Loading LinuxEBDA is big; kernel setup stack overlaps LILO second stage" and it hangs. I'm guessing where I went wrong in two places: firstlyl I didn't back up an old good entry in lilo.conf and secondly I must not have manually copied the new kernel correctly.

I booted off the Slack CD and mounted my hard-disk and tried restoring /boot/System/map and vmlinuz with known-good files from the CD but I still get the same error. I also tried to compile a new kernel right in there so I could just use make install but the make program is unable to find gcc (since root is mounted it is no longer "/") and I was unsuccessful in getting make to find it. Am I screwed or is there anything else I can try?
Did you remember to run /sbin/lilo?
 
Old 12-24-2003, 10:46 AM   #3
Darktyco
Member
 
Registered: Aug 2003
Location: michigan
Distribution: slackware
Posts: 59

Original Poster
Rep: Reputation: 15
No I never ran it

I tried to run it really quick by booting off the CD, mounting, then running it, but it says something like "Don't know how to handle error 0x0008". I guess it really doesn't like to be in /mnt/tmp/sbin/. Is there anyway I can tell it that it has a new path?
 
Old 12-24-2003, 10:53 AM   #4
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Rep: Reputation: 30
Quote:
Originally posted by Darktyco
No I never ran it

I tried to run it really quick by booting off the CD, mounting, then running it, but it says something like "Don't know how to handle error 0x0008". I guess it really doesn't like to be in /mnt/tmp/sbin/. Is there anyway I can tell it that it has a new path?
I think you should be able to actually boot into your computer using the CD...you just have to specify the root partition...the slackware CD has instructions, I believe.
 
Old 12-24-2003, 01:07 PM   #5
Darktyco
Member
 
Registered: Aug 2003
Location: michigan
Distribution: slackware
Posts: 59

Original Poster
Rep: Reputation: 15
Great, that helped a lot, thanks. I was abled to correctly recompile the kernel and boot normally. However, now my usb mouse doesn't work. GPM gives an oops with a "/dev/mouse: No such device". Do you have any idea what happened?
 
Old 12-24-2003, 01:10 PM   #6
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 33
Slackware does have instructions, and they're simple enough. Just pop the CD in and enter "bare.i root=/dev/hdxx noinitrd ro" at the console, that'll usually boot fine, then make sure lilo.conf is okay and run /sbin/lilo. I had this same error about a week ago, without actually changing anything but running lilo fixed it and I was able to boot normally again.

[edit]lol I was too late [/edit]

For the gpm oops, make sure you have USB support compiled in the kernel or loaded as modules (uhci_hcd/ohci_hcd and usbcore) then try "gpm -t imps2" or just use "mouseconfig" to set up gpm correctly. *Should* work.

Last edited by [GOD]Anck; 12-24-2003 at 01:15 PM.
 
Old 12-24-2003, 01:46 PM   #7
Darktyco
Member
 
Registered: Aug 2003
Location: michigan
Distribution: slackware
Posts: 59

Original Poster
Rep: Reputation: 15
Hmmm, it looks to me as if USB support is compiled, usbcore is loaded but I can't find the other one that you suggested, where would the module be at?
 
Old 12-24-2003, 03:08 PM   #8
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Here is how my kernel is configured and my USB mouse works fine...

(*) Support for USB
(M) EHCI (USB 2.0 Support)
(M) UHCI
(*) USB Human Interface Device (full HID)
(*) HID Input Layer Support
(*) /dev/hiddev raw HID device support

The modules that need to load are...

ehci_hcd (If you have USB 2.0)
uhci_hcd



I don't think there are any other USB options that would keep the mouse from working. HTH.
 
Old 12-25-2003, 01:08 AM   #9
Darktyco
Member
 
Registered: Aug 2003
Location: michigan
Distribution: slackware
Posts: 59

Original Poster
Rep: Reputation: 15
EDIT: Well, I found out why I was getting errors on some builds and no errors on other builds. The difference is being root: when I'm root I get the weird syntax errors, if I'm logged in as a normal user things compile normally. Why is this?

Also, I have gotten the kernel compiled correctly, I just had to dig around to find that the module I needed for the nic was forcedeth and not eth0 . Also I had to load the hid module for mouse support. The only one left I can't figure out now is which sound module to load for Santa Cruz support.

Last edited by Darktyco; 12-25-2003 at 11:37 AM.
 
  


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
Having a blast with linux DropSig LinuxQuestions.org Member Intro 9 05-23-2004 10:33 PM
Slackware kernel and lilo (i screwed up) jmonolith2001 Slackware - Installation 4 04-26-2004 10:49 PM
blast! almost perfect MDK9.2 installation, no X server apu95 Linux - Newbie 1 04-18-2004 08:08 PM
Various Problems After Kernel Recompile - Keyboard Screwed, "Illegal Instructions"... johnleemk Linux - General 0 02-04-2004 11:33 PM
kernel screwed, start over zigmund555 Slackware 17 10-17-2003 07:25 PM


All times are GMT -5. The time now is 09:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration