Author Topic: Compile and install your own kernel  (Read 6411 times)

mmix

  • Guest
Compile and install your own kernel
« on: Mon Mar 16 04:02:21 2015 »
http://www.nutyx.org/en/build-kernel.html

Hi, there is something omitted in the page.

# ls -l /lib/modules/
total 8
drwxr-xr-x 3 root root 4096 Oct 31 09:03 3.16.7
drwxrwxr-x 3 root root 4096 Mar 15 22:12 4.0.0-rc4

# mkinitramfs 4.0.0-rc4

# ls -l /boot/                                                                              [23:59 x86_64 4.0.0-rc4 root@nutyx]
total 17184
-rw-rw-r-- 1 root root 3439616 Mar 15 22:13 bzImage
drwxr-xr-x 4 root root    4096 Mar 15 23:54 grub
-rw-r--r-- 1 root root 4307225 Mar 13 07:10 initrd
-rw-rw-r-- 1 root root 6469656 Mar 15 23:51 initrd-4.0.0-rc4
lrwxrwxrwx 1 root root      13 Mar 13 07:10 kernel -> kernel-3.16.7
-rw-r--r-- 1 root root 3367552 Mar 13 07:10 kernel-3.16.7

# cat /boot/grub/grub.cfg
# Begin grub.cfg
# By default boot the first menu entry.
set default=0
# Allow 5 seconds before booting the default.
set timeout=5
set color_highlight=blue/white
set color_normal=cyan/black
# insmod all_video
# insmod jpeg
# terminal_output gfxterm
menuentry "NuTyX x86_64 ext4 on /dev/sda1" {
 linux /boot/bzImage root=/dev/sda1 ro quiet
 initrd /boot/initrd-4.0.0-rc4
}

menuentry "NuTyX x86_64_old ext4 on /dev/sda1" {
 linux /boot/kernel root=/dev/sda1 ro quiet
 initrd /boot/initrd
}
 
menuentry "Maintenance NuTyX" {
  linux /boot/kernel ro quiet
  initrd /boot/initrd
}

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: Compile and install your own kernel
« Reply #1 on: Mon Mar 16 09:55:58 2015 »
Tanks for the report,

I will correct it this evening

Thierry

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: Compile and install your own kernel
« Reply #2 on: Tue Mar 17 15:01:21 2015 »
Actually this article is on purpose proposing the compilation without the need of any modules.
I thing it's the main reason for compiling a personalize kernel.