Re: Building 4.9 RT kernel help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux