我一直在跟踪这个关于如何在嵌入式系统上设置基本引导加载程序配置的教程。我被困在了U型启动部分,因为我无法制造它。
下载U引导
git clone https://github.com/STMicroelectronics/u-boot.git
cd u-boot
git checkout v2018.11-stm32mp-r2.1构建软件
export CROSS_COMPILE=arm-linux-
make stm32mp15_basic_defconfig
make menuconfig
sudo apt install device-tree-compiler
make DEVICE_TREE=stm32mp157a-dk1在输入make DEVICE_TREE=stm32mp157a-dk1时,终端显示以下错误消息:
make: arm-linux-gcc: Command not found
/bin/sh: 1: arm-linux-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf --syncconfig Kconfig
./scripts/binutils-version.sh: line 18: arm-linux-as: command not found
CHK include/config.h
CFG u-boot.cfg
/bin/sh: 1: arm-linux-gcc: not found
make[1]: *** [scripts/Makefile.autoconf:77: u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.我将工具链和U文件夹添加到PATH中。arm-linux-gcc也涉及到arm-training-linux-uclibcgnueabihf。
我是嵌入式系统和Linux的新手。
我在网上搜索解决方案。问题似乎在于它使用的是x86而不是arm (?)安装lib32bz1似乎解决了这个问题。但是,这对我不起作用。
是什么导致了这一切?我该怎么解决这个问题?
发布于 2021-01-12 07:41:26
交叉编译器的路径是错误的。检查您到交叉编译器的路径,检查您是否可以从cmd行输入arm-linux-gcc访问gcc,是否可以访问交叉编译器。
https://unix.stackexchange.com/questions/623749
复制相似问题