First Slackware Kernel compile from source 2.6.29.6, am I doing this right?
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.
You might notice a little difference depending on what you are doing. Anything too specific to your hardware won't be enabled if it's an either/or setting because the stock kernels need to be compatible across the majority of platforms.
Be careful trying to optimize for nvidia video if you normally use the proprietary drivers. My first kernel I compiled the oss nvidia drivers INTO the kernel and then had a serious issue when I then tried to install the proprietary drivers.
Preemption, timers, specific cpu, filesystems, any particular drivers you might need, removing things you don't need if you are inclined towards a smaller kernel because you can, even the boot logo (I like a custom boot logo).
I installed the Nvidia stuff in my Ubuntu setup and the screen res is always 1024x768 when it should be 1280x1024
so, I wont be doing anything in that way
as the default Slack vesa thing gives me the correct res
If I do it wrong
How do I reinstall the kernel that came in the iso?
I dont even know which kernel it installed as there are many in /boot?
smp, huges?
I just skimmed the tutorial you are following and I saw that it has you doing
PHP Code:
rm vmlinuz
which I'm sure you are aware is going to remove the default link from /boot which will in turn affect lilo.conf
I would suggest leaving vmlinuz in tact and just creating a lilo.conf entry for the new kernel, rather than deleting and reassigning vmlinuz.
Once you are sure everything works to your satisfaction (I've been surprised a week later with things like usb thumb drives not working) then do what you want. But I've found it best to just add a new kernel rather than deleting anything prematurely.
edit: you can revert using installpkg or slackpkg from the dvd or a mirror. And anything file system related is going to be under "file systems" towards the bottom of gconfig/menuconfig. Selecting Y puts them INTO the kernel where as M makes them modules. N removes them completely.
If I do it wrong
How do I reinstall the kernel that came in the iso?
I dont even know which kernel it installed as there are many in /boot?
smp, huges?
You can still keep your old kernel.
Most people use the generic config to rebuild with as it's more modular.
Please read Alien Bob's guide that damgar linked to that will probably answer most of your questions.
Most certainly you will have installed one or more packages containing kernel modules that are not part of the default kernel. Slackware installs the “svgalib-helper” package for instance, and if you installed any wireless driver, these are basically kernel modules too.
Be aware that by installing and booting into your new kernel, you will no longer have these out-of-kernel modules available. You have to recompile their sources so that the resulting kernel modules match the version of your new kernel.
uh...?
I just want the same kernel slackware installed(which is?)
thats optimized for my cpu
I really dont want this to be like installing SourceMage!
That was a whole wasted day and nothing even got installed?!
If I was you I would follow BOB's method. This will leave the current kernels and their modules installed. Edit lilo.conf for your new kernel.
Run lilo. Reboot and choose your new kernel. Put it through it's paces. If something isn't right then reboot into the old kernel and try again.
edit: What BOB is saying is that if you've installed drivers outside of what is included in the kernel they will have to be rebuilt. For isntance the proprietary NVIDIA drivers require me to run the installer with the -K option to build/install a kernel module for the driver.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.