LinuxQuestions.org
Visit Jeremy's Blog.
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 05-04-2012, 05:59 PM   #1
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Rep: Reputation: 36
Build kernel, can't boot


Using Slackware 13.37, I built a new kernel, specifically to take advantage of more than 4gb of memory.

After building, I edited lilo.conf adding the new kernel. Then I ran lilo.

What happens after that is that any of the kernels I have configured in lilo.conf will boot until a couple of lines after "PCI Probing PCI Hardware."

I have no problem booting the system from the Slackware 13.37 install DVD, using hugesmp.s root=/dev/sda1 initrd= ro

As near as I can figure out, I should not need initrd, but I haven't experimented with it.

I'm wondering if anyone can give me some pointers?

Thanks.
 
Old 05-04-2012, 06:25 PM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
If you do not use an initrd, are you sure you have compiled support for the necessary file system in the kernel?

In my case, this would be ext4:

Code:
$ grep EXT4_FS ~/build/linux-3.4-rc5/.config
CONFIG_EXT4_FS=y
 
Old 05-04-2012, 06:38 PM   #3
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
Yes, I have FS support which is appropriate.

I believe the boot is failing when doing something with the PCI system, and can't find allot about that part of the boot to give me hints. I did go through a config to make certain I didn't have any PCI stuff turned off.
 
Old 05-04-2012, 06:49 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Which are the exact lines where the boot stops?
 
Old 05-04-2012, 07:27 PM   #5
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
pci 0000:001c.2 PCI bridge to [bus 02-02] Is the last line printed.
 
Old 05-05-2012, 08:28 PM   #6
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
It appears that perhaps my PCI bus / bridge initialization is not working right, when I boot from my harddrive (after rebuilding the kernel). Since booting from the USB stick seems to work, I am trying to figure out where the PCI bus initialization configuration is stored, and how it is used.

http://tldp.org/LDP/tlk/dd/pci.html
 
Old 05-05-2012, 10:03 PM   #7
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
Dead end. Ran config again a couple of times. Have a real fast booting kernel now, that stops at the same point. Tomorrow.
 
Old 05-05-2012, 10:30 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Suggestion: Take the Slackware kernel config of your choice (huge or generic), make one change at a time, try again, until you come to the setting that prevents the boot. Time-consuming, but guaranteed to find your issue.
 
Old 05-06-2012, 08:17 AM   #9
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
Actually, I took the huge distribution config (found in /boot), which is what I was running before, built straight with that, and the problem persists.

Subsequently I took the hugesmp.s kernel, added that to my lilo.conf, ran lilo, and booted with that and the problem persists.

However, it still remains that if I boot from a USB stick, things come up OK, which is how I continue to experiment.

Oh, one other thing, this is not the first time I ran LILO. A while ago I was modifying LILO as I tried various graphics cards, with no difficulty such a this. Therefore, this problem, as near as I can tell, is unique to the installation of a new kernel, modifying lilo.conf, running lilo, and then booting.
 
Old 05-06-2012, 04:18 PM   #10
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
Changing from vga=normal in lilo.conf appears to have solved the problem. Not sure why, but it did.

Now I need to dig further to understand that parameter.
 
  


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
how build a simple boot loader for linux kernel 3.0? vishnugopalakrishnan Linux - Newbie 1 12-19-2011 11:58 AM
Kernel build, install and boot question on ram disk image wdli Programming 58 10-22-2008 11:42 AM
New kernel build won't boot. newtovanilla Linux - Newbie 6 04-29-2008 10:37 PM
Boot process stops after custom kernel build FuzzyDuc Debian 3 11-28-2004 06:47 AM
First kernel build and getting boot errors astender Linux - General 1 11-22-2004 03:20 PM

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

All times are GMT -5. The time now is 05:57 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