关于ODYSSEY-STM32MP157C target工作环境搭建问题

斑竹,你好!我在设置WIFI过程中, 出现如下错误

Err:22 https://seeed-studio.github.io/seeed-linux-deb buster InRelease         
  Temporary failure resolving 'seeed-studio.github.io'

根据提示开启网络代理,或者在 /etc/hosts 文件增加一条记录

185.199.111.153 seeed-studio.github.io

然后执行:
debian@npi:~$ sudo apt install linux-headers-$(uname -r) -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
linux-headers-4.19.9-stm32-r1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.8 MB of archives.
After this operation, 73.3 MB of additional disk space will be used.
。。。
Fetched 10.8 MB in 5min 24s (33.4 kB/s)
Selecting previously unselected package linux-headers-4.19.9-stm32-r1.
(Reading database … 15920 files and directories currently installed.)
Preparing to unpack …/linux-headers-4.19.9-stm32-r1_1stable_armhf.deb …
Unpacking linux-headers-4.19.9-stm32-r1 (1stable) …
Setting up linux-headers-4.19.9-stm32-r1 (1stable) …
debian@npi:~$ git clone https://github.com/Seeed-Studio/seeed-linux-dtverlays
Cloning into ‘seeed-linux-dtverlays’…
remote: Enumerating objects: 382, done.
remote: Counting objects: 100% (382/382), done.
remote: Compressing objects: 100% (160/160), done.
remote: Total 1338 (delta 251), reused 338 (delta 220), pack-reused 956
Receiving objects: 100% (1338/1338), 1.73 MiB | 87.00 KiB/s, done.
Resolving deltas: 100% (590/590), done.
debian@npi:~$ cd seeed-linux-dtverlays
debian@npi:~/seeed-linux-dtverlays$ make all_stm32mp1 CUSTOM_MOD_FILTER_OUT="jtsn-wm8960"
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
DTC overlays/stm32mp1/stm32mp1-seeed-uart7-overlay.dtbo
/bin/sh: 1: cpp: not found
make[1]: *** [Makefile:208: overlays/stm32mp1/stm32mp1-seeed-uart7-overlay.dtbo] Error 127
make: *** [Makefile:150: all_stm32mp1] Error 2
debian@npi:~/seeed-linux-dtverlays$ sudo make install_stm32mp1 CUSTOM_MOD_FILTER_OUT="jtsn-wm8960"
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
mkdir -p /lib/firmware/
cp -v overlays/stm32mp1/.dtbo /lib/firmware/
cp: cannot stat 'overlays/stm32mp1/
.dtbo’: No such file or directory
make[1]: *** [Makefile:217: install_arch] Error 1
make: *** [Makefile:159: install_stm32mp1]
根据错误提示,脚本文件找不到dtc编译器和CPP。我又在target上安装gcc
debian@npi:~/seeed-linux-dtverlays$ sudo apt install ssh git wget curl gcc make -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
curl is already the newest version (7.64.0-4+deb10u1).
git is already the newest version (1:2.20.1-2+deb10u3).
make is already the newest version (4.2.1-1.2).
wget is already the newest version (1.20.1-1.1).
The following additional packages will be installed:
binutils binutils-arm-linux-gnueabihf binutils-common cpp cpp-8 gcc-8
libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libgcc-8-dev
libgomp1 libisl19 libmpc3 libmpfr6 libubsan1 libwrap0 linux-libc-dev
manpages manpages-dev ncurses-term openssh-server openssh-sftp-server ucf
Suggested packages:
binutils-doc cpp-doc gcc-8-locales gcc-multilib autoconf automake libtool
flex bison gdb gcc-doc gcc-8-doc libgcc1-dbg libgomp1-dbg libitm1-dbg
libatomic1-dbg libasan5-dbg liblsan0-dbg libtsan0-dbg libubsan1-dbg
libmpx2-dbg libquadmath0-dbg glibc-doc man-browser molly-guard monkeysphere
rssh ssh-askpass ufw
The following NEW packages will be installed:
binutils binutils-arm-linux-gnueabihf binutils-common cpp cpp-8 gcc gcc-8
libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libgcc-8-dev
libgomp1 libisl19 libmpc3 libmpfr6 libubsan1 libwrap0 linux-libc-dev
manpages manpages-dev ncurses-term openssh-server openssh-sftp-server ssh
ucf
0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.5 MB of archives.
After this operation, 93.9 MB of additional disk space will be used.
Get:1 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf openssh-sftp-server armhf 1:7.9p1-10+deb10u2 [38
.7 kB]
。。。
Fetched 29.5 MB in 12s (2528 kB/s)
Preconfiguring packages …
Selecting previously unselected package openssh-sftp-server.
(Reading database … 36702 files and directories currently installed.)
Preparing to unpack …/00-openssh-sftp-server_1%3a7.9p1-10+deb10u2_armhf.deb …
Unpacking openssh-sftp-server (1:7.9p1-10+deb10u2) …
Selecting previously unselected package ucf.
。。。。
Processing triggers for libc-bin (2.28-10) …
debian@npi:~/seeed-linux-dtverlays$ sudo apt install python3 python3-pip -y
Reading package lists… Done
Building dependency tree
。。。
Processing triggers for libc-bin (2.28-10) …
debian@npi:~/seeed-linux-dtverlays$ sudo apt install dtc -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package dtc
debian@npi:~/seeed-linux-dtverlays$ make all_stm32mp1 CUSTOM_MOD_FILTER_OUT="jtsn-wm8960"
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
/bin/sh: 1: dtc: not found
DTC overlays/stm32mp1/stm32mp1-seeed-uart7-overlay.dtbo
/bin/sh: 1: dtc: not found
make[1]: *** [Makefile:208: overlays/stm32mp1/stm32mp1-seeed-uart7-overlay.dtbo] Error 127
make: *** [Makefile:150: all_stm32mp1] Error 2
还是出现这种错误,按说DTC编译器在内核的源码中自带,如何解决还请斑竹指点迷津!多谢!

sudo apt install device-tree-compiler