首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NPi i.MX6ULL Linux SBC -很难找到Linux头

NPi i.MX6ULL Linux SBC -很难找到Linux头
EN

Unix & Linux用户
提问于 2020-10-15 13:44:21
回答 1查看 173关注 0票数 0

我目前使用的是NPi i.MX6ULL开发板Linux。

我正试图通过以下教程来启动和运行SPI功能:https://wiki.seeedstudio.com/NPi-i.MX6ULL-Dev-Board-Linux-SBC/#spi

在本教程中运行的命令之一是: apt install -y make git设备-tree编译器linux头$(uname -r) gcc。

当我运行这个命令时,我无法为我的linux版本设置任何包。

指挥结果:

读取包列表…建立依赖树读取状态信息…Done E:无法定位包linux-headers 4.19.71-imx-R1 E:无法通过glob‘linux-headers 4.19.71-IMX-R1’E找到任何包

我正在使用最新的固件,是托管在SEEED的网站上。(无名-r: 4.19.71-imx-r1)

我对我在这里应该做什么感到不知所措。我很确定我需要这些依赖项,因为下面的步骤让我克隆一个github,并且我缺少一些东西来预置make操作。

代码语言:javascript
复制
root@npi:~# git clone https://github.com/Seeed-Studio/seeed-linux-dtverlays

Cloning into 'seeed-linux-dtverlays'...

remote: Enumerating objects: 385, done.

remote: Counting objects: 100% (385/385), done.

remote: Compressing objects: 100% (161/161), done.

remote: Total 1341 (delta 253), reused 341 (delta 222), pack-reused 956

Receiving objects: 100% (1341/1341), 1.73 MiB | 1.46 MiB/s, done.

Resolving deltas: 100% (592/592), done.

root@npi:~# cd seeed-linux-dtverlays/

root@npi:~/seeed-linux-dtverlays# make all_imx6ull && make install_imx6ull

  DTC     overlays/imx6ull/imx-gpio-grove-button.dtbo

  DTC     overlays/imx6ull/imx-seeed-voicecard-2mic-overlay.dtbo

  DTC     overlays/imx6ull/imx-MCP2517FD-can0-overlay.dtbo

  DTC     overlays/imx6ull/imx-uart3-e-ink.dtbo

  DTC     overlays/imx6ull/imx-i2c2-overlay.dtbo

  DTC     overlays/imx6ull/imx-fire-lcd5-01-overlay.dtbo

make[1]: *** /lib/modules/4.19.71-imx-r1/build: No such file or directory.  Stop.

make: *** [Makefile:151: all_imx6ull] Error 2

任何人所能提供的任何帮助或建议,在外部都是有帮助的。我愿意在这里做任何事。

编辑:

所以我试着删除linux版本上剩下的-imx-r1标记,以获取我认为可能需要的文件。它看起来还没有一个主机文件为设备树编译器的-imx-r1。

代码语言:javascript
复制
root@npi:~/seeed-linux-dtoverlays# apt install -y make git device-tree-compiler linux-headers-4.19.71  gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-4.19.71-bone38' for regex 'linux-headers-4.19.71'
Note, selecting 'linux-headers-4.19.71-armv7-rt-x38' for regex 'linux-headers-4.19.71'
Note, selecting 'linux-headers-4.19.71-armv7-lpae-x38' for regex 'linux-headers-4.19.71'
Note, selecting 'linux-headers-4.19.71-armv7-x38' for regex 'linux-headers-4.19.71'
Note, selecting 'linux-headers-4.19.71-bone-rt-r38' for regex 'linux-headers-4.19.71'
device-tree-compiler is already the newest version (1.4.7-3).
gcc is already the newest version (4:8.3.0-1).
gcc set to manually installed.
git is already the newest version (1:2.20.1-2+deb10u3).
make is already the newest version (4.2.1-1.2).
make set to manually installed.
The following NEW packages will be installed:
  linux-headers-4.19.71-armv7-lpae-x38 linux-headers-4.19.71-armv7-rt-x38
  linux-headers-4.19.71-armv7-x38 linux-headers-4.19.71-bone-rt-r38
  linux-headers-4.19.71-bone38
0 upgraded, 5 newly installed, 0 to remove and 11 not upgraded.
Need to get 54.9 MB of archives.
After this operation, 372 MB of additional disk space will be used.

但是,当我尝试运行make命令时,它仍然是坏的。

代码语言:javascript
复制
make[1]: *** /lib/modules/4.19.71-imx-r1/build: No such file or directory. Stop.
make: *** [Makefile:151: all_imx6ull] Error 2

它是专门寻找-imx-r1,但我不认为它存在?

EN

回答 1

Unix & Linux用户

发布于 2020-10-16 13:09:39

因此,正如我所想的那样,我需要一些其他的依赖关系。

我需要安装位于这里的文件:

https://seeed-studio.github.io/seeed-linux-deb/

代码语言:javascript
复制
echo "deb https://seeed-studio.github.io/seeed-linux-deb/ buster main" | sudo tee /etc/apt/sources.list.d/seeed.list

curl -k https://seeed-studio.github.io/seeed-linux-deb/public.key | sudo apt-key add -

完成此操作后,我能够运行所需的其他命令:

代码语言:javascript
复制
sudo apt update
sudo apt install linux-headers-4.19.71-imx-r1

哦,我还做了一个"apt全升级“命令,以防万一。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/614686

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档