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 06-07-2011, 03:28 PM   #16
tOOmBa
LQ Newbie
 
Registered: Apr 2011
Location: Milan
Distribution: Slackware 13.1
Posts: 4

Rep: Reputation: 0

well, had some problems with this one. First time tried to compile a linux kernel. Followed this guide: Alien's Bob Guide , the new kernel tried to mount the root partition read-write, it couldn't, then it tried to erase my users from the old kernel, had no permissions to do it (thank's God) and multiple issues of this kind. That's what I could observe from the start up. Just one little exception from the guide, I use Grub instead of Lilo.

Of course I tried to configure it according to my hardware specs, avoiding additional stuff. And one more thing: I didn't have the /usr/src/linux directory, I downloaded the 2.6.39 kernel to the /usr/src/linux-2.6.39 directory and followed the guide in that directory. During the make process had no issues.

On this guide Wiki Guide I found that the /usr/src/linux directory should exist and it contains the kernel-sources (what's that?), did a google search didn't find how to install them.

Your ideas Gentlemen!
 
Old 06-07-2011, 04:51 PM   #17
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
AFAIK there is no way a kernel can try to erase users.

And as stated in Alien Bob's guide the kernel source can be installed anywhere you want.

The kernel source is a set of files (organized in a tree hierarchy) from which the kernel is built through the "make" command.

As you are not familiar with compiling a kernel I wouldn't advise you to fine tune its configuration at first.

In a pinch this is how I would do it:
Code:
cd /somewhere # Somewhere *can* be /usr/src but this is not mandatory
wget http://www.kernel.org/pub/linux/kern...6.39.1.tar.bz2 # to download the kernel source
# for the kernel version 2.3.39.1 (the newest at time of writing)
tar xjf linux-2.6.39.1.tar.bz2
cd linux-2.6.39.1
version=2.6.39.1
# next step will allow you to use a config file suitable for 2.6.39.1, which will save you a lot of hassle
wget ftp://slackware.mirrors.tds.net/pub/...2.6.39-rc4-smp
mv config-generic-2.6.39-rc4 .config
make olconfig
make menuconfig
# use the former command only to make "built-in" (answer "Y" instead of "M") the driver for your root filesystem.
# This will save you the hassle of making an initrd.
make bzImage modules
# For the next steps you should be root
make modules_install
version=2.6.39.1-smp
cp System.map /boot/System.map-$version
cp .config /boot/config-$version
cp arch/x86/boot/bzImage /boot/vmlinuz-$version
# Then I would make an entry for the new kernel (/boot/vmlinuz-2.6.39.1-smp) in /etc/lilo.conf and run /sbin/lilo.
# I do not use grub so you are on your own with it

Last edited by Didier Spaier; 06-08-2011 at 02:11 AM. Reason: Download config-generic-smp instead of config-generic
 
Old 06-07-2011, 10:05 PM   #18
tOOmBa
LQ Newbie
 
Registered: Apr 2011
Location: Milan
Distribution: Slackware 13.1
Posts: 4

Rep: Reputation: 0
Ok i'll try this tomorrow, without making changes if it has no issues than I'll now that i messed up with the config;

P.S: it did try to erase the users I'll try to make a screenshot tomorrow.
P.S.S: Thx for your help.
 
Old 08-04-2011, 04:26 AM   #19
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
39.4 is out. Last in series!

Quote:
From: Greg KH
Subject: Linux 2.6.39.4
Date: Wed, 3 Aug 2011 13:28:39 -0700

I'm announcing the release of the 2.6.39.4 kernel.

All users of the 2.6.39 kernel series must upgrade.

Please note, this is the LAST release of the 2.6.39 kernel series. All
users of 2.6.39 should be moving to 3.0 right now. This tree is now
end-of-life, please plan accordingly.


The updated 2.6.39.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.39.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kerne...stable/linux-2....

thanks,

greg k-h

Last edited by GazL; 08-04-2011 at 04:27 AM.
 
  


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
LXer: Released Last Week: Parted Magic, Epidemic GNU/Linux 3.2, DEFT Linux 6.1, Incognito Live Syste LXer Syndicated Linux News 0 04-19-2011 12:40 AM
Linux 2.6.35 has been released Didier Spaier Slackware 22 08-09-2010 08:12 PM

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

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