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.
I'm running Slackware 10 with 2.4.26 now and want to upgrade to 2.6.x. Are there any stability issues with any of the 2.6 versions? I have the 2.6.8 source downloaded but I'm wondering which kernel would be best for me. My hardware is supported in 2.4 even though I need to run hotplug to detect my network card and usb printer. I haven't figured out how to add these without hotplug yet. It slows down my bootup time significantly.
I'm only about a month into Linux and finally decided to compile a custom kernel so I hope this goes smoothly. Any suggestions or comments are welcome. Thanks.
Last edited by Darkenedes; 09-04-2004 at 05:09 AM.
Originally posted by Darkenedes My hardware is supported in 2.4 even though I need to run hotplug to detect my network card and usb printer. I haven't figured out how to add these without hotplug yet. It slows down my bootup time significantly.
just see what modules are getting loaded and uncomment them in your /etc/rc.d/rc.modules file...
I've been looking for the modules, but after hotplug runs it doesn't list what it actually loaded while it's booting. Is there a log anywhere I could check? I've looked through rc.modules and nothing is listed for my network card, yet hotplug can get it to work. It must be using a module that's listed for a different card. Do I even need to know which modules I need before I compile my kernel?
When you compile the kernel, you can choose which things are built into the kernel or built as a module (or not at all) - so it is essential to know which modules you require.
Don't worry if you get it wrong, so long as you follow the guide, you won't overwrite your current kernel - you can always boot to that and ask for help!
Tulip is my network card driver. I have a Linksys card. I just found a support page on their site that tells you how to compile it in your new kernel:
Code:
Recompile Kernel Method:
Log in to your Linux box as root, admin, or super user.
Obtain the Tulip.c driver from the Linksys disk, or by downloading the latest version of it as described above.
Move the old version of the Tulip.c driver to safe location and copy the new version of the Tulip driver over the old one:
(the mv command below should be typed on one line, not two):
mv /usr/src/linux/drivers/net/tulip.c
/usr/src/linux/drivers/net/tulip.old
cp tulip.c /usr/src/linux/drivers/net
Consult the documentation that came with your Linux distribution to recompile the kernel.
Be sure to reboot the system after recompiling.
So that shouldn't be a problem anymore.
Now, can I build all of those modules listed into my new kernel and get rid of hotplug at bootup?
Using hotplug does not replace the modules compilation, you have to compile module if you need it with or without hotplug.
Instead, if you don't want hotplug, you have to disable it in kernel config, and maybe disable the /sys feature too (you may even need to delete /sys directory if it exists). Be sure to disable udev feature too by chmod -x /etc/rc.d/rc.udev if it exists.
For my part, I recommend using hotplug + udev with a 2.6 kernel, it is my humble opinion though.
To address your original question, don't use 2.6.8. It was updated almost immediately to 2.6.8.1. The only big concern with 2.6.8.1 is that CD burning is broken. So if you want to burn CDs, use 2.6.7. Otherwise, go for 2.6.8.1. 2.6.8 had someproblem that led to an immediate release of 2.6.8.1.
I'm with Cedrik on the hotplug+udev. People complain about the boot time, but it is far from slow. I'd rather take an extra couple of seconds to boot than have stuff not work right.
I think you can skip those Tulip driver instructions. I have network card that uses the Tulip driver, adn it just works. It's an option you choose when you are compiling your new kernel. It is included as a module, by default, so there is no need to do anything other than "modprobe tulip" if the driver isn't loaded.
Benefits of 2.6.x:
+ Much snappier KDE/Gnome
+ Hotplug runs faster (8-30 seconds)
+ Easier to use usb hot-plug devices.
+ Bluetooth support is much better.
- Ppl report problems with SCSI_IDE/CDROM's, burning issues
Benefits of 2.4.x
- It works by default.
EDIT: IF you just wanna try 2.6.x , use the 2.6.7 in /testing on Slack 10, CD2
Ok, I got mostly everything working now, except it tells me at bootup that dma is turned off on my harddrive, so I must have missed something when compiling. hdparm won't turn it on, so I probably missed support for my chipset somewhere.
I'm going to recompile, but following DaOne's directions, make install backs up my 2.4.26 kernel image to /boot/vmlinuz.old, which is where lilo is pointed for it. If I follow the same directions, will it replace vmlinuz.old with the badly compiled up 2.6, or will it still be 2.4 linked there? Or should I just run make uninstall from the 2.6 source directory and just start fresh? I think I might like to start with the default 2.6 .config, not mine transferred from 2.4.
Thanks for all the help so far.
Last edited by Darkenedes; 09-05-2004 at 01:12 AM.
Originally posted by Darkenedes Ok, I got mostly everything working now, except it tells me at bootup that dma is turned off on my harddrive, so I must have missed
something when compiling. hdparm won't turn it on, so I probably missed support for my chipset somewhere.
I'm going to recompile, but following DaOne's directions,
make install backs up my 2.4.26 kernel image to /boot/vmlinuz.old, which is where lilo is pointed for it. If I follow the same directions, will it replace
vmlinuz.old with the badly compiled up 2.6, or will it still be 2.4 linked there? Or should I just run make uninstall from the 2.6 source directory and
just start fresh? I think I might like to start with the default 2.6 .config, not mine transferred from 2.4.
Thanks for all the help so far.
1. DMA:
do a "hdparm -i /dev/hdYOUR_LETTER_HERE" and check where the * is located.
2. "make install"
The best way is to remove all the guessing. Rename the kernel by hand to something like vmlinuz-ide-2.4.24 and adjust you /etc/lilo.conf with this now "old" enrty.
3. "make uninstall"
I would stay away from anything that removes backup working kernels automatically.
4. Old/New kernel.config
Go with a blank if you switch from 2.4.x to 2.6.x. There are lotsa things that are "discontinued" in 2.6 which you can enable by loading your old config.
I really don't like using 'make install' in /usr/src/linux so I can't help you there -
However, I just
# cd /usr/src/linux (assuming you've updated the symlink to usr/src/linux --> linux-2.6.8.1
# cp arch/i386/boot/bzImage /boot/testing/
# vim /etc/lilo.conf
I got it fixed. I made sure I enabled the right IDE chipsets this time and now dma works fine. Everything's much faster now.
Before I recompiled, I checked /boot, and make install had already backed up my 2.4 kernel to /boot/vmlinuz-ide-2.4.26 as well as my system.map. I edited lilo.conf to use /boot/vmlinuz-ide-2.4.26 rather than /boot/vmlinuz.old and then just recompiled 2.6.7. Thanks everyone for all the help.
One last question, and something I've been wondering about open source in general.. after you've make install'ed something is it safe to delete the source files? The kernel source is hogging up most of my free space.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.