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

News and discussion about development of the Debian OS itself

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

Postby lihui2090 » 2015-09-07 04:27

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
Last edited by lihui2090 on 2015-09-07 07:20, edited 1 time in total.
lihui2090
 
Posts: 9
Joined: 2015-08-27 02:14

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

Postby Head_on_a_Stick » 2015-09-07 06:55

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
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6784
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby lihui2090 » 2015-09-07 09:34

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
lihui2090
 
Posts: 9
Joined: 2015-08-27 02:14

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

Postby Head_on_a_Stick » 2015-09-07 18:01

Please post the output of:
Code: Select all
lsb_release -a
cat /etc/debian_version
uname -a
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6784
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable