本文主要是介绍cycloneV 使用AlteraSoC嵌入式设计套装编译uboot遇到的问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
这里使用的是15.1的版本;前面的很多步骤我这里就忽略了,直接到我遇到的问题那里。
首先我们用bsp-editor.exe生成software文件夹,里面有个Makefile文件,这个是用来编译uboot的,我们make后出错,这里要说明一下,我使用的操作系统为win10系统,win7我测试过了是可以顺利通过的,这个很可能就是win10不兼容的缘故了。make之后如下
这个问题是解压时候的问题,解压失败,那我手动解压再进行下一步的工作,所以修改Makefile112-114,将其注释,这样就可以顺利进行。
# When using UBoot build system on Windows it's good idea to use cygwin's GNU make
MAKE := $(shell cygpath -m "/bin/make")
MAKE_ARGS += MAKE=/bin/makeCYGPATH := $(shell cygpath -m "$(shell which cygpath)")
MAKE_ARGS += CYGPATH=$(CYGPATH)UNAME_M := $(shell uname -m)
ifeq ($(UNAME_M),x86_64)
HOST_CROSS_COMPILE := x86_64-w64-mingw32-
else
HOST_CROSS_COMPILE := i686-pc-mingw32-
endifMAKE_ARGS += HOSTCC=$(HOST_CROSS_COMPILE)gcc HOSTSTRIP=$(HOST_CROSS_COMPILE)strip# Under cygwin, overload the untar_recipe function to use unix stype paths. This is required for cygwin tar
#define untar_recipe
#$(UNTAR) $(shell cygpath --unix "$(if $1,$1,$(if $<,$<,$(error ERROR: no input provided to gnu make function untar_recipe)))")
#endefelse # if HOSTOS != cygwinifdef WINDIR
$(error ERROR: Windows build of preloader requires cygwin build environment. Ensure this makefile is executed from the SoC EDS Command Shell)
endif
ifdef windir
$(error ERROR: Windows build of preloader requires cygwin build environment. Ensure this makefile is executed from the SoC EDS Command Shell)
endifendif # HOSTOS == cygwin
###############################################################################
但是,同样是win10在不同电脑下编译成不成功还是一个问题,两台电脑,都是win10的系统但一台成功一台不成功,操作的方法都是一样的,这个就很郁闷了,报出这个错如下
不管怎么给权限都是提示没有权限,无意间我发现,只要把software文件夹删掉,再重新恢复到原来的地方,就可以编译通过,反复测试了好几次都是这个样子。。。编译成功!
这篇关于cycloneV 使用AlteraSoC嵌入式设计套装编译uboot遇到的问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!