LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-08-2012, 10:22 PM   #1
pdean712
LQ Newbie
 
Registered: Dec 2008
Posts: 18

Rep: Reputation: 1
Slackware 13.37 Kernel Upgrade to 3.30-rc6


Hi Everybody, i have made a tutorial for a 13.37 Kernel Upgrade at http://2012revolution.us/doku.php?id=start , let me know what you think!!! i can help and add to the tutorial along the way, and dont be afraid to comment to the wiki! Thanks!
-Phillip
 
Old 03-08-2012, 10:56 PM   #2
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 226

Rep: Reputation: 29
Quote:
Originally Posted by pdean712 View Post
Hi Everybody, i have made a tutorial for a 13.37 Kernel Upgrade at http://2012revolution.us/doku.php?id=start , let me know what you think!!! i can help and add to the tutorial along the way, and dont be afraid to comment to the wiki! Thanks!
-Phillip
Hi. Well done for making an effort. A couple of observations:

I'm not sure that who the target audience in terms of skill level, but if this is aimed at beginners they should be advised to verify the kernel tar ball before compiling. On overview of the stages at the beginning would also be good, as would some references and more detailed explanation of what each stage is for.

The lack of initrd implies that you are building from the huge config. You might want to address this in the guide, as it is arguably better to build from a generic config.

It's your computer so you can build the kernel where you like, but I'm wondering why you don't use /usr/src as that's where the kernel sources are by default.
 
Old 03-09-2012, 01:23 PM   #3
pdean712
LQ Newbie
 
Registered: Dec 2008
Posts: 18

Original Poster
Rep: Reputation: 1
Thanks for your input kristizz!
 
Old 03-09-2012, 04:35 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Nice work.
As kristizz said why not compile in /usr/src ?
However:
Quote:
Lets do a…
root@darkstar:~/kernel33/linux-3.3-rc6# cp -v arch/x86/boot/bzImage /boot/vmlinuz-linux3.3-rc6ro3/linux-3.3-rc6
What we just did was copy the bzImage which is your New kernel to your /boot/ directory.
This will not copy to /boot
You should use
Code:
cp -v arch/x86/boot/bzImage /boot/vmlinuz-linux3.3-rc6
Then lilo.conf will be correct
Quote:
image= /boot/vmlinuz-linux-3.3-rc6
root=/dev/sda1
label=3.3kernel
read-only
BTW, nvidia will not compile on kernel 3.3.0

You do know everybody can edit your page, right?

Kind regards

Last edited by repo; 03-09-2012 at 04:52 PM.
 
Old 03-09-2012, 05:02 PM   #5
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
Quote:
Originally Posted by pdean712 View Post
Hi Everybody, i have made a tutorial for a 13.37 Kernel Upgrade at http://2012revolution.us/doku.php?id=start , let me know what you think!!! i can help and add to the tutorial along the way, and dont be afraid to comment to the wiki! Thanks!
-Phillip
You do not need to be root to compile a kernel.

I repeat: You do not need to be root to compile a kernel.

I do not understand why people believe this.

Please, please, please read Linux Kernel in a Nutshell. It was written by Greg Kroah-Hartman who is a kernel maintainer.

Last edited by hf2046; 03-09-2012 at 05:03 PM.
 
Old 03-09-2012, 05:46 PM   #6
elvis4526
Member
 
Registered: Aug 2011
Posts: 114

Rep: Reputation: Disabled
Quote:
Originally Posted by hf2046 View Post
You do not need to be root to compile a kernel.

I repeat: You do not need to be root to compile a kernel.

I do not understand why people believe this.

Please, please, please read Linux Kernel in a Nutshell. It was written by Greg Kroah-Hartman who is a kernel maintainer.
Is it just me, or the link doesn't work?
EDIT: Sorry, it's working now.

Last edited by elvis4526; 03-09-2012 at 05:48 PM. Reason: It's working now,
 
Old 03-09-2012, 06:54 PM   #7
Rasta420
Member
 
Registered: Feb 2012
Distribution: Slackware 64 13.37
Posts: 41

Rep: Reputation: 10
all very good feedback and very valid, but with that said, thanks for the laying the foundation of a user guide for upgrades, it will only get better now that you have laid the foundation


Rasta420
 
Old 03-10-2012, 09:18 AM   #8
salemboot
Member
 
Registered: Mar 2007
Location: America
Distribution: Linux
Posts: 161

Rep: Reputation: 36
Root makes life easier.

wget "http://www.kernel.org/pub/linux/kernel/v3.0/testing/linux-3.3-rc6.tar.bz2" -O - | tar vxj ; cd linux*;cp /boot/config*huge ./.config;make&&make modules&&make install&&make modules_install;reboot

one line to rule them all
 
Old 03-10-2012, 01:23 PM   #9
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
Quote:
Originally Posted by salemboot View Post
Root makes life easier.

