I'm new to the list and would like to say hello to everyone. Now on to the meat. I have tried to compile a kernel with a grsec patch 5 times now using a couple of different methods and I keep getting a "No init found" and "Couldn't support optional features" errors every time at bootup. I'm trying to use a vanilla 2.6.32.27 kernel on 10.04 Ubuntu and it compiles fine, just will not boot. I've tried "CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers", "CONCURRENCY_LEVEL=3 make-kpkg --initrd --append-to-version=-586 kernel_image kernel_headers modules_image". I have all the reqs for building kernels such as build-essentials, fakeroot, kernel-package, kernel-wedge, nurces-dev and qt for xconfig. These are the steps I've taken. DL the kernel image from kernels.org, get the patch from grsec.net, untar the kernel, cd into the directory created, do a 'cp /boot/config-`uname -r` .config', 'make oldconfig', apply the patch, then either 'make menuconfig' or 'make xconfig'. Then I do a 'make-kpkg clean' and run one of the commands in the first paragraph above. I get the debs built and can install them just fine, but I keep getting the same errors. I've cut out as many "Experimental" options I thought might cause a problem and still get a kernel panic at boot. Anyone have a clue what I'm doing wrong? Scott
Hi Scott :) On Wed, Jan 5, 2011 at 12:34, scott <redhowlingwolves@nc.rr.com> wrote:
I'm new to the list and would like to say hello to everyone. Now on to the meat.
I have tried to compile a kernel with a grsec patch 5 times now using a couple of different methods and I keep getting a "No init found" and "Couldn't support optional features" errors every time at bootup. I'm trying to use a vanilla 2.6.32.27 kernel on 10.04 Ubuntu and it compiles fine, just will not boot.
My first question is: did the patching go successfully? were you applying the correct grsec version against a matching vanilla kernel version? And last, maybe you can attach your kernel .config content...and one of fine people here will try to decipher what's wrong with it :) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
On 01/05/2011 01:46 AM, Mulyadi Santosa wrote:
Hi Scott :)
On Wed, Jan 5, 2011 at 12:34, scott<redhowlingwolves@nc.rr.com> wrote:
I'm new to the list and would like to say hello to everyone. Now on to the meat.
I have tried to compile a kernel with a grsec patch 5 times now using a couple of different methods and I keep getting a "No init found" and "Couldn't support optional features" errors every time at bootup. I'm trying to use a vanilla 2.6.32.27 kernel on 10.04 Ubuntu and it compiles fine, just will not boot. My first question is: did the patching go successfully? were you applying the correct grsec version against a matching vanilla kernel version?
And last, maybe you can attach your kernel .config content...and one of fine people here will try to decipher what's wrong with it :)
The patch was matched and was successful. It compiled with no errors. Just the 'no init' at boot. I'll post my .config later today as it's late here and have to work. I'm beginning to think it may have something to do with the limits on file size as I got a few warnings about out-of-range sizes. I have it set to 1024. Thanks for your reply, Scott Thanks for your reply.
On Wed, 5 Jan 2011, scott wrote:
I'm new to the list and would like to say hello to everyone. Now on to the meat.
I have tried to compile a kernel with a grsec patch 5 times now using a couple of different methods and I keep getting a "No init found" and "Couldn't support optional features" errors every time at bootup. I'm trying to use a vanilla 2.6.32.27 kernel on 10.04 Ubuntu and it compiles fine, just will not boot.
I've tried "CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers", "CONCURRENCY_LEVEL=3 make-kpkg --initrd --append-to-version=-586 kernel_image kernel_headers modules_image".
I have all the reqs for building kernels such as build-essentials, fakeroot, kernel-package, kernel-wedge, nurces-dev and qt for xconfig.
These are the steps I've taken. DL the kernel image from kernels.org, get the patch from grsec.net, untar the kernel, cd into the directory created, do a 'cp /boot/config-`uname -r` .config', 'make oldconfig', apply the patch, then either 'make menuconfig' or 'make xconfig'. Then I do a 'make-kpkg clean' and run one of the commands in the first paragraph above.
I get the debs built and can install them just fine, but I keep getting the same errors. I've cut out as many "Experimental" options I thought might cause a problem and still get a kernel panic at boot.
Anyone have a clue what I'm doing wrong?
you are clearly using ubuntu, so here's a simpler recipe i've used successfully. 1) configure and build your kernel from the source 2) "sudo make modules_install" 3) "sudo make install" 4) "sudo update-initramfs -c -k <kernel version goes here>" 5) "sudo update-grub" the drawback to the above is that your kernel is not built as an official *package* but for testing purposes, it should do. you'll get your kernel installed under /boot, your modules installed, a new initramfs image, and your grub file updated. can you try it this way and see if it makes a difference? rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================
participants (3)
-
Mulyadi Santosa -
Robert P. J. Day -
scott