LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-30-2014, 09:36 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,954

Rep: Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434
New kernel crashing out


This one goes very early. I get a 'normal' first screenful of 25 lines, then screen 2 is the registers and it's gone. The kernel doesn't even get near booting devices. Below the registers is this(spaces every 4 digits are mine):

Code:
Kernel Offset 0x0 from 0xffff ffff 8100 0000 (relocation range 0xffff ffff 8000 0000 - 0xffff ffff 9fff ffff
I suspect that address is a tad crazy. Anyone know where to go for this sort of thing? I'm fiddling, checking & recompiling, of course, but I'd love to have a guess where it came from.

Edit: Hoping you can see the attachments - Screen 1 and the Crash out, which is a call trace. Sorry one of them is upside down.
Attached Thumbnails
Click image for larger version

Name:	14350.jpg
Views:	119
Size:	10.0 KB
ID:	15815   Click image for larger version

Name:	14351.jpg
Views:	105
Size:	10.1 KB
ID:	15816  

Last edited by business_kid; 06-30-2014 at 10:23 AM.
 
Old 06-30-2014, 07:24 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
The attachments are too small to read, I'm afraid.
 
Old 06-30-2014, 09:38 PM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Do you use lilo ? Make sure to run lilo before rebooting.
 
Old 07-01-2014, 03:25 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,954

Original Poster
Rep: Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434
Thanks for looking.
Yes, I had run lilo, and renamed since my last kernel. I made a couple of tries with the old config, and then started from scratch
make defconfig
make allmodconfig
make localmodconfig

That does most of it. Then
make menuconfig. The second one of these comes out fairly well usually. The first one had no sata driver (!) and crashed out looking for root, after 10 mins of debug testing :-//. I've been too long away from kernel building to 'make oldconfig' & guess. Time I read some help again. I have a stable kernel to run on and will post when I am running. I want to keep the size small, so slackware's standard issue kernels do not fit the bill.
 
Old 07-01-2014, 03:48 AM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
When you use a Slackware kernel, you want to use:

Code:
make oldconfig
And select the defaults for new options presented then build the kernel. Follow this and you should be okay:

Code:
cd /usr/src/linux
cp -v /boot/config-* /usr/src/linux/.config
make oldconfig
make -j4
make modules_install
cp -v System.map /boot/System.map-3.15.2
cp -v .config /boot/config-3.15.2
cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.15.2
Then rerun lilo to update the kernel path for the boot loader. To be honest, the size of the kernel doesn't really matter much as even with Huge, the RAM and Disk space requirements are fairly fickle. You could always just trim out unneeded drivers and leave the rest in Huge as-is and still have a fully featured kernel that doesn't require an initramfs.

Last edited by ReaperX7; 07-01-2014 at 03:50 AM.
 
Old 07-01-2014, 04:40 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,184

Rep: Reputation: Disabled
Instead of
Code:
cp -v /boot/config-* /usr/src/linux/.config
do this:
Code:
zcat /proc/config.gz > /usr/src/linux/.config
to take as a basis your running kernel's configuration.
 
Old 07-01-2014, 12:11 PM   #7
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
See:
http://docs.slackware.com/howtos:sla...git_repository
plenty of must have built-in drivers are listed.
 
Old 07-02-2014, 06:00 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,954

Original Poster
Rep: Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434
Thanks for that link.

I'm going here, but not on the kernel I like. I need to shift off the standard issue kernels and it's a pain trying to find everything. The real problem, I have discovered, is that I don't know my own box very well.
 
Old 07-02-2014, 09:31 AM   #9
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
I suggest reading Greg Kroah-Hartman's book, "Linux Kernel in a Nutshell" (it's free). Many helpful tips on getting a working config for a custom kernel and building the kernel the right way (or at least how most kernel developers do it).

http://www.kroah.com/lkn/
 
Old 07-03-2014, 03:45 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,954

Original Poster
Rep: Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434
Reading over, as I kind of have what I'm looking for atm thanks. I'm missing one sound module perhaps.

The default kernel seems to be for a memoryless embedded poly-cpu SERVER with storage, network storage, terabytes of ram, umpteen video cards, with everything from ISA through RAID to the most exotic and unheard of comms protocols; which box is being used for kernel development, programming/debug and sending encrypted packets in obtuse protocols through obscure network and Industrial connections:-)).

They badly need to organize sub menus in alphabetical order. The kernel is really at the stage where the average guy will struggle to make a kernel of his choice. They also badly need the obsolete separated from the current.
 
Old 07-03-2014, 04:40 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,184

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
The kernel is really at the stage where the average guy will struggle to make a kernel of his choice.
Being an average guy, I use a kernel provided by my distribution

I'm not sure that you realize the time and experience it needs to tune each and every option so that all software shipped in Slackware work as expected, while dealing with possible security issues, and so many kinds of hardware. Why not benefit of that hard work Pat is doing for all of us?

Of course there are cases where you need to re-compile your kernel or upgrade it but then taking as a basis the config file of your running kernel or one of those provided by Slackware makes things way easier and safer.

Last edited by Didier Spaier; 07-03-2014 at 05:25 AM.
 
Old 07-03-2014, 08:22 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,954

Original Poster
Rep: Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434
Yeah, that's what I usually do. I really ran into trouble because I am tight on hd space and know my own box very poorly. This is my first Intel based box in years. I started with that defconfig, and got the sickest thing imaginable. I had previous configs and could do an 'oldconfig'. But building your own forces you to educate yourself.

This has been very good for me, because I never realised how much electronic industrial stuff has found it's way into the linux kernel. Even after I get sorted (Everything works except skype is silent), I will be back to that kernel config again, if I get the time.
 
  


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
kernel crashing while usb I/O walkerjhony2010 Linux - Kernel 1 02-25-2010 03:39 AM
Upgraded kernel and programs are crashing? Tapani_ Linux - Software 3 09-20-2007 05:27 PM
modprobe ndiswrapper now crashing kernel EcoR1 Linux - Wireless Networking 12 01-24-2007 06:34 PM
kernel crashing server! please help! I_AM Linux - General 5 04-05-2005 07:08 PM
OpenGL crashing after kernel upgrade Alf829 Fedora 1 03-19-2004 01:42 AM

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

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