芯路恒电子技术论坛

 找回密码
 立即注册
热搜: 合集
查看: 9252|回复: 0

[soc]win10下生成preloader报Failed to open gdrive/……/uboot-socfpga.tar.gz

[复制链接]
  • TA的每日心情
    慵懒
    2021-2-24 10:16
  • 418

    主题

    769

    帖子

    1万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    15805
    QQ
    发表于 2018-12-25 14:11:50 | 显示全部楼层 |阅读模式
    解决方案原文链接: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

    报错信息如下图所示:
    QQ图片20181225140002.png
    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:\<installation_directory>\embedded\ip\altera\preloader\src\Makefile.template
    译文:1、C:\<installation_directory>\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”文件
    Makefile.zip (2.36 KB, 下载次数: 632)

    原文:2. C:\<installation_directory>\embedded\host_tools\cygwin\etc\fstabin in fstab file:comment this line:
    译文:在fstab文件中,注释掉如下行内容  
    1. #none /cygdrive cygdrive binary,posix=0,user 0 0
    复制代码
    原文:and add this line instead:
    译文:并添加如下行内容以作为替换:
    1. 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.
    译文:该故障会在未来的新版本软件中修复。




    特别注意:修改完成之后需要删除工程目录下的software文件夹中的“spl_bsp”文件夹后重新通过bsp-editor生成bsp文件再编译,否则还是会继续报错。



    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|小黑屋|Archiver|芯路恒电子技术论坛 |鄂ICP备2021003648号

    GMT+8, 2024-3-29 05:00 , Processed in 0.113220 second(s), 35 queries .

    Powered by Discuz! X3.4

    © 2001-2017 Comsenz Inc. Template By 【未来科技】【 www.wekei.cn 】

    快速回复 返回顶部 返回列表