Page 1 of 1

how to make linux-header and kbuild package on debian ?

Posted: 2015-09-07 04:27
by lihui2090
I have a intel board,and compile the kernel 2.6.39 .
Now i need compile a kernel modules ,it need the linux-headers and kbuild .
How can i make the packges like the linux-headers-2.6.39-1-686-pae_2.6.39-1_i386.deb ,linux-headers-2.6.39-1-common_2.6.39-1_i386.deb,linux-kbuild-2.6.39_2.6.39-1_i386.deb?
My needs are linux-headers-2.6.39-686-pae_2.6.39_i386.deb ,linux-headers-2.6.39-common_2.6.39_i386.deb,linux-kbuild-2.6.39_2.6.39_i386.deb

Re: i have a quesiton how to make linux-header and kbuild?

Posted: 2015-09-07 06:55
by Head_on_a_Stick
Which version of Debian are you using?

That kernel is ancient.

You could try:

Code: Select all

# apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-kbuild

Re: how to make linux-header and kbuild package on debian ?

Posted: 2015-09-07 09:34
by lihui2090
I have use the cmd you give .
The return is 2.6.39
In the debian have no the version .
ths very much.

Code: Select all

root@ubuntu:/usr/src# apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-kbuild
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-2.6.39
E: Couldn't find any package by regex 'linux-headers-2.6.39'
E: Unable to locate package linux-kbuild

root@ubuntu:/boot# uname -r|sed 's,[^-]*-[^-]*-,,'
2.6.39

Re: how to make linux-header and kbuild package on debian ?

Posted: 2015-09-07 18:01
by Head_on_a_Stick
Please post the output of:

Code: Select all

lsb_release -a
cat /etc/debian_version
uname -a