![配置内核源代码以进行手动模块编译](https://linux22.com/image/62200/%E9%85%8D%E7%BD%AE%E5%86%85%E6%A0%B8%E6%BA%90%E4%BB%A3%E7%A0%81%E4%BB%A5%E8%BF%9B%E8%A1%8C%E6%89%8B%E5%8A%A8%E6%A8%A1%E5%9D%97%E7%BC%96%E8%AF%91.png)
我需要从源代码编译一个xpad模块,系统是debian wheezy,平台是ci20。我无法在任何地方找到 linux headers-3.0.8-(...) (不在系统上,不在网络上,不在官方存储库中)。
我确实有可用的内核源代码,但我不确定如何使用它。当我尝试将模块助手与 -k /path/to/kernel/sourcecode 选项一起使用时,它抱怨它“未配置”,但内核源代码没有。当我尝试“制作”它时,它失败了,因为我缺少 linux 标头。由于我找不到 linux 标头,我不知道如何继续。是否有另一种方法可以获取我需要的内容或以任何方式使用此源代码来构建此模块?
有人对我有什么建议吗?有没有我可以找到的文章或资源可以为我解释这个问题,以便我了解下一步该做什么或尝试什么?
apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://deb.flowworld.com/ flowsdk/main mipsel Packages
release o=. flowsdk,n=flowsdk,l=. flowsdk,c=main
origin deb.flowworld.com
500 http://http.debian.net/debian/ wheezy-backports/main Translation-en
100 http://http.debian.net/debian/ wheezy-backports/main mipsel Packages
release v=,o=Debian Backports,a=wheezy-backports,n=wheezy--backports,l=Debian Backports,c=main
origin http.debian.net
500 http://security.debian.org/ wheezy/updates/non-free Translation-en
500 http://security.debian.org/ wheezy/updates/main Translation-en
500 http://security.debian.org/ wheezy/updates/contrib Translation-en
500 http://security.debian.org/ wheezy/updates/non-free mipsel Packages
release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=non-free
origin security.debian.org
500 http://security.debian.org/ wheezy/updates/contrib mipsel Packages
release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=contrib
origin security.debian.org
500 http://security.debian.org/ wheezy/updates/main mipsel Packages
release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=main
origin security.debian.org
500 http://ftp.uk.debian.org/debian/ wheezy-updates/non-free Translation-en
500 http://ftp.uk.debian.org/debian/ wheezy-updates/main Translation-en
500 http://ftp.uk.debian.org/debian/ wheezy-updates/contrib Translation-en
500 http://ftp.uk.debian.org/debian/ wheezy-updates/non-free mipsel Packages
release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=non-free
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian/ wheezy-updates/contrib mipsel Packages
release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=contrib
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian/ wheezy-updates/main mipsel Packages
release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=main
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian/ wheezy/non-free Translation-en
500 http://ftp.uk.debian.org/debian/ wheezy/main Translation-en
500 http://ftp.uk.debian.org/debian/ wheezy/contrib Translation-en
500 http://ftp.uk.debian.org/debian/ wheezy/non-free mipsel Packages
release v=7.8,o=Debian,a=stable,n=wheezy,l=Debian,c=non-free
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian/ wheezy/contrib mipsel Packages
release v=7.8,o=Debian,a=stable,n=wheezy,l=Debian,c=contrib
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian/ wheezy/main mipsel Packages
release v=7.8,o=Debian,a=stable,n=wheezy,l=Debian,c=main
origin ftp.uk.debian.org
Pinned packages:
apt-cache search linux-header
linux-headers-3.2.0-4-4kc-malta - Header files for Linux 3.2.0-4-4kc-malta
linux-headers-3.2.0-4-5kc-malta - Header files for Linux 3.2.0-4-5kc-malta
linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-all-mipsel - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-common - Common header files for Linux 3.2.0-4
linux-headers-3.2.0-4-loongson-2f - Header files for Linux 3.2.0-4-loongson-2f
linux-headers-3.2.0-4-r5k-cobalt - Header files for Linux 3.2.0-4-r5k-cobalt
linux-headers-3.2.0-4-sb1-bcm91250a - Header files for Linux 3.2.0-4-sb1-bcm91250a
linux-headers-3.2.0-4-sb1a-bcm91480b - Header files for Linux 3.2.0-4-sb1a-bcm91480b
linux-headers-2.6-4kc-malta - Header files for Linux 4kc-malta configuration (dummy package)
linux-headers-2.6-5kc-malta - Header files for Linux 5kc-malta configuration (dummy package)
linux-headers-2.6-loongson-2f - Header files for Linux loongson-2f configuration (dummy package)
linux-headers-2.6-r5k-cobalt - Header files for Linux r5k-cobalt configuration (dummy package)
linux-headers-2.6-sb1-bcm91250a - Header files for Linux sb1-bcm91250a configuration (dummy package)
linux-headers-2.6-sb1a-bcm91480b - Header files for Linux sb1a-bcm91480b configuration (dummy package)
linux-headers-4kc-malta - Header files for Linux 4kc-malta configuration (meta-package)
linux-headers-5kc-malta - Header files for Linux 5kc-malta configuration (meta-package)
linux-headers-loongson-2f - Header files for Linux loongson-2f configuration (meta-package)
linux-headers-r5k-cobalt - Header files for Linux r5k-cobalt configuration (meta-package)
linux-headers-sb1-bcm91250a - Header files for Linux sb1-bcm91250a configuration (meta-package)
linux-headers-sb1a-bcm91480b - Header files for Linux sb1a-bcm91480b configuration (meta-package)
linux-headers-3.16.0-0.bpo.4-4kc-malta - Header files for Linux 3.16.0-0.bpo.4-4kc-malta
linux-headers-3.16.0-0.bpo.4-5kc-malta - Header files for Linux 3.16.0-0.bpo.4-5kc-malta
linux-headers-3.16.0-0.bpo.4-all - All header files for Linux 3.16 (meta-package)
linux-headers-3.16.0-0.bpo.4-all-mipsel - All header files for Linux 3.16 (meta-package)
linux-headers-3.16.0-0.bpo.4-common - Common header files for Linux 3.16.0-0.bpo.4
linux-headers-3.16.0-0.bpo.4-loongson-2e - Header files for Linux 3.16.0-0.bpo.4-loongson-2e
linux-headers-3.16.0-0.bpo.4-loongson-2f - Header files for Linux 3.16.0-0.bpo.4-loongson-2f
linux-headers-3.16.0-0.bpo.4-loongson-3 - Header files for Linux 3.16.0-0.bpo.4-loongson-3
linux-headers-3.16.0-0.bpo.4-sb1-bcm91250a - Header files for Linux 3.16.0-0.bpo.4-sb1-bcm91250a
linux-headers-loongson-2e - Header files for Linux loongson-2e configuration (meta-package)
linux-headers-loongson-3 - Header files for Linux loongson-3 configuration (meta-package)
uname -r
3.0.8-12453-gb3bae40