LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 08-16-2002, 11:01 PM   #1
bLaX
LQ Newbie
 
Registered: Aug 2002
Distribution: redhat 7.3, SuSe 8.0, Slackware 8.1
Posts: 14

Rep: Reputation: 0
default kernel config


Hi all, I was trying to compile kernel 2.4.19 a few times already, and ran into a few problems. The problems were that I'd choose the newly compiled kernel from lilo and the screen gets blank/black. I'm sure it was some module that was not setup properly in xconfig. I tried so many different settings and still got the blank screen. A buddy of mine suggested "make oldconfig", and that supposingly was to use my current configuration of which I was running from and of which was a good working config from the default slackware 8.1 installation. Well that didn't work. My theory is since I was "make mrproper" too many times, which makes it vanilla, something changed in the transistion. So when I ran "make oldconfig" it didn't really use the actual configuratin I was running off from. My question is lets say I installed Slackware 8.1, and most things were working fine but wanted to add extra hardware settings, and so i download 2.4.19, now what steps should I take to save my current good configuration I am running from? This may be a newbie question, but I'm not sure if I ran "make xconfig" from the 2.4.19 directory that it starts off with my current running config, so is it that setup already or should I save something or load a "x" file name of which I'm not sure what is called or where it is located.
 
Old 08-17-2002, 06:41 AM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I don't know too much about the subject, but i have doubts whether or not the /usr/src/linux/.config (the file xconfig and menuconfig generate) will work for the new kernel. I would run make menuconfig before make mrproper and "save configuration to another file" and use that as a backup. Again, i might just be talking out of my ass, so i'll be watching this thread to see the real answer
good luck
 
Old 08-17-2002, 07:26 AM   #3
bLaX
LQ Newbie
 
Registered: Aug 2002
Distribution: redhat 7.3, SuSe 8.0, Slackware 8.1
Posts: 14

Original Poster
Rep: Reputation: 0
Thanx man, I'm such a newb too with Linux, but I'm a technogeek none the less but winblows, yeah a drone basically, that was how I was paying my bills with, but since the market is not looking so great for winblows mofos, I just had to make the swith over linux to gain momentum and get back in the game. That is why for this question I want to phase out the headaches and get it down to minimum withough problems. So yeah my situation is I want to use a new kernel but also as well recompile from a good working config which I know works, for example the kernel 2418 I'm running now, works good, but missing some device/modules settings, and so I download 2419, manually do xconfig, and lilo goes black dude, make xconfig like a thousand times to phase out possibilities, but same shit still happens, mind you also that I even ran without some of the experimental shit that is there for kicks. Also purty much went Vanilla and sometimes it would work and load lilo, but problem with that is with my crap I would like to work such as usb mass storage, sound blaster live gameport, and a few other equipment aren't included in Vanilla. Tried to use oldconfig, but it didn't seem to work off the currently good working configuration, seemed it was oldconfig'in off a previous attempt at recompile, which was also not workin for me. I know this issue sounds repetitive, but I'm not sure how I would approach or phrase this in a simplier fashion. Ok so far I have done this since to phase out more headaches, I've reformatted, installed slack 8.1, now awaiting instructions on how to handle this in a way so I can back up anything, such as configs, or whatever extra files that may make this less painful for me, and then compile off these good backed up files. Any body wanna help this bastard out? LMAO. I will give your suggestions a try adam_boz.
 
Old 08-17-2002, 07:29 AM   #4
bLaX
LQ Newbie
 
Registered: Aug 2002
Distribution: redhat 7.3, SuSe 8.0, Slackware 8.1
Posts: 14

Original Poster
Rep: Reputation: 0
Oh, when I say vanilla, I mean "make mrproper". That shit my sound like the redhat release, but nah, its "make mrproper, my badz ya'll.
 
Old 08-17-2002, 07:40 AM   #5
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Valhalla ~ Vanilla, huh huh, cool.

Cool, good wording there bLaX

Anyway, the make oldconcfig, as quoted from the kernel how to:
Quote:
`make oldconfig' will attempt to configure the kernel from an old configuration file; it will run through the `make config' process for you. If you haven't ever compiled a kernel before or don't have an old config file, then you probably shouldn't do this, as you will most likely want to change the default configuration.
So, you may wanna check your /boot directory for a .config file of some sort to use. Try using the "make xconfig" command and there is a button below "save and exit" that says something about load config file, try loading the config file from your /boot directory.


Cool
 
Old 11-06-2002, 06:03 PM   #6
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
Glad to hear you are trying the switch from winblows. Tell us more about what you mean by the lilo screen goes black?

The last step of the make install program runs lilo, but if you haven't edited your /etc/lilo.conf file yet, as I always for get to, you will have to rerun it after editing lilo.conf to point to your new (and your old) kernel. Old and new b/c if the new one bombs, you want to be able to boot up the second.

It doesn't make sense to me that after recompiling the kernel, lilo stops working. When lilo starts, the pc still has no idea where the kernel is. It is only after lilo that a bum kernel will cause problems.

I think there must be another problem either in the lilo.conf file or else in the mbr. Running lilo should tell you something. Running lilo should tell you which partitions were added successfully.
 
Old 11-06-2002, 09:10 PM   #7
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
I'm not sure if this helps, but I ran into the same (?) black screen at boot the first time I reconfigured the kernel and pointed to the wrong initrd file in my lilo.config.

Steve
 
  


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
getting default kernel config dunkyb Linux - Software 3 01-08-2005 08:09 PM
Default Kernel Config Files eyebrowsoffire Linux - General 31 10-05-2004 06:12 PM
Default LILO Config spaaarky21 Mandriva 9 06-18-2004 03:51 PM
**Default Config File for Linux Kernel Problems** geogecko Linux - Software 4 02-12-2004 01:45 PM
Default kernel config pioter Slackware 3 11-19-2003 08:49 PM


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