wget "http://www.kernel.org/pub/linux/kernel/v3.0/testing/linux-3.3-rc6.tar.bz2" -O - | tar vxj ; cd linux*;cp /boot/config*huge ./.config;make&&make modules&&make install&&make modules_install;reboot

one line to rule them all
While it is true that root is not required to build the kernel and the official README says
Quote:
To do the actual install you have to be root, but none of the normal
build should require that. Don't take the name of root in vain.
I still side with salemboot: it is kind of easier. It also seems to be the Slackware way, judging by slackbuilds.

I have to point out, though, that skipping make oldconfig may cause you to have a bad time. In one instance I forgot to do it and still was able to boot a misconfigured kernel. Super-glitchy graphics gave away my mistake, so I fixed it, but who knows what else was broken?

Also, in my latest attempt to bring custom kernels to multiple desktops and laptops, I wrote a kernel slackbuild script. It is an amalgamation of the official Slackware scripts for kernel, modules, and firmware. You still have to configure the kernel (which is by far the hardest part), but then you can follow my very easy README and make a package which can be used to upgrade kernel/modules/firmware in one fell swoop, as simply as
Quote:
installpkg <name>
lilo
You also benefit from being able to uninstall your custom kernels cleanly and quickly. One major caveat is my refusal to deal with initrd: since I am already making my own kernel, I can easily throw in whatever it needs to boot (in my case, just ext4).
 
Old 03-10-2012, 03:43 PM   #10
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,896

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
qweasd, looks like you're doing something very similar to me. I also have a combined kernel+modules SlackBuild script I use. I still use a separate package for firmware though. (currently the one from current)

I thought about adding a "mkinitrd' to the doinst.sh, but at the moment I still do that bit and lilo manually.
 
Old 03-10-2012, 05:54 PM   #11
Rasta420
Member
 
Registered: Feb 2012
Distribution: Slackware 64 13.37
Posts: 41

Rep: Reputation: 10
elvis, thanks for the link...just finished reading it, good info in there and was nice to hear from an official kernel developer to build in a user created directory and not in /usr/src like everyone says

Rasta420
 
Old 03-10-2012, 06:00 PM   #12
Rasta420
Member
 
Registered: Feb 2012
Distribution: Slackware 64 13.37
Posts: 41

Rep: Reputation: 10
repo,

do you know if the nvidia driver compiles on 3.2.9 kernel?

my laptop is ATI graphics and so far the 3.2.9 kernel is good to go but desktop is nvidia gts 250 and havent updated the kernel there yet

Rasta420
 
Old 03-10-2012, 10:38 PM   #13
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Silver City, NM
Distribution: Linux Mint Debian Edition
Posts: 107

Rep: Reputation: 9
Good Work!

I am a newbie at Linux and am about to tackle Slackware with all new hardware and had wondered how to perform brain surgery if necessary.

I also like all of the comments! I get to learn several things at once.

T L
On the Wet Coast
Light rain and 48 F
 
Old 03-11-2012, 12:37 AM   #14
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
I still use a separate package for firmware though.
Starting with 144, udev looks in /lib/firmware/$(uname -r) and then /lib/firmware. So there is a very clean way to install the correct firmware without colliding with the Slackware package.
 
1 members found this post helpful.
Old 03-11-2012, 04:03 AM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Originally Posted by Rasta420 View Post
repo,

do you know if the nvidia driver compiles on 3.2.9 kernel?

my laptop is ATI graphics and so far the 3.2.9 kernel is good to go but desktop is nvidia gts 250 and havent updated the kernel there yet

Rasta420
I know it compiles on 3.2.7.
For the 3.3.0 kernel,
I found this on the net
Code:
cd /lib/modules/3.3.0-rc6-smp/
cp build/arch/x86/include/generated/asm/unistd_* source/arch/x86/include/asm/
Then rerun the nvidia installer.
Works on my system with kernel 3.3.0.
Seems to me it should work on 3.2.9 also.

Kind regards

Last edited by repo; 03-11-2012 at 04:05 AM.
 
  


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
LXer: Linux Kernel 3.2 RC6 Is Available for Testing LXer Syndicated Linux News 0 12-17-2011 04:51 PM
LXer: Setup Fedora 11 PV DomU at Xen 3.4.1 Dom0 (kernel 2.6.30-rc6-tip) on top of Fed LXer Syndicated Linux News 0 06-11-2009 11:40 AM
LXer: Setup opensolaris 2009.06 PV DomU at Xen 3.5-unstable Dom0 ( kernel 2.6.30-rc6- LXer Syndicated Linux News 0 06-05-2009 06:00 PM
Can I remove old kernel sources after kernel upgrade(to 2.6.17.13) on Slackware 11? ErV Slackware 7 05-04-2007 12:06 PM
MALTA MIPS Board bring up problem with linux kernel 2.6.12-rc6 shyamals Linux - General 0 04-27-2006 02:19 AM

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

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