经常有SoC开发的网友跟着小梅哥的SoC开发教程在Win10下开发SoC时,在SoC EDS下编译Uboot时出现无法解压uboot源码的问题(如标题描述),因此小梅哥特意去Intel技术官网找到了这篇解决方案的帖子,并进行了简单的翻译。
解决方案原文链接:
https://www.intel.com/content/al ... -in-windows-10.html
报错信息如下图所示:
(温馨提示,点击图片可查看高清大图)
Unable to make preloader in Windows 10
Description
This issue comes when using SOC EDS tool to generate the preloader. After creating the new HPS and BSP settings file, make command is giving a failure:
tar zxf /cygdrive/c/intelFPGA/18.0/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz
tar: Error opening archive: Failed to open '/cygdrive/c/intelFPGA/18.0/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz'
make: *** [uboot-socfpga/.untar] Error 1
该故障在使用SoC EDS生成preloader的时候出现。当创建了新的HPS和BSP设置文件,make命令会报如下失败:
tar zxf /cygdrive/c/intelFPGA/18.0/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz
tar: Error opening archive: Failed to open '/cygdrive/c/intelFPGA/18.0/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz'
make: *** [uboot-socfpga/.untar] Error 1
Workaround/Fix
维修方法:
In order to workaround this issue, two files need to be modifed before executing the make command.
为了维修该故障,在make命令之前需要修改两个文件。
1. C:\
\embedded\ip\altera\preloader\src\Makefile.template
1、C:\\embedded\ip\altera\preloader\src\Makefile.template文件
Change the current file with the attached one in this link (make sure to unzip file before you copy)
使用本帖子附件中的文件中的对应文件替换该“Makefile.template”文件
2. C:\\embedded\host_tools\cygwin\etc\fstabin
in fstab file:comment this line:
在fstab文件中,注释掉如下行内容
#non /cygdrive cygdrive binary,posix=0,user 0 0
and add this line instead:
并添加如下行内容以作为替换:
none /cygdrive cygdrive binary,posix=0,user,noacl 0 0
This issue is scheduled to be fixed in future release of Intel® Quartus Prime software.
该故障会在未来的新版本软件中修复。
本帖最后由 小梅哥 于 2019-1-29 11:27 编辑