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 upgrade my kernel 2.4.40 to 2.4.21 but now I would like to compile my own. Also I have kernel-source-2.4.21 noarch.tgz in /usr/src. In order to create linux, what command do i have to use to untar?
I think you have got kernel sources from slackware sites not from kernel.org. Then you have to installpkg kernel-sources[TAB][Enter] in the dir where your source file is. Or if you have problems with unpacking files, then go to this page: http://debianguiden.dk/dists/stable/html/tar.html
True. But since he stated that he had Volkerding's release (i.e. a prepatched source in the Slackware package format), I figured it would be a better idea to install as intended. That would automagically take care of placing everything in the correct directories, as well as creating a symlink. Simplicity is bliss.
I had untared kernel-source-2.4.21-noarch-1.tgz in /usr/src. when I do
'ls' this is the print out
install
usr/
rpm
Then i do cd install and then 'ls' and i have two filies: doinst.sh and slack-desc
in doinst.sh i found the following command
(cd usr/src : rm -rf linux)
( cd usr/src : ln -sf linux-2.4.21 linux )
(cd usr/src/linux-2.4.21/include : rm -rf asm)
(cd usr/src/linux-2.4.21/include : ln -sf asm-i386 asm)
Let me tell you that i had upgrade my kernel 2.4.20 to 2.4.21. but I do not remember how i did it. (one night i found it in google a site and followed the instructions, but i forgot to take notes. Now I am taking notes), Right now my system is workingvery well but i would like to have my own kernel. At the same time, I do not want to mess up my system if something goes wrong.
Pllease share your experience and knowledge with me.
Well, when compiling your new kernel, you could load the config for the old one. Usually the config resides in your kernel source directory, but if you haven't got the kernel source installed I believe the config can be retrieved from /boot (the file's called simply "config", the one in the kernel source dir is hidden, so it's ".config"). If you've been using one of the standard kernels (say, bare.i), you might be able to find the config in some other place as well, perhaps the CD - I don't know. :P
Anyway, when you're about to compile (more correctly, when you're about to prepare for compilation), you can just load the old config into, say, xconfig or menuconfig, and go with that, although I recommend you to go through the various options before you go on. You could probably do a "make oldconfig" as well, and just be prompted for options that has changed or been added. However, it's never wrong to poke around a bit in xconfig/menuconfig and get a bit more aquainted with your particular configuration and the available options.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.