2014-03-12 42 views
0

我正在嘗試這個命令。 make stm32f429-discovery 我有stm32f429發現板(arm cortex M3)。我想安裝的u-boot它,我想這是每個在教程中給出,並得到這個錯誤.......我正在嘗試這個命令。 「make stm32f429-discovery」

/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 
+0

你構建工具鏈是不完整的。 – tripleee

回答

0

必須設置爲正確的路徑

例如:

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

export CROSS_COMPILE=arm-uclinuxeabi- 

export ARCH=arm 
相關問題