芯路恒电子技术论坛

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

在Soc_EDS软件中不能启动DS-5,提示:$ bash: eclipse: 未找到命令

[复制链接]
  • TA的每日心情
    开心
    2020-4-8 09:14
  • 1

    主题

    2

    帖子

    58

    积分

    初级会员

    Rank: 3Rank: 3

    积分
    58
    发表于 2020-4-7 16:42:27 | 显示全部楼层 |阅读模式
    在设计时不能从在Soc_EDS的命令窗口中启动DS-5软件。窗口显示如下:

    即使已经进入到当前的eclipse目录下也是显示同样的信息。
    求各位有遇到过这问题的给个解答。
    现在我启动DS-5只能在Windows“开始”菜单里找到这个链接启动。我想可能是这样启动很多环境变量都没有自动加入,会造成之后的软件调试出现问题。


    我收集了以下的本机启动DS-5的信息。

    现有的启动文件Embedded_Command_Shell.bat如下:
    ----------------------------------------------------------------------------------------------------------------

    @ REM ###################################################
    @ REM #                                                 #
    @ REM # Intel FPGA SoC Embedded Command Shell           #
    @ REM #                                                 #
    @ REM # Execute this script to setup an environment for #
    @ REM # using the Intel FPGA Embedded Command Shell     #
    @ REM #                                                 #
    @ REM #                                                 #
    @ REM # Copyright (c) 2017 Intel Corporation            #
    @ REM # All Rights Reserved.                            #
    @ REM #                                                 #
    @ REM ###################################################

    @ REM ######################################
    @ REM # Ensure extensions are enabled
    @ setlocal enableextensions

    @ REM ######################################
    @ REM # Discover the root embedded directory

    @ set _SOCEDS_ROOT=%~dp0
    @ set _SOCEDS_ROOT=%_SOCEDS_ROOT:\=/%

    @ REM ######################################


    @ REM ######################################
    @ REM # Variable to ignore <CR> in DOS
    @ REM # line endings
    @ set SHELLOPTS=igncr

    @ REM ######################################
    @ REM # Variable to ignore mixed paths
    @ REM # i.e. G:/$SOPC_KIT_NIOS2/bin
    @ set CYGWIN=nodosfilewarning

    @ REM ######################################
    @ REM # Allow user to override HOME,
    @ REM # otherwise provide sensible default
    @ if not defined HOME if defined USERPROFILE set HOME=%USERPROFILE%

    @ REM ######################################
    @ REM # Launch cygwin soceds command shell

    :run_soceds_command_shell

    @ "%_SOCEDS_ROOT%host_tools/cygwin/bin/bash.exe" --login -c '"%_SOCEDS_ROOT%embedded_command_shell.sh" %*'

    ------------------------------------------------------------------------------------------------------------------


    另外 相应的Embedded_Command_Shell.sh文件如下:

    ----------------------------------------------------------------------------------------------------------------------

    #!/bin/bash
    ############################################################
    #                                                          #
    # Intel FPGA SoC Embedded Command Shell                    #
    #                                                          #
    #                                                          #
    # Copyright (c) 2017 Intel Corporation                     #
    # All Rights Reserved.                                     #
    #                                                          #
    ############################################################


    ############################################################
    #
    # Get the Root SOCEDS directory
    #

    if [ -n "${COMSPEC}" ]; then
        _IS_WINDOWS=1

        if [ "${SOCEDS_DESTROY_PATH}" == "1" ]; then   
            export ORIGINAL_PATH="${PATH}"
            PATH="/bin:/usr/bin"
        fi
    fi

    if [ "${_IS_WINDOWS}" = "1" ] && [ -n "$(which cygpath 2>/dev/null)" ]; then
        _IS_CYGWIN=1
    fi

    _SOCEDS_ROOT=$(cd "$(dirname "${0}")" && echo "$(pwd 2>/dev/null)")

    if [ ! -d "${_SOCEDS_ROOT}" ]; then
        echo "${_SOCEDS_ROOT} not found. Invalid or corrupt SOCEDS Install" 1>&2
        exit 1
    fi

    export SOCEDS_DEST_ROOT="${_SOCEDS_ROOT}"
    if [ "${_IS_CYGWIN}" == "1" ]; then
        SOCEDS_DEST_ROOT="$(cygpath -m "${SOCEDS_DEST_ROOT}" 2>/dev/null)"
    fi

    source "${_SOCEDS_ROOT}/env.sh"

    ############################################################


    unset _SOCEDS_ROOT
    unset _IS_WINDOWS
    unset _IS_CYGWIN


    if [ -n "$*" ]; then
        exec "$@"
    else
        echo "------------------------------------------------"
        echo "Intel FPGA Embedded Command Shell"
        echo
        echo "Version 17.1 [Build 590]"
        echo "------------------------------------------------"

        # Use bash --norc to get a clean shell
        # Use bash --rcfile <bashrc> to for a user rcfile
        # Default to using ~/.bashrc
        exec bash
    fi


    ----------------------------------------------------------------------------------



    回复

    使用道具 举报

  • TA的每日心情
    开心
    2020-4-8 09:14
  • 1

    主题

    2

    帖子

    58

    积分

    初级会员

    Rank: 3Rank: 3

    积分
    58
     楼主| 发表于 2020-4-8 09:16:15 | 显示全部楼层
    昨天自己将DS-5软件重新修复安装了一下。惊喜的是这个问题居然消失了。现在可以在这个命令行窗口下启动DS-5软件。
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2024-3-29 15:40 , Processed in 0.109096 second(s), 31 queries .

    Powered by Discuz! X3.4

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

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