LinuxQuestions.org
Help answer threads with 0 replies.
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 01-16-2014, 01:00 PM   #1
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Rep: Reputation: 30
custom kernel fails to boot after compiling


Ok, I've tried searching for this but could not find any relavant info on my problem.

The weird thing is, after I compile the kernel I dowloaded on kernel.org, with frame buffer support and do all the described steps including editing lilo.conf and running lilo and then trying to boot the newly compiled kernel the screen does not just go black, but it freezes with boot output in pale grey colour and then, parts of the sceen turn white slowly.

The huge kernel that comes with 14.1 booted fine without any issues.

I've compiled the kernel with everything bult in and I'm not using inird.

I have no idea what could be causing the problem - I've tried re-compling the kernel time and time again with various graphics drivers built in and always included Radeon support as the laptop has mobility radeon HD 3450/3470.

I'm stuck - please help!

Last edited by hubabuba; 01-16-2014 at 01:50 PM.
 
Old 01-16-2014, 01:29 PM   #2
r.vaillancourt
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Rep: Reputation: 0
Hmmm...

Have a look here.
http://alien.slackbook.org/dokuwiki/...kernelbuilding

I usually use one of the two configs (huge and (generic using alien bob's build)) from /boot, build, and then trim it down. Still working on localmodconfig. Has been a pain, if you don't load huge kernel first (lesson learned).

Good luck.

Last edited by r.vaillancourt; 01-16-2014 at 01:33 PM.
 
Old 01-16-2014, 01:58 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
I don't see any good reason to have a specific frame buffer driver built in, VESA VGA is enough IMHO and anyway the frame buffer module for your graphic card will be loaded soon enough.

Can you at least boot with the huge kernel?

If yes, do this and please tell us what you are customizing and why.

Anyhow, not knowing what you changed exactly in kernel's configuration and what is your hardware (output of lspci -vn could help), we are too much in the dark to actually help you efficiently.

PS Compiling your kernel with everything built in is not a good idea IMHO as some of your devices can then be claimed by a driver which is not the best for your hardware and if that happens you won't be able to blacklist it. Why do that anyway?

Last edited by Didier Spaier; 01-16-2014 at 02:02 PM.
 
Old 01-16-2014, 02:19 PM   #4
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
Thanks r.vaillancourt and Didier Spaier

Yes, the huge kernel boots

Will try VESA VGA only, without the Radeon frame buffer driver.

Will get the pspci -vn output on here. With regards to compiling everything into the kernel - I do not have device drivers built in for the hardware which I do not have, at least for things like graphics, sound, network and stuff.

I'm just trying to build a kernel with the drivers and options relevant only to my system, without clutter
 
Old 01-16-2014, 02:43 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by hubabuba View Post
I do not have device drivers built in for the hardware which I do not have, at least for things like graphics, sound, network and stuff.
Unless recommended by the help text associated to that option, there is no gain in making a driver for a specific device built-in, even if you have it. Just have them as modules.

Quote:
I'm just trying to build a kernel with the drivers and options relevant only to my system, without clutter
OK, just be aware that doing so you won't get any increase in performance and very few in terms of space on hard disk.

If you persist doing that, I suggest you take the generic config file as a basis then run "make oldconfig" followed" by "make localmodconfig". Be aware that then:
  • Only the already loaded kernel modules will be included in the configuration. So, before running that command, plug-in any kind of removable devices you want to be able to use in the future. If you miss USB slots to do that (which is probable), just unplug a device to plug in another one, all relevant kernel modules will stay loaded.
  • Of course you will need an initrd.

Last edited by Didier Spaier; 01-16-2014 at 05:17 PM.
 
1 members found this post helpful.
Old 01-16-2014, 05:01 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I agree with most of the above, however for kit that I own/know I prefer not to use modules at all - personal preference.
This, on the other hand, deserves comment:
Quote:
Originally Posted by Didier Spaier View Post
[*]Of course you will need an initrd.
just because you choose to have module loading, doesn't necessarily imply an initrd. If there is sufficient support present in the kernel for the root to be mounted, there is no overt reason to use an initrd.
 
Old 01-16-2014, 05:19 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
for kit that I own/know I prefer not to use modules at all - personal preference.
Of course you can choose to have everything built-in, but then you have to make sure not to include "alien" drivers that could cause conflicts, possibly running "make localyesconfig". Could you share your rationale for that personal preference?

Quote:
Originally Posted by syg00 View Post
... just because you choose to have module loading, doesn't necessarily imply an initrd. If there is sufficient support present in the kernel for the root to be mounted, there is no overt reason to use an initrd.
In case of Slackware and making a kernel based on -generic configuration, drivers for most file systems are not built in, so mounting / will fail during boot sequence if the module is not included in an initrd.
 
Old 01-16-2014, 06:20 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by Didier Spaier View Post
Could you share your rationale for that personal preference?
Habit from gentoo days - before the advent of options such as localyesconfig, sorting out which options to use was very much a manual process. I tended to go with only what I needed.

Never seen a reason to change - and that applies to custom kernels for Slack, although I haven't done that for a while.
 
Old 01-16-2014, 09:18 PM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The only actual drivers you want built-in are the file system loading ones and maybe an SCSI/SATA/IDE controller driver. The rest can be modules controlled by udev's module autoloader.

Last edited by ReaperX7; 01-16-2014 at 09:19 PM.
 
Old 01-18-2014, 08:48 PM   #10
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
I can find only tutorials for compilation of 2.6.x kernels.
Is it fine to use those same tutorials for the 3.x series?
 
Old 01-18-2014, 09:54 PM   #11
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,780

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
Quote:
Originally Posted by STDOUBT View Post
I can find only tutorials for compilation of 2.6.x kernels.
Is it fine to use those same tutorials for the 3.x series?
Ummmm top line.... well 2nd line

Quote:
Originally Posted by AleinBobsKernelBuildPage
Building a Linux Kernel from Source

This is how I build my 2.6 kernels.
It will apply almost completely to the 3.x kernels in Slackware 14 and onwards.
If you didn't see that page, HERE is the link
 
1 members found this post helpful.
Old 01-18-2014, 10:02 PM   #12
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,780

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
@ReaperX7 - I dislike everything about an initrd and consider it useless and unnecessary complexity for my purposes. I don't encrypt root and I don't use RAID (on SOHO boxes)so on those I will hold out as long as possible and build the 2 or 3 drivers needed to avoid it into the kernel.

I rarely use hugesmp.s for longer than a day and always "roll my own" very soon after install and again if I see that some of my hardware has improved support in a newer kernel. Knowing enough about my hardware to not create conflicts is both the price I pay and a worthy investment, with tangential returns.
 
  


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
[SOLVED] Backlight fails frequently on boot with custom kernel tm512 Linux - Laptop and Netbook 13 08-11-2011 12:42 AM
[SOLVED] Building custom kernel fails Bindestreck Slackware 9 08-02-2011 05:29 PM
custom boot cd fails to boot with "Kernel panic - not syncing : vfs" ramachandra_ankireddy Linux From Scratch 1 11-23-2008 05:10 PM
iptables-restore fails on boot with custom kernel burntfuse Fedora 2 06-22-2006 09:52 AM
From kernel compiling sig11 fails-to boot fail-what's happening? wolve Linux - Newbie 3 06-30-2004 02:51 PM

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

All times are GMT -5. The time now is 05:01 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
Open Source Consulting | Domain Registration