0

我正在尝试这个命令。make stm32f429-discovery 我有 stm32f429-discovery board(arm cortex M3)。我想在它上面安装u-boot,我正在按照教程中给出的方法尝试这个,并得到这个错误.......

/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
Configuring for stm32f429-discovery board...
make
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
make[1]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot'
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
Generating include/autoconf.mk
/bin/bash: line 3: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
Generating include/autoconf.mk.dep
/bin/bash: line 3: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
make[1]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot'
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
make[1]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot'
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
for dir in tools examples/standalone examples/api cpu/arm_cortexm3 /home/uzair/Documents/linux-cortexm-1.12.1/u-boot/cpu/arm_cortexm3/ ; do \
            make -C $dir _depend ; done
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[2]: arm-uclinuxeabi-gcc: Command not found
make[2]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/tools'
make[2]: Nothing to be done for `_depend'.
make[2]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/tools'
make[2]: arm-uclinuxeabi-gcc: Command not found
make[2]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/examples/standalone'
/bin/sh: 1: arm-uclinuxeabi-gcc: not found
dirname: missing operand
Try `dirname --help' for more information.
make[2]: Nothing to be done for `_depend'.
make[2]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/examples/standalone'
make[2]: arm-uclinuxeabi-gcc: Command not found
make[2]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/examples/api'
/bin/sh: 1: arm-uclinuxeabi-gcc: not found
dirname: missing operand
Try `dirname --help' for more information.
make[2]: Nothing to be done for `_depend'.
make[2]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/examples/api'
make[2]: arm-uclinuxeabi-gcc: Command not found
make[2]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/cpu/arm_cortexm3'
make[2]: Nothing to be done for `_depend'.
make[2]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/cpu/arm_cortexm3'
make[2]: arm-uclinuxeabi-gcc: Command not found
make[2]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/cpu/arm_cortexm3'
make[2]: Nothing to be done for `_depend'.
make[2]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/cpu/arm_cortexm3'
make -C tools all
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[2]: arm-uclinuxeabi-gcc: Command not found
make[2]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/tools'
make[2]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/tools'
make -C examples/standalone all
/bin/bash: /home/uzair/Documents/linux-cortexm-1.12.1/tools/arm-2010q1/bin/arm-uclinuxeabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[2]: arm-uclinuxeabi-gcc: Command not found
make[2]: Entering directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/examples/standalone'
/bin/sh: 1: arm-uclinuxeabi-gcc: not found
dirname: missing operand
Try `dirname --help' for more information.
arm-uclinuxeabi-gcc  -g  -Os   -g2 -mthumb -mcpu=cortex-m3 -fsigned-char -O2 -fno-builtin-puts -fno-common -ffixed-r8 -D__KERNEL__ -I/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/include -fno-builtin -ffreestanding -isystem  -pipe  -DCONFIG_ARM -D__ARM__ -DCONFIG_MEM_NVM_BASE= -DCONFIG_MEM_NVM_LEN= -DCONFIG_MEM_NVM_UBOOT_OFF=0x0 -DCONFIG_MEM_RAM_BASE= -DCONFIG_MEM_RAM_LEN= -DCONFIG_MEM_RAM_BUF_LEN= -DCONFIG_MEM_MALLOC_LEN= -DCONFIG_MEM_STACK_LEN= -I/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/cpu/arm_cortexm3 -Wall -Wstrict-prototypes    -o hello_world.o hello_world.c -c
make[2]: arm-uclinuxeabi-gcc: Command not found
make[2]: *** [hello_world.o] Error 127
make[2]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot/examples/standalone'
make[1]: *** [examples/standalone] Error 2
make[1]: Leaving directory `/home/uzair/Documents/linux-cortexm-1.12.1/u-boot'
make: *** [stm32f429-discovery] Error 2
4

2 回答 2

0

您必须设置正确的路径

例如:

export PATH=/usr/local/csl/arm-2010q1/bin:$PATH

export CROSS_COMPILE=arm-uclinuxeabi-

export ARCH=arm
于 2014-10-01T15:01:40.680 回答
0

STM32F429 Discovery 基于 ARM Cortex-M4F 而不是 Cortex-M3 内核。您可以考虑使用另一个构建器来准备 u-boot + uClinux + 根文件系统映像:https ://github.com/jserv/stm32f429-linux-builder

于 2014-03-13T19:55:11.470 回答