Welcome! Log In Create A New Profile

Advanced

Can't install Linux Kernel 4.4 Kirkwood headers

Posted by sebr 
Can't install Linux Kernel 4.4 Kirkwood headers
February 23, 2016 07:04PM
I receive the following error when I try to install the headers for latest kernel:
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-kirkwood-tld-1 /boot/vmlinuz-4.4.0-kirkwood-tld-1
Error! echo
Your kernel headers for kernel 4.4.0-kirkwood-tld-1 cannot be found at
/lib/modules/4.4.0-kirkwood-tld-1/build or /lib/modules/4.4.0-kirkwood-tld-1/source.
How can I resolve this?



Edited 1 time(s). Last edit at 02/24/2016 05:11PM by bodhi.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
February 24, 2016 03:54PM
sebr Wrote:
-------------------------------------------------------
> I receive the following error when I try to
> install the headers for latest kernel:
>
> Examining /etc/kernel/header_postinst.d.
> run-parts: executing
> /etc/kernel/header_postinst.d/dkms
> 4.4.0-kirkwood-tld-1
> /boot/vmlinuz-4.4.0-kirkwood-tld-1
> Error! echo
> Your kernel headers for kernel
> 4.4.0-kirkwood-tld-1 cannot be found at
> /lib/modules/4.4.0-kirkwood-tld-1/build or
> /lib/modules/4.4.0-kirkwood-tld-1/source.
>
> How can I resolve this?

Is this error when you installed the kernel headers? I think it would be more helpful if you post then entire log (from the command to here).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Can't install Linux Kernel 4.4 headers (continued)
February 24, 2016 04:24PM
Yes, that is is when I try to install linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb.

root@nsa310:~# dpkg -i linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb
Vormals nicht ausgewähltes Paket linux-headers-4.4.0-kirkwood-tld-1 wird gewählt.
(Lese Datenbank ... 57790 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb ...
Entpacken von linux-headers-4.4.0-kirkwood-tld-1 (1.0) ...
linux-headers-4.4.0-kirkwood-tld-1 (1.0) wird eingerichtet ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-kirkwood-tld-1 /boot/vmlinuz-4.4.0-kirkwood-tld-1
Error! echo
Your kernel headers for kernel 4.4.0-kirkwood-tld-1 cannot be found at
/lib/modules/4.4.0-kirkwood-tld-1/build or /lib/modules/4.4.0-kirkwood-tld-1/source.
root@nsa310:~# uname -a
Linux nsa310 4.4.0-kirkwood-tld-1 #1 PREEMPT Mon Jan 25 20:35:24 PST 2016 armv5tel GNU/Linux
root@nsa310:~#



Edited 1 time(s). Last edit at 02/24/2016 05:12PM by bodhi.
Re: Can't install Linux Kernel 4.4 headers (continued)
February 24, 2016 05:29PM
sebr,

Quote

run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-kirkwood-tld-1 /boot/vmlinuz-4.4.0-kirkwood-tld-1

This looks like your problem. I think you need to install the headers first before dkms.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Can't install Linux Kernel 4.4 Kirkwood headers
February 24, 2016 06:50PM
Thanks for your answer. So I went ahead, removed both packages and re-installed the headers first:
root@nsa310:~# dpkg -i linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb
Vormals nicht ausgewähltes Paket linux-headers-4.4.0-kirkwood-tld-1 wird gewählt.
(Lese Datenbank ... 57693 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb ...
Entpacken von linux-headers-4.4.0-kirkwood-tld-1 (1.0) ...
linux-headers-4.4.0-kirkwood-tld-1 (1.0) wird eingerichtet ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-kirkwood-tld-1 /boot/vmlinuz-4.4.0-kirkwood-tld-1
dkms: WARNING: Linux headers are missing, which may explain the above failures.
      please install the linux-headers-4.4.0-kirkwood-tld-1 package to fix this.
root@nsa310:~#
Still no luck and a pretty confusing hint...
Re: Can't install Linux Kernel 4.4 Kirkwood headers
February 24, 2016 06:57PM
sebr,

Which command did you use to remove them? was it with
dpkg --purge package-name
sometime the traces of the installation is still in the pre/post directory if not purged.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Can't install Linux Kernel 4.4 Kirkwood headers
February 24, 2016 06:59PM
Yup, purged to perform a fresh start. But not help.
There are files in /lib/modules/4.4.0-kirkwood-tld-1/ but no directory named 'build' or 'source'.
Also it is not possible to build a module.



Edited 1 time(s). Last edit at 02/24/2016 07:13PM by sebr.
Re: Can't install Linux Kernel 4.4 Kirkwood headers
February 24, 2016 07:25PM
> There are files in
> /lib/modules/4.4.0-kirkwood-tld-1/ but no
> directory named 'build' or 'source'.

This is easy, just create them while being root user.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mieki
Re: Can't install Linux Kernel 4.4 Kirkwood headers
February 25, 2016 02:06PM
I faced same error...
But little investigation and found that directory "build" is symlinked to headers directory.
so i typed
ln -s /usr/src/linux-headers-4.4.0-kirkwood-tld-1 /lib/modules/4.4.0-kirkwood-tld-1/build
and all is working. now build module for wifi.....
Re: Can't install Linux Kernel 4.4 Kirkwood headers
February 26, 2016 04:51AM
Thanks for the info mieki!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: