Forum Discussion

MarkFanara's avatar
MarkFanara
Icon for New Contributor rankNew Contributor
4 years ago
Solved

nios2_command_shell fails

Running old Quartus Prime 18.0 on Windows 10

On some Windows 10 machines, I observe the following:

From the Nios II Eclipse environment, launching Nios II Command Shell fails. Also fails when launching from Dos window. The error messages "c:/intellFPGA_lite/18.0/nios2eds/nios2_command_shell.sh: line 41: /bin/dirname: Bad address

While on other Windows 10 machines, there is no problem

  • I determined that one particular line in the script C:\intelFPGA_lite\18.0\nios2eds\nios2_command_shell.sh works on one Windows 10 PC but not another.

    If I split the following line into two statements, then the problem goes away.

    _ACDS_ROOT=$(dirname $(dirname ${_this_nios2_command_shell_script}))

    Solution:

    _R1=$(dirname ${_this_nios2_command_shell_script})
    _ACDS_ROOT=$(dirname $_R1)

3 Replies

  • MarkFanara's avatar
    MarkFanara
    Icon for New Contributor rankNew Contributor

    I determined that one particular line in the script C:\intelFPGA_lite\18.0\nios2eds\nios2_command_shell.sh works on one Windows 10 PC but not another.

    If I split the following line into two statements, then the problem goes away.

    _ACDS_ROOT=$(dirname $(dirname ${_this_nios2_command_shell_script}))

    Solution:

    _R1=$(dirname ${_this_nios2_command_shell_script})
    _ACDS_ROOT=$(dirname $_R1)

  • SyafieqS's avatar
    SyafieqS
    Icon for Super Contributor rankSuper Contributor

    Hi Mark,


    Does the other machine has exact same env? In this case seem more to OS/env issue rather than Quartus. Could be during installation, there is some path messed up and causing the issue.



  • SyafieqS's avatar
    SyafieqS
    Icon for Super Contributor rankSuper Contributor

    Mark,


    May I know if you are able to work on this?