I am trying to install the latest kernel 3.14.4 on my Ubuntu 14.04. But it gives me an error when I try to install using make file. I have also done the make oldconfig, it took more than 3 hours to complete, and when I try to make install, a few errors are thrown in the terminal:
VirtualBox:/home/sonyx64/Documents/linux-3.14.4# make install
sh /home/sonyx64/Documents/linux-3.14.4/arch/x86/boot/install.sh 3.14.4 arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.14.4 /boot/vmlinuz-3.14.4
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.14.4 /boot/vmlinuz-3.14.4
update-initramfs: Generating /boot/initrd.img-3.14.4
WARNING: missing /lib/modules/3.14.4
Device driver support needs thus be built-in linux image!
depmod: ERROR: could not open directory /lib/modules/3.14.4: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_Xm5CtY/lib/modules/3.14.4/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_Xm5CtY/lib/modules/3.14.4/modules.builtin: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.14.4 /boot/vmlinuz-3.14.4
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.14.4 /boot/vmlinuz-3.14.4
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.14.4 /boot/vmlinuz-3.14.4
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.15.0-1-generic
Found initrd image: /boot/initrd.img-3.15.0-1-generic
Found linux image: /boot/vmlinuz-3.14.4
Found initrd image: /boot/initrd.img-3.14.4
Found linux image: /boot/vmlinuz-3.14.4.old
Found initrd image: /boot/initrd.img-3.14.4
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
uname -mpiand geti386,i586ori686etc you need 32bit, where as if you end up withx86_64you need 64bit. I think you need to download and install all of the debs (wgetwill download the files) - if you a=only install 1 or 2 it will likely return the error that the 3rd needs to be installed.. You need to run thecommandsin terminal. – Wilf May 28 '14 at 17:28apt-get source linux-image-$(uname -r)– vijayraj34 May 28 '14 at 17:36apt-getis the package manager, andsourcetells it download (and i think install) the source code of the given packages (look forsourcein the output ofman apt-getfor a better explanation). The$(uname -r)gives the currently used (and therefore already installed) version of the kernel, and thelinux-image-is start of the name of each kernel package. Basically it downloads and probably installs the source of the kernel currently in use. – Wilf May 28 '14 at 17:54apt-get source linux-image-$(uname -r)will download the source of the current kernel - which would be what you need to create a syscall for the current kernel. (This seems a completely different question to this one, i would suggest making a new question for it). For making a basic system call, this video seems to give a great guide on how to do it. – Wilf May 28 '14 at 18:16