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 12-18-2003, 12:06 AM   #1
jspaceman
Member
 
Registered: Dec 2000
Location: Toronto, Canaduhhhh
Distribution: Slackware -current, OpenBSD 3.8-stable
Posts: 178

Rep: Reputation: 30
Upgrading Slack to the 2.6 kernel


So now that the 2.6 Linux kernel is officially out I want to upgrade.

Will the kernel upgrade step-by-step guide posted at the top of this forum work with upgrading to 2.6, or are there some things in 2.6 that need special attention?

Do I have to wait until the Slackware package browser has the 2.6 kernel listed, or can I just go and download 2.6 from kernel.org and unpack it to /usr/src/linux?

Finally, if I do download the 2.6 kernel from the Slackware package browser do I also have to download the kernel-headers, kernel-modules, and kernel-ide files as well?

Last edited by jspaceman; 12-18-2003 at 12:08 AM.
 
Old 12-18-2003, 12:17 AM   #2
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
You can download the source directly from kernel.org and use it no problem. It will include everything you need, just compile as you would normally. Might I suggest using 'make xconfig' and loading your old config file from /boot? Unless you know your hardware extremely well, this is usually easiest. You can then make whatever changes you want, but at least have the necessities already chosen for you since you know your box is running properly now

DaOne's guide will work just fine.
 
Old 12-18-2003, 12:26 AM   #3
jspaceman
Member
 
Registered: Dec 2000
Location: Toronto, Canaduhhhh
Distribution: Slackware -current, OpenBSD 3.8-stable
Posts: 178

Original Poster
Rep: Reputation: 30
Would it be advisable to use my old .config file from 2.4.23 with a 2.6 kernel? Aren't there some new features with 2.6 that wouldn't be covered with a 2.4.23 .config file?
 
Old 12-18-2003, 12:28 AM   #4
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Yes, but you would have the chance to look it all over and make any necessary changes. At least you'd know the necessities would be there.
 
Old 12-18-2003, 12:29 AM   #5
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
BTW, I can't BELIEVE I hadn't read elsewhere that 2.6 stable was finally released! I just found out from your post Guess I've been sleeping too much...
 
Old 12-18-2003, 03:57 AM   #6
jspaceman
Member
 
Registered: Dec 2000
Location: Toronto, Canaduhhhh
Distribution: Slackware -current, OpenBSD 3.8-stable
Posts: 178

Original Poster
Rep: Reputation: 30
I notice in DaOne's kernel guide it says:

Quote:
If you are using 8.1 or later, open /usr/src/linux/Makefile in a text editor, scroll to line 74 and uncomment the the line #export INSTALL_PATH=/boot.
For 8.0 you must leave this line commented.
I looked for the line '#export INSTALL_PATH=/boot' in the 2.6.0 Makefile but I don't see it there. I take it that we don't need to do this step with the 2.6.0 kernel?

Also, I notice, during the 2.6.0 compile, that you don't need to do the 'make dep' step anymore. If you type 'make dep' it states:

Quote:
*** Warning: make dep is unnecessary now.
 
Old 12-18-2003, 04:15 AM   #7
malo_umoran
Member
 
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
after "make menuconfig" do just:

$ make bzImage
$ make modules modules_install
$ cp arch/..../bzImage /boot/vmlinuz ## or whetever your kernel name is
$ lilo
$ reboot

M.
 
Old 12-18-2003, 04:56 AM   #8
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Quote:
Originally posted by malo_umoran
after "make menuconfig" do just:

$ make bzImage
$ make modules modules_install
$ cp arch/..../bzImage /boot/vmlinuz ## or whetever your kernel name is
$ lilo
$ reboot

M.
Nope, after you configured the kernel you can just do "make"
(check what "make" does by typing: "make help")

By default "make" does:
vmlinux - Build the bare kernel
modules - Build all modules
bzImage - Compressed kernel image (arch/i386/boot/bzImage)

So after that you can just:

su -c "make modules_install"

and then copy kernel image, System.map and your current .config to your /boot directory
etc...
 
