SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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?
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...
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:
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?
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.
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:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.