当在windows下make preloader的时候报错:
tar zxf /cygdrive/c/intelFPGA/18.1/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz
tar: Error opening archive: Failed to open '/cygdrive/c/intelFPGA/18.1/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz'
make: *** [uboot-socfpga/.untar] Error 1
1. 首先将下面的文件下载并解压,替换路径 C:\intelFPGA\18.1\embedded\ip\altera\preloader\src 下的 Makefile.template文件,https://www.intel.com/content/dam/altera-www/global/en_US/uploads/4/49/Makefile.zip https://www.intel.cn/content/www/cn/zh/support/programmable/articles/000077322.html
2. 然后打开C:\intelFPGA\18.1\embedded\host_tools\cygwin\etc路径下的fstab文件,注释掉第8行, 添加第9行:none /cygdrive cygdrive binary,posix=0,user,noacl 0 0。
但是这样操作以后 (这些操作可以直接参考intel官网的相关内容:
https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base/embedded/2018/unable-to-make-preloader-in-windows-10.html)还是继续报同样的错误,然后输入:export PATH=/bin:$PATH 这时候再make, 就不会报错了!