* Building 4.9 RT kernel help @ 2016-12-26 20:01 Vasiliy Gagin 2016-12-26 20:24 ` Ralf Mardorf 0 siblings, 1 reply; 3+ messages in thread From: Vasiliy Gagin @ 2016-12-26 20:01 UTC (permalink / raw) To: linux-rt-users I was able to build plain kernel v4.9. It builds v4.9-rt1 fine too, but fails when I try to install it. console message is run-parts: executing /etc/kernel/postinst.d/dkms 4.9.0-rt1 /boot/vmlinuz-4.9.0-rt1 Error! Bad return status for module build on kernel: 4.9.0-rt1 (x86_64) and there is following in make.log KMS make.log for open-vm-tools-9.4.6 for kernel 4.9.0-rt1 (x86_64) Mon Dec 26 14:09:03 EST 2016 /bin/sh: 1: test: -I./arch/x86/include: unexpected operator Using standalone build system. Makefile:167: Makefile.normal: No such file or directory make[3]: *** No rule to make target 'Makefile.normal'. Stop. /bin/sh: 1: test: -I./arch/x86/include: unexpected operator Using standalone build system. Makefile:167: Makefile.normal: No such file or directory make[3]: *** No rule to make target 'Makefile.normal'. Stop. I'm very new to the linux building process. Please Help ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Building 4.9 RT kernel help 2016-12-26 20:01 Building 4.9 RT kernel help Vasiliy Gagin @ 2016-12-26 20:24 ` Ralf Mardorf 2016-12-26 20:40 ` Ralf Mardorf 0 siblings, 1 reply; 3+ messages in thread From: Ralf Mardorf @ 2016-12-26 20:24 UTC (permalink / raw) To: linux-rt-users On Mon, 26 Dec 2016 15:01:01 -0500, Vasiliy Gagin wrote: >I was able to build plain kernel v4.9. >It builds v4.9-rt1 fine too, but fails when I try to install it. > >console message is Message of what? Did you try to install packages, perhaps a linux package, before a linux-header package was installed? >run-parts: executing /etc/kernel/postinst.d/dkms 4.9.0-rt1 >/boot/vmlinuz-4.9.0-rt1 >Error! Bad return status for module build on kernel: 4.9.0-rt1 (x86_64) > >and there is following in make.log > >KMS make.log for open-vm-tools-9.4.6 for kernel 4.9.0-rt1 (x86_64) >Mon Dec 26 14:09:03 EST 2016 >/bin/sh: 1: test: -I./arch/x86/include: unexpected operator >Using standalone build system. >Makefile:167: Makefile.normal: No such file or directory >make[3]: *** No rule to make target 'Makefile.normal'. Stop. >/bin/sh: 1: test: -I./arch/x86/include: unexpected operator >Using standalone build system. >Makefile:167: Makefile.normal: No such file or directory >make[3]: *** No rule to make target 'Makefile.normal'. Stop. > >I'm very new to the linux building process. Please Help There seems to be a DKMS hook. DKMS fails to build kernel modules. The kernel itself and all other modules might be installed, just some custom modules perhaps failed to build. I build 4.9-rt1 without issues and had also good luck with DKMS. It was able to build vbox modules. $ ls -hAl /lib/modules/4.9.0-rt1-1-rt-presonus/kernel/misc/ total 688K -rw-r--r-- 1 root root 582K Dec 24 08:14 vboxdrv.ko -rw-r--r-- 1 root root 16K Dec 24 08:14 vboxnetadp.ko -rw-r--r-- 1 root root 41K Dec 24 08:14 vboxnetflt.ko -rw-r--r-- 1 root root 39K Dec 24 08:14 vboxpci.ko However, sometimes DKMS can't build those modules, but then the kernel still could be used, just vbox doesn't work with this kernel. In your case, KMS is something graphics related and you seemingly use VMware. Again, perhaps a linux-header package wasn't installed and after installing the linux package DMKS was missing headers. Regards, Ralf ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Building 4.9 RT kernel help 2016-12-26 20:24 ` Ralf Mardorf @ 2016-12-26 20:40 ` Ralf Mardorf 0 siblings, 0 replies; 3+ messages in thread From: Ralf Mardorf @ 2016-12-26 20:40 UTC (permalink / raw) To: linux-rt-users On Mon, 2016-12-26 at 21:24 +0100, Ralf Mardorf wrote: > On Mon, 26 Dec 2016 15:01:01 -0500, Vasiliy Gagin wrote: > > I was able to build plain kernel v4.9. > > It builds v4.9-rt1 fine too, but fails when I try to install it. > > > > console message is > > Message of what? > > Did you try to install packages, perhaps a linux package, before a > linux-header package was installed? > > > run-parts: executing /etc/kernel/postinst.d/dkms 4.9.0-rt1 > > /boot/vmlinuz-4.9.0-rt1 > > Error! Bad return status for module build on kernel: 4.9.0-rt1 (x86_64) > > > > and there is following in make.log > > > > KMS make.log for open-vm-tools-9.4.6 for kernel 4.9.0-rt1 (x86_64) > > Mon Dec 26 14:09:03 EST 2016 > > /bin/sh: 1: test: -I./arch/x86/include: unexpected operator > > Using standalone build system. > > Makefile:167: Makefile.normal: No such file or directory > > make[3]: *** No rule to make target 'Makefile.normal'. Stop. > > /bin/sh: 1: test: -I./arch/x86/include: unexpected operator > > Using standalone build system. > > Makefile:167: Makefile.normal: No such file or directory > > make[3]: *** No rule to make target 'Makefile.normal'. Stop. > > > > I'm very new to the linux building process. Please Help > > There seems to be a DKMS hook. DKMS fails to build kernel modules. The > kernel itself and all other modules might be installed, just some > custom modules perhaps failed to build. > > I build 4.9-rt1 without issues and had also good luck with DKMS. It was > able to build vbox modules. > > $ ls -hAl /lib/modules/4.9.0-rt1-1-rt-presonus/kernel/misc/ total 688K > -rw-r--r-- 1 root root 582K Dec 24 08:14 vboxdrv.ko > -rw-r--r-- 1 root root 16K Dec 24 08:14 vboxnetadp.ko > -rw-r--r-- 1 root root 41K Dec 24 08:14 vboxnetflt.ko > -rw-r--r-- 1 root root 39K Dec 24 08:14 vboxpci.ko > > However, sometimes DKMS can't build those modules, but then the kernel > still could be used, just vbox doesn't work with this kernel. > > In your case, KMS is something graphics related and you seemingly use > VMware. Hahaha :D, pardon, "KMS" most likely is from "DKMS", just the "K" is missing. But, the rest still might be correct. Did you try to boot the kernel? I suspect it is installed, just running VMware might fail. Assuming just a header package wasn't installed, simply reinstall the kernel package, after the the headers are installed, or run DKMS manually from command line. > Again, perhaps a linux-header package wasn't installed and after > installing the linux package DMKS was missing headers. > > Regards, > Ralf > -- > To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-26 20:40 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-12-26 20:01 Building 4.9 RT kernel help Vasiliy Gagin 2016-12-26 20:24 ` Ralf Mardorf 2016-12-26 20:40 ` Ralf Mardorf
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).