Old 12-18-2003, 05:00 AM   #9
malo_umoran
Member
 
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
hmmmm ... that is a nice shortcut ... I saw that after configuring, but I wanted to do it the "normal" was

thanx ...

M.
 
Old 12-18-2003, 06:11 AM   #10
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
Question...downloaded, configured, and was compiling the 2.6.0 kernel when I got the following error:

CC [M] drivers/usb/net/usbnet.o
drivers/usb/net/usbnet.c:3052:2: #error You need to configure some hardware for this driver
drivers/usb/net/usbnet.c:308: warning: `always_connected' defined but not used
make[3]: *** [drivers/usb/net/usbnet.o] Error 1
make[2]: *** [drivers/usb/net] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2

Besides the seemingly silly error message (almost worthy of M$ -- just kidding) ... does this mean anything to anyone? I did go through and remove quite a bit of stuff from the .config file before compiling the kernel this time. Perhaps I removed something I shouldn't have?
 
Old 12-18-2003, 07:39 AM   #11
mrant
Member
 
Registered: Jun 2003
Location: Troy, NY (Near Albany)
Distribution: Ubuntu, Maemo OS2008, Debian
Posts: 94

Rep: Reputation: 15
instead of copying the kernel image and map, i edit the Makefile install_export path line or whatever. then do make install. it copies everything for you and even runs lilo. and the line is still in the 2.6.0 kernel Makefile. im upgrading to 2.6.0 stable now.
 
Old 12-18-2003, 09:56 AM   #12
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 14.2
Posts: 1,266

Rep: Reputation: 56
Here is a guide I found discussing the upgrade.
http://kerneltrap.org/node/view/799
 
Old 12-18-2003, 10:07 AM   #13
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
As I thought, in my zeal to remove all the stuff I didn't need from my kernel, I didn't quite get the .config file correct. Based on what I found here:

http://www.ussg.iu.edu/hypermail/lin...09.1/0313.html

I discovered that I left one option CONFIG_USB_USBNET set to be built as a module, but didn't select any of the Host-To-Host adapters for it to use. Since I don't need this functionality, I simply replaced

CONFIG_USB_USBNET = m

with

# CONFIG_USB_USBNET is not set

in my .config file.

I'm posting my resolution in case anyone else runs into the same problem.
 
Old 12-18-2003, 12:04 PM   #14
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by jspaceman
I notice in DaOne's kernel guide it says:



I looked for the line '#export INSTALL_PATH=/boot' in the 2.6.0 Makefile but I don't see it there. I take it that we don't need to do this step with the 2.6.0 kernel?
As far as uncommenting this line, although it isn't line 74 in 2.6.0 Makefie, it is there. I don't have access to it now, but if I remember correctly, it is deeper in the Makefile.

And to add...


By default "make" does:
vmlinux - Build the bare kernel
modules - Build all modules
bzImage - Compressed kernel image (arch/i386/boot/bzImage)

This is much nicer (and faster now) huh?

And yes, make install will still work. Just be sure to edit lilo.conf and the Makefile accordingly.
 
Old 12-18-2003, 05:53 PM   #15
jspaceman
Member
 
Registered: Dec 2000
Location: Toronto, Canaduhhhh
Distribution: Slackware -current, OpenBSD 3.8-stable
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DaOne
As far as uncommenting this line, although it isn't line 74 in 2.6.0 Makefie, it is there. I don't have access to it now, but if I remember correctly, it is deeper in the Makefile.

And to add...
I think I found it, line 450 in /usr/src/linux/Makefile.
 
  


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
upgrading slack 1_8_7 Slackware 7 03-20-2005 06:50 PM
Help with Upgrading Slack ? BajaNick Slackware 16 04-05-2004 07:50 AM
More Slack upgrading help? BajaNick Slackware 3 04-04-2004 09:10 AM
Upgrading to Slack 9.0 NSKL Slackware 3 02-02-2003 10:16 PM
upgrading slack syouth333 Slackware 5 06-20-2002 01:24 PM

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

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