尝试安装 linux 头文件,但在源代码中找不到

尝试安装 linux 头文件,但在源代码中找不到

我有一个 ts7400v2 sbc,我正在尝试安装 linux-headers。我跑:

 sudo apt-get install build-essential linux-headers-$(uname -r)

但出现以下错误:

sudo: unable to resolve host ts7400-4e7b7c
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-2.6.35.3-571-gcca29a0
E: Couldn't find any package by regex 'linux-headers-2.6.35.3-571-gcca29a0'

我缺少特定的来源吗?

编辑:

输出uname -a

Linux ts7400-4e7b7c 2.6.35.3-571-gcca29a0+ #2 PREEMPT Mon Mar 16 14:56:01 PDT 2015 armv5tejl GNU/Linux

输出为apt-cache search linux-headers

linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-all-armel - 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-iop32x - Header files for Linux 3.2.0-4-iop32x
linux-headers-3.2.0-4-ixp4xx - Header files for Linux 3.2.0-4-ixp4xx
linux-headers-3.2.0-4-kirkwood - Header files for Linux 3.2.0-4-kirkwood
linux-headers-3.2.0-4-mv78xx0 - Header files for Linux 3.2.0-4-mv78xx0
linux-headers-3.2.0-4-orion5x - Header files for Linux 3.2.0-4-orion5x
linux-headers-3.2.0-4-versatile - Header files for Linux 3.2.0-4-versatile
linux-headers-3.2.0-5-all - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-5-all-armel - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-5-common - Common header files for Linux 3.2.0-5
linux-headers-3.2.0-5-iop32x - Header files for Linux 3.2.0-5-iop32x
linux-headers-3.2.0-5-ixp4xx - Header files for Linux 3.2.0-5-ixp4xx
linux-headers-3.2.0-5-kirkwood - Header files for Linux 3.2.0-5-kirkwood
linux-headers-3.2.0-5-mv78xx0 - Header files for Linux 3.2.0-5-mv78xx0
linux-headers-3.2.0-5-orion5x - Header files for Linux 3.2.0-5-orion5x
linux-headers-3.2.0-5-versatile - Header files for Linux 3.2.0-5-versatile
linux-headers-2.6-iop32x - Header files for Linux iop32x configuration (dummy package)
linux-headers-2.6-ixp4xx - Header files for Linux ixp4xx configuration (dummy package)
linux-headers-2.6-kirkwood - Header files for Linux kirkwood configuration (dummy package)
linux-headers-2.6-orion5x - Header files for Linux orion5x configuration (dummy package)
linux-headers-2.6-versatile - Header files for Linux versatile configuration (dummy package)
linux-headers-iop32x - Header files for Linux iop32x configuration (meta-package)
linux-headers-ixp4xx - Header files for Linux ixp4xx configuration (meta-package)
linux-headers-kirkwood - Header files for Linux kirkwood configuration (meta-package)
linux-headers-mv78xx0 - Header files for Linux mv78xx0 configuration (meta-package)
linux-headers-orion5x - Header files for Linux orion5x configuration (meta-package)
linux-headers-versatile - Header files for Linux versatile configuration (meta-package)

答案1

标准 Debian 内核不支持 TS4700 v2 SBC,它使用制造商提供的变体。这意味着您不能使用 Debian 提供的内核包,包括头包。

要为系统构建额外的模块,您应该交叉编译,不建议在 SBC 上构建内核。看TS 维基了解详情;基本上,您需要克隆适当的存储库并使用它来构建:

git clone https://github.com/embeddedarm/linux-2.6.35.3-imx28.git

相关内容