LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Kernel compilation (https://www.linuxquestions.org/questions/linux-desktop-74/kernel-compilation-860914/)

yannifan 02-05-2011 01:52 PM

Kernel compilation
 
Hello

I have Ubuntu 10.10 installed running kernel 2.6.35

I have to compile a kernel with some changes and tried the same with 2.6.36.

Instructions followed :
http://www.cyberciti.biz/tips/compil...kernel-26.html

/boot listing after the process
abi-2.6.35-22-generic memtest86+_multiboot.bin
abi-2.6.35-24-generic System.map-2.6.35-22-generic
config-2.6.35-22-generic System.map-2.6.35-24-generic
config-2.6.35-24-generic System.map-2.6.36
config-2.6.36 vmcoreinfo-2.6.35-22-generic
grub vmcoreinfo-2.6.35-24-generic
initrd.img-2.6.35-22-generic vmlinuz-2.6.35-22-generic
initrd.img-2.6.35-24-generic vmlinuz-2.6.35-24-generic
initrd.img-2.6.36 vmlinuz-2.6.36
memtest86+.bin
sudhix@sudhix:/boot$


Error received during boot :
http://img18.imageshack.us/i/06022011111.jpg/

Am I missing any step here.

Please help
Thanks.

AlucardZero 02-05-2011 02:12 PM

Forgot to make or install the modules?

yannifan 02-05-2011 09:43 PM

Nope, Im sure i ran
make modules
make modules_install

yannifan 02-07-2011 08:28 AM

Fixed this issues
Ran this command
update-inintramfs -c -k 2.6.20

Source : http://www.linuxquestions.org/questi...es-dep-335214/

Nominal Animal 02-08-2011 11:17 AM

Instead of doing manual installs, I build installable kernel packages using
Code:

make menuconfig

NICE="nice -n 15 ionice -n 7"
SUFFIX="myown"

$NICE make-kpkg clean && $NICE fakeroot make-kpkg --initrd --revision=1 --append-to-version=-$SUFFIX kernel_image kernel_headers

The packages will be saved in the parent directory.

In the kernel image package the source and build symlinks will point to your build tree instead of the /usr/src/linux-.../ directory (where the headers are saved at if installed), but I just fix them after installation if/when installing any external kernel modules; I haven't bothered to find the fix yet. The nice and ionice I use to reduce the CPU and I/O priority, so that building a kernel won't affect anything else I might be running.

Hope this is useful to you,
Nominal Animal


All times are GMT -5. The time now is 10:23 AM.