LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-11-2011, 10:58 AM   #1
Krystah
Member
 
Registered: Feb 2011
Posts: 36

Rep: Reputation: 0
Learning the art of kernel upgrades (Blank screen


Hello there. I am a fresh convert, and have had approximately 2 weeks of experience with Slackware
(or Linux itself, for that matter). However, I've managed, with quite a bit of assistance, to learn some simple stuff.
Like installing drivers and applications from source, install / upgrade packages, setup WiFi, and some other stuff.

But the real nut here for me, that, in these 2 weeks, has broken my system twice, and forced me to start over, is kernel upgrades.

I have upgraded my kernel using the following links: Guide 1 Guide 2

I followed each of the guides pretty accurately, only doing changes that I found necessary for my 64-bit system to accept it,
using correct versions etc, nothing big here, I think.

However, the main and only problem I've had so far, is that after a (seemingly) successful upgrade, I try to restart my system,
choose the new Kernel in lilo, but then it keeps working for approximately 5-10 seconds, then gives me a blank screen.
This is the case with both guides

What bugs me is that both guides have been rather painless, but when it comes to the configuration of the kernel itself,
I feel like an elephant in a glass house. I now assume that there is no "completely correct" way to configure the kernel,
as it has to be custom-tailored to your system, but could anyone please give me a pointer to what might cause this blank screen issue?
I'm ready to dedicate alot of time into upgrading a kernel and getting it good, but I need some pointers along the way.

What is the key elements to a good / successful kernel upgrade?

NB: I have heard that upgrading kernel via slackpkg is a bad idea. Is that still the case (and why)?

Thanks in advance.

Krystah


Some quick specs:

GPU: IntelŪ Graphics Media Accelerator 4500M
CPU: IntelŪ PentiumŪ mobile processor T4200
Chipset: Mobile IntelŪ GL40 Express Chipset
 
Old 02-11-2011, 12:31 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
In /etc/lilo.conf make sure to have 'vga = normal', then run 'lilo' as root.
 
Old 02-11-2011, 01:35 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Start over using the kernel you had when you installed.
For your first kernel compile, don't change *anything*. Be sure the kernel sources are installed the same version as you are running. Then cd into the top-level of the sources the link /usr/src/linux should point to the correct full version.
1. Once in there, run the command zcat /proc/config.gz > .config
What that does is copy the exact kernel options you are running into the config file fore the kernel you are about to build.
2. run 'make old_config' which uses that .config file to setup the sources for compiling
3. then start looking at the guides -maybe.
4. run 'make bzImage' to build the kernel itself
4a. do *not* run 'make install'
5. run 'make modules' to build the models
5a. do *not* run 'make mofules_install'
6. follow one of your guides to manually copy your new kernel(bzImage), System.map and the .config file into your /boot directory. USe a slackware-specific guide. You'll want to name these three files conveniently -I'd use something like vmlinuz-2.6.??.??-mine (for the bzImage), then System.map-2.6.??.??-mine and 2.6.??.??-mine.config (for the .config file)
7. once those are manually installed, change the name of the existing kernel modules directory: /lib/modules/2.6.??.?? (should be the exact version you are running, right? add '-old' to the original name.
8. Now, from the toplevel of the compiled kernel sources run 'make modules_install' -that should give you a new directory /lib/modules/2.6.??.??
9. open up /etc/lilo.conf and make a copy of the entry for the running kernel, but add the '-mine' part onto the name of the kernel.
10. run 'lilo' to re-write the MBR
Reboot and choose your new kernel - the one with the '-mine' suffix
11. Now that you've seen how a successful compile and install goes, feel much more confident as you start fooling around with removing or adding options -but do it very slowly -recompiling, installing, running lilo and rebooting each time to avoid confusing breakages. Each time you remove or change an option *write it down on paper*, so if when you try to boot that new kernel and it fails you'll know what broke it. Add that option back and go fishing for more stuff to add or remove.
Lotta trouble this way, but less than any other way -except for using the stock kernels.
 
1 members found this post helpful.
Old 02-11-2011, 02:10 PM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
I seem to remember Pat mentioning a problem with Intel graphics in a recent Slackware release. Perhaps it was in the README.
 
Old 02-11-2011, 02:42 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I don't have much more advice to offer than Gnashley's. That's the way I do my kernels and tend to name them for the target machine (I build packages for them on another box usually) like vmlinuz-2.6.x.x-jabberwok, and the config and System.map the same way.

The biggest thing that can wreak havock is not keeping the old, original kernel installed and in lilo.conf as a backup.

Usual causes for kernel panic are no ramdisk support and not compiling in filesystem drivers (unless you make an initrd and put fs driver modules in that).

The blank screen could be caused by several things but so long as you have the old config of a working kernel to look at you can usually find the issue.
 
Old 02-11-2011, 02:48 PM   #6
Krystah
Member
 
Registered: Feb 2011
Posts: 36

Original Poster
Rep: Reputation: 0
Thanks guys. I will try H_TeXMeX_H's advice now, as I have seen that specific advice on many different forums. I will report back asap!
 
Old 02-11-2011, 04:45 PM   #7
Krystah
Member
 
Registered: Feb 2011
Posts: 36

Original Poster
Rep: Reputation: 0
I just attempted booting into the new kernel, having ucommented "vga = normal" in /etc/lilo.conf and ran lilo after. It still gives me the blank screen, and as earlier,
the entire upgrade process went smooth until now, no errors. Luckily, I saved my old configuration this time, so I could safely boot back into my old config.

Now, where should I start looking? The only shot I've had so far is uncommenting the vga = normal line in lilo.conf, apart from that, I'm clueless. Any pointers? =|

Krys
 
Old 02-11-2011, 04:54 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Which graphics card do you have?
Check the old configuration to see what support was in it for that card (including things like agp module, card drivers, framebuffer console, kms etc).
Apply same settings in new kernel configuration.
Rinse and repeat.
 
Old 02-11-2011, 04:57 PM   #9
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
Are you using Slackware 13.1 x64?
Which kernel version are you trying to upgrade to? Where did you get it?
How did you create .config for the new kernel?
 
Old 02-11-2011, 04:59 PM   #10
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
By the way, you should also have commented out the old vga= setting in lilo.conf.
 
Old 02-11-2011, 05:28 PM   #11
Krystah
Member
 
Registered: Feb 2011
Posts: 36

Original Poster
Rep: Reputation: 0
Heya! I'm using the latest stable kernel from kernel.org, and I am indeed using Slackware 13.1 64-bit.

I just tried booting into the "non-working" version, and tried carefully typing root and the password, then startx, and judging by the reaction on the machine, it sounded like it worked perfectly, especially since it reacted to my "open konsole" keybind and then properly power-off'd when I (while screen was still black) wrote poweroff in konsole.

Judging by the above, there is apparently just some error on the display part, but changing the vga stuff did not work. No other vga-settings are uncommented.

I don't know if this is the line you're looking for, but I used
Code:
zcat /proc/config.gz > /usr/src/linux/.config
And dive, which conf-file are you referring to here:
Code:
Check the old configuration to see what support was in it for that card (including things like agp module, card drivers, framebuffer console, kms etc).
I guess that most of these questions are pretty dumb, my apologies for that, I just am not that good at this stuff, yet. :/
 
Old 02-11-2011, 05:35 PM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
If you copy the config (found in /boot) for the working kernel into the old stock source (as .config) and do 'make menuconfig' you can see the settings. Exit out of that without saving, cd into you newer kernel source, run 'make menuconfig' again and compare. (or of course have two terminals open so you can see side-by-side.)
 
Old 02-11-2011, 05:44 PM   #13
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
Just to be sure, did you run make oldconfig and answer a bunch of questions?
 
Old 02-11-2011, 05:55 PM   #14
Krystah
Member
 
Registered: Feb 2011
Posts: 36

Original Poster
Rep: Reputation: 0
Yes, I ran make oldconfig and pressed "Enter" on link 2 gazillion questions.

I'm afraid I don't really follow these instructions, dive =/ Could you specify which file(s) to copy to what exact location(s)?

Do you mean you want me to compare the contents of config (which points to config-huge-2.6.33.4) and config-custom-2.6.37 (which is the kernel I am updating to)?

I'm sorry for this >_>

Last edited by Krystah; 02-11-2011 at 05:57 PM.
 
Old 02-11-2011, 06:32 PM   #15
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
Mmm grasping at straws here, but may be you could give us dmesg? If it really works, all but the video, you could log into a tty console blind and save dmesg into a file.
 
  


Reply



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
Blank screen on kernel compile from 2.4.31 to 2.6.15? mman49 Slackware 6 01-30-2006 08:14 AM
New kernel blank screen Pier Slackware 4 01-20-2006 03:54 AM
Blank Screen after Kernel Compile Clojster Slackware 6 10-10-2004 04:04 AM
Blank screen after decompressing kernel imrel Linux - General 2 09-06-2004 01:21 PM
Blank Screen after installing Kernel 2.6 sminons Linux - Software 2 11-26-2003 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:49 PM.

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
Open Source Consulting | Domain Registration