How do I find kernel headers for a specific version of Linux kernel?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I need to write a kernel module for a Linux system as shown below.



# uname -a
Linux (none) 3.7.1 #1 SMP Mon Dec 23 06:07:19 PST 2013 i686 GNU/Linux

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 6
model name : QEMU Virtual CPU version 2.5+
stepping : 3
cpu MHz : 2793.012
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 pni hypervisor
bogomips : 5586.02
clflush size : 32
cache_alignment : 32
address sizes : 36 bits physical, 32 bits virtual
power management:


The Linux box doesn't have kernel headers or the build system (gcc/ld) installed. Hence I need to set it up locally on my system. How can I find the kernel headers for this particular system? The linux kernel on github has only the releases below, none of which matches exactly with the version (v3.7.1) of kernel installed there.



$ git tag | grep v3.7
v3.7
v3.7-rc1
v3.7-rc2
v3.7-rc3
v3.7-rc4
v3.7-rc5
v3.7-rc6
v3.7-rc7
v3.7-rc8






share|improve this question















  • 2




    Actually you need to know who provided the kernel. But if you don't care, this is good enough. Likewise, this may help.
    – Thomas Dickey
    Jun 15 at 0:08











  • The module needs to be written to solve a challenge. I guess I have no other means to know any more info. What I can conclude is it is running some sort of custom 32 bit kernel, tagged as v3.7.1, inside Qemu emulator.
    – Holmes.Sherlock
    Jun 15 at 0:31















up vote
1
down vote

favorite












I need to write a kernel module for a Linux system as shown below.



# uname -a
Linux (none) 3.7.1 #1 SMP Mon Dec 23 06:07:19 PST 2013 i686 GNU/Linux

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 6
model name : QEMU Virtual CPU version 2.5+
stepping : 3
cpu MHz : 2793.012
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 pni hypervisor
bogomips : 5586.02
clflush size : 32
cache_alignment : 32
address sizes : 36 bits physical, 32 bits virtual
power management:


The Linux box doesn't have kernel headers or the build system (gcc/ld) installed. Hence I need to set it up locally on my system. How can I find the kernel headers for this particular system? The linux kernel on github has only the releases below, none of which matches exactly with the version (v3.7.1) of kernel installed there.



$ git tag | grep v3.7
v3.7
v3.7-rc1
v3.7-rc2
v3.7-rc3
v3.7-rc4
v3.7-rc5
v3.7-rc6
v3.7-rc7
v3.7-rc8






share|improve this question















  • 2




    Actually you need to know who provided the kernel. But if you don't care, this is good enough. Likewise, this may help.
    – Thomas Dickey
    Jun 15 at 0:08











  • The module needs to be written to solve a challenge. I guess I have no other means to know any more info. What I can conclude is it is running some sort of custom 32 bit kernel, tagged as v3.7.1, inside Qemu emulator.
    – Holmes.Sherlock
    Jun 15 at 0:31













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I need to write a kernel module for a Linux system as shown below.



# uname -a
Linux (none) 3.7.1 #1 SMP Mon Dec 23 06:07:19 PST 2013 i686 GNU/Linux

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 6
model name : QEMU Virtual CPU version 2.5+
stepping : 3
cpu MHz : 2793.012
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 pni hypervisor
bogomips : 5586.02
clflush size : 32
cache_alignment : 32
address sizes : 36 bits physical, 32 bits virtual
power management:


The Linux box doesn't have kernel headers or the build system (gcc/ld) installed. Hence I need to set it up locally on my system. How can I find the kernel headers for this particular system? The linux kernel on github has only the releases below, none of which matches exactly with the version (v3.7.1) of kernel installed there.



$ git tag | grep v3.7
v3.7
v3.7-rc1
v3.7-rc2
v3.7-rc3
v3.7-rc4
v3.7-rc5
v3.7-rc6
v3.7-rc7
v3.7-rc8






share|improve this question











I need to write a kernel module for a Linux system as shown below.



# uname -a
Linux (none) 3.7.1 #1 SMP Mon Dec 23 06:07:19 PST 2013 i686 GNU/Linux

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 6
model name : QEMU Virtual CPU version 2.5+
stepping : 3
cpu MHz : 2793.012
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 pni hypervisor
bogomips : 5586.02
clflush size : 32
cache_alignment : 32
address sizes : 36 bits physical, 32 bits virtual
power management:


The Linux box doesn't have kernel headers or the build system (gcc/ld) installed. Hence I need to set it up locally on my system. How can I find the kernel headers for this particular system? The linux kernel on github has only the releases below, none of which matches exactly with the version (v3.7.1) of kernel installed there.



$ git tag | grep v3.7
v3.7
v3.7-rc1
v3.7-rc2
v3.7-rc3
v3.7-rc4
v3.7-rc5
v3.7-rc6
v3.7-rc7
v3.7-rc8








share|improve this question










share|improve this question




share|improve this question









asked Jun 14 at 23:53









Holmes.Sherlock

214110




214110







  • 2




    Actually you need to know who provided the kernel. But if you don't care, this is good enough. Likewise, this may help.
    – Thomas Dickey
    Jun 15 at 0:08











  • The module needs to be written to solve a challenge. I guess I have no other means to know any more info. What I can conclude is it is running some sort of custom 32 bit kernel, tagged as v3.7.1, inside Qemu emulator.
    – Holmes.Sherlock
    Jun 15 at 0:31













  • 2




    Actually you need to know who provided the kernel. But if you don't care, this is good enough. Likewise, this may help.
    – Thomas Dickey
    Jun 15 at 0:08











  • The module needs to be written to solve a challenge. I guess I have no other means to know any more info. What I can conclude is it is running some sort of custom 32 bit kernel, tagged as v3.7.1, inside Qemu emulator.
    – Holmes.Sherlock
    Jun 15 at 0:31








2




2




Actually you need to know who provided the kernel. But if you don't care, this is good enough. Likewise, this may help.
– Thomas Dickey
Jun 15 at 0:08





Actually you need to know who provided the kernel. But if you don't care, this is good enough. Likewise, this may help.
– Thomas Dickey
Jun 15 at 0:08













The module needs to be written to solve a challenge. I guess I have no other means to know any more info. What I can conclude is it is running some sort of custom 32 bit kernel, tagged as v3.7.1, inside Qemu emulator.
– Holmes.Sherlock
Jun 15 at 0:31





The module needs to be written to solve a challenge. I guess I have no other means to know any more info. What I can conclude is it is running some sort of custom 32 bit kernel, tagged as v3.7.1, inside Qemu emulator.
– Holmes.Sherlock
Jun 15 at 0:31











1 Answer
1






active

oldest

votes

















up vote
2
down vote













The archived sources are at kernel.org and are available as compressed tarballs and patchsets in the CDN repository. For version 3.7.1, the following tarballs are available:



  • BZ2: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.bz2

  • GZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.gz

  • XZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.xz

  • Signature: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.sign





share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449916%2fhow-do-i-find-kernel-headers-for-a-specific-version-of-linux-kernel%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    The archived sources are at kernel.org and are available as compressed tarballs and patchsets in the CDN repository. For version 3.7.1, the following tarballs are available:



    • BZ2: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.bz2

    • GZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.gz

    • XZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.xz

    • Signature: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.sign





    share|improve this answer

























      up vote
      2
      down vote













      The archived sources are at kernel.org and are available as compressed tarballs and patchsets in the CDN repository. For version 3.7.1, the following tarballs are available:



      • BZ2: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.bz2

      • GZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.gz

      • XZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.xz

      • Signature: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.sign





      share|improve this answer























        up vote
        2
        down vote










        up vote
        2
        down vote









        The archived sources are at kernel.org and are available as compressed tarballs and patchsets in the CDN repository. For version 3.7.1, the following tarballs are available:



        • BZ2: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.bz2

        • GZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.gz

        • XZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.xz

        • Signature: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.sign





        share|improve this answer













        The archived sources are at kernel.org and are available as compressed tarballs and patchsets in the CDN repository. For version 3.7.1, the following tarballs are available:



        • BZ2: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.bz2

        • GZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.gz

        • XZ: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.xz

        • Signature: https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.7.1.tar.sign






        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 15 at 3:30









        ErikF

        2,6711413




        2,6711413






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449916%2fhow-do-i-find-kernel-headers-for-a-specific-version-of-linux-kernel%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)