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 10-12-2005, 11:07 PM   #1
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Rep: Reputation: 15
Upgrade to 2.6 kernel, what am I missing?


OK i just compiled and installed a 2.6.13 kernel, but when I boot to it some things don't work. The main one of these being my network connection. When I installed Slack, it went through the netconfig then and everything worked great. What changed when I boot to the new kernel? If I boot to the old one (as I'm doing now) everything works great. Also, I notice a few errors on boot about missing modules or something, I need to investigate further but first I'd like to get internet connectivity to facilitate the troubleshooting from the 2.6 boot.
 
Old 10-12-2005, 11:23 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You need to find what module your NIC is using.

The easiest way would be to boot back into the original Slackware kernel, run "lsmod" and write down all the modules it shows there.

From there you could go to Google and search each one to figure out what it does.

Alternately, you could do "lspci", and write down the model of your NIC, and then Google that to find the appropriate module.

However you found the module name, you then go into the kernel config, an select it to either compile in, or load as a module. Then install the kernel/modules (whichever one you changed), and reboot.
 
Old 10-13-2005, 06:23 AM   #3
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
Also, if you have a specific driver, it will probably have to be recompiled against the new kernel and headers.
 
Old 10-13-2005, 07:02 AM   #4
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
this is what I'd do. Get the slack 10.2 config for linux-2.6.13 kernel, here. Get the kernel source, here, unpack
Code:
bzip2 -dc linux-2.6.13.tar.bz2 | tar xvf -
and cd into it. Move the config file you downloaded here and rename to .config. Then do:
Code:
mkdir /stable-boot
Edit the Makefile, e.g.
Code:
emacs Makefile
and change line 552 from
Code:
export  INSTALL_PATH ?= /boot
to:
Code:
export  INSTALL_PATH ?= /stable-boot
Edit /etc/lilo.conf adding the following:
Code:
image=/stable-boot/vmlinuz
root=/dev/hda1
label=Slack10.2
read-only
Then run:
Code:
make menuconfig
exiting without changing anything, then run
Code:
make;make modules;make install;make modules_install
You now have the 2.6.13 kernel (test26.s on Slack10.2 bootdisk) installed. You can now tweak this kernel config for your system in the knowledge you have a fallback kernel. Before messing about change the installation path in the Makefile back to /boot or any other folder of choice. Hope I helped.

(you can skip the make menuconfig and go straight to make,etc.... I do it purely out of habit.)
 
Old 10-13-2005, 07:17 AM   #5
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
This was actually one of the most clear instructions I have seen on kernel compiling. I will link to it from my page.
Earlier on, one should install Alsa after recompile. Is this still relevant? And if yes, won't it conflict with the fallback kernel?
 
Old 10-13-2005, 07:21 AM   #6
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
alsa is included in the 2.6.x kernels so you don't need to compile/install seperately. Just make sure alsa is enabled as modules only.
 
Old 10-13-2005, 07:31 AM   #7
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
Brilliant. Am considering jumping into the 21st century by using a 2.6 kernel.
 
Old 10-13-2005, 07:34 AM   #8
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
easy-peasy. Have a look at the ck-patchset, here, to improve the speed of your (I assume) desktop machine.
 
Old 10-13-2005, 07:55 AM   #9
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
Yes - desktop, laptop, tabletop... you name it.
This looks like the kind of thing which is tricky the first couple of times and afterwards you wonder why.
 
Old 10-13-2005, 08:03 AM   #10
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Rep: Reputation: 30
KMcD, sorry but I have a really noob questions there are :
1: Where I should Untar the kernel ****.tar.bz2 ?
2: Can I use config linux-2.6.13 for kernel 2.6.13.4?
3: how to use "Ck-Patch" ? and what for?

thanx in advance

Last edited by fireedo; 10-13-2005 at 08:05 AM.
 
Old 10-13-2005, 09:47 AM   #11
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
You can pretty much untar the kernel in any directory you want. Some say user home directory is a good place. I generally do it in /usr/src

Code:
cd /usr/src
fill in any directory other than /usr/src

Code:
tar -jxvf kernel-name.tar.bz2
move or copy the config file from slackware to the newly untarred directory
Code:
cp /config_file/directory/filename /usr/src/newly_untarred_directory/.config
Yes you can use the config file for 2.6.13 for 2.6.13.4 kernel. Infact you can use the same config file for future kernel upgrades if you **don't add new hardware** or **don't use/need new features** in your kernels.

Don't know about the CK patch

Tux,

Last edited by tuxrules; 10-13-2005 at 09:48 AM.
 
Old 10-13-2005, 11:54 PM   #12
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
OK, I found my NIC's drivers and enabled them, I am now writing this from my new 2.6.13.4 kernel. Yipee. However, there are a few additional inconsistencies. For instance, when trying to run LILO in 1024x768, to get a nice small-font console (with Tux up top initially) I got no display at all. I was able to blindly log in and startx, which displayed just fine. From an rxvt I edited lilo.conf and turned it to normal display, so now it works fine. What do I need to do to use the higher resolution console? Also, my mouse seems to have increased in sensitivity. Not a crucial fix, but it's kind of annoying.

Last edited by jnsg; 10-13-2005 at 11:55 PM.
 
Old 10-14-2005, 01:37 AM   #13
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Rep: Reputation: 30
thanx a lot tuxrules......
 
Old 10-14-2005, 03:17 AM   #14
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
@ jnsg >
I assume you will have to enable the relevant framebuffer in lilo.conf?
 
Old 10-14-2005, 05:04 AM   #15
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
Quote:
Originally posted by fireedo
KMcD, sorry but I have a really noob questions there are :
1: Where I should Untar the kernel ****.tar.bz2 ?
2: Can I use config linux-2.6.13 for kernel 2.6.13.4?
3: how to use "Ck-Patch" ? and what for?

thanx in advance
tuxrules was spot on, you can put the source anywhere you want. I now always patch the kernel with either the ck patch or the nitro patch. I create a new folder:
Code:
mkdir /usr/src/Patched
and unpackage the source there. Change into the source directory:
Code:
/usr/src/Patched/linux-2.6.13
and copy the patch file (patch-2.6.13-ck8.bz2) here. Then to patch the source use the command:
Code:
bzip2 -dc patch-2.6.13-ck8.bz2|patch -p1
Use the config-2.6.13 now, changing it to .config

Then follow the instructions as before. I hope I've made this clear, any more questions just let me know. You can change these instructions for any patchset, have a look on the web, some may have a feature you really want such as Software Suspend 2 or Reiser4, etc. Just experiment and find what suits you best. And if you make a mistake you'll still have a stable kernel in /stable-boot safe and sound.

The ck patchset makes changes to the schedulers in the kernel (you'll need to ask others about what that means) and adds other enhancements (like swap-prefetching) which make your pc run faster. On my laptop (which has quite a good cpu) the effect is small but on my aging dell desktop the effect of this patch is quite noticeable.
 
  


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
KDE Session missing [9.3 Upgrade] Stack Overflow SUSE / openSUSE 1 05-30-2005 03:33 PM
KDE styles missing after upgrade mdarby Slackware 13 04-26-2005 12:09 AM
missing fonts after fontconfig upgrade food Debian 2 04-07-2005 03:36 PM
Missing modules when upgrade kernel 2.6 letdoit Slackware 7 05-26-2004 12:42 AM
KDE 3.2.1 upgrade: LIBSMBCLIENT IS MISSING windus Linux - Newbie 1 04-10-2004 11:25 PM

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

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