trouble when compiling and installing a new kernel
DebianThis forum is for the discussion of Debian 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.
trouble when compiling and installing a new kernel
i downloaded the latest stable release of the linux kernel
2.6.39
and i did the following
ran the command
Code:
make xconfig
and there were no errors so far so good
then i ran
Code:
make
in the mix of all the command line and characters one of the lines said
Code:
stack protector enabled but no compiler support
because of this the rest of the installation process is not going well i am unable to install the new linux kernel successfully. the kernel shows up on the grub boot menu but goes into a kernel panic when i try to boot it. how do i compile the new kernel in debian squeeze
Did you install the build-essential package? (I think you did, but just in case) Go back to make xconfig and find out what setting requires the compiler support (hint: it's probably in the error message itself)
build-essential is installed or else the make command wouldn't have worked as for the other part of your suggestion, i have no idea what settings require the compiler support all i saw was that it said the stack protector was enabled. does this mean i have to disable it in the configuration step
Do you have created an initrd for that kernel? This is necessary if you compile a driver that is necessary for the boot process, like the driver for your disk controller or the filesystem you use, as a module instead built-in.
You said that you could install the new kernel and choose it in grub. How is that possible if the compiling aborts?
Any ways, it would help if you post the error-messages you get, otherwise we can only guess what is going wrong. "is not going well" is not a sufficient error description.
Over the years I found that using the Debianised sources (eg linux-source-2.6.39) and make-kpkg saves me much frustration. Any reason you are not using this approach?
i've never upgraded kernel in debian before but i hear doing it from source makes it more customizable for the user, unless your method saves both time and frustration is it customizable like it would be when you install from source
Over the years I found that using the Debianised sources (eg linux-source-2.6.39) and make-kpkg saves me much frustration. Any reason you are not using this approach?
Evo2.
same here. And its so good, that i did never check any other method.
http://forums.debian.net/viewtopic.php?t=36525
and here is a short version: http://forums.debian.net/viewtopic.php?p=212790#p212790
You, baronbeefdip, might also want to look into "make localmodconfig" (with the same method, but additionally).
`lspci -k` will tell you the kernel-drivers you actually use (but if you follow the how-tos, and cp the actual config or create it with localmodconfig, it will not be of need. If you run into trouble it might help).
I think you misunderstood evo2. He didn't say to install a deb-package of a kernel (which would be an upgrade), he said to use the debianized sources and compile them. Do "apt-cache search linux-source | less" and you will see. After install it will be at /usr/src. Then follow the how-to.
It is installing from source, except packages are made and certain checks/tasks are performed (eg making sure that your bootloader is configured correctly). Install kernel-package and have a read of /usr/share/doc/kernel-package/README.gz
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.