Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Diskussionen

The error message is as follows: "nios2-bsp-update-settings : command not found"

Michael2021
Einsteiger
7.251Aufrufe

 

I downloaded the A10_DP_RX_FMC_PRO.par file and compiled it with Quartus Pro 19.2.

 

AN 900: Intel® Arria 10 DisplayPort 8K RX-only Design

Link: https://www.intel.com/content/www/us/en/docs/programmable/683799/current/compiling-the-design.html

 

After opening the altera Nios2 Command Shell, I proceeded as in document an900.

When I run source build_sw.sh in the command shell, the following error occurs.


The error message is as follows:
"nios2-bsp-update-settings : command not found"

 

I send you a screenshot of the file directory contents and the execution result.

I have a Quartus Pro license.

I know that nios2 does not require a license. Is this error related to the nios2 licnse?

How to solve this error ?

 

Thanks

 

 

Beschriftungen (1)
0 Kudos
17 Antworten
AdrianaI_Altera
Mitarbeiter
7.227Aufrufe

Hi @Michael2021 

 

Have you confirmed that this is the correct path?

If you run "ls /mnt/c/intelFPGA_pro/19.2/nios2eds/sdk2/bin" do you see the "nios2-bsp-update-settings" file?

 

Michael2021
Einsteiger
7.215Aufrufe

Yes, there is the "nios2-bsp-update-setting.exe" file

Even if I run it from where the file is, the same message appears

Thanks

AdrianaI_Altera
Mitarbeiter
7.201Aufrufe

Can you please confirm what OS are you using? Are you running this in a WSL command line?

AdrianaI_Altera
Mitarbeiter
7.192Aufrufe

Hi @Michael2021 could you please also confirm if you'd already tried to execute the nios2_command_shell.bat/.sh file from a Windows CMD or PowerShell (C:\intelFPGA_pro\19.2\nios2eds) to setup an environment for using the Nios2eds Software Build Tools?

Michael2021
Einsteiger
7.174Aufrufe

 

nios2 command shell is automatically installed when installing quartus pro.
And I installed Eclipse IDE as shown below.
The procedure for installing Eclipse IDE in Windows environment:
1.
Create a temporary folder for you to use as a repository to build the necessary
component files before merging the files with the Intel Quartus Prime software.
2.
Download Eclipse C/C++ IDE for Mars.2 by clicking on Download CDT 8.8.1.

Locate and move the eclipse-cpp-mars-2-win32-x86_64.zip file to the
temporary folder.

Extract eclipse-cpp-mars-2-win32-x86_64.zip to get the eclipse
folder.
Tip: Try the mirror links if the main source link does not work.
3.
Copy the eclipse_nios2_plugins.zip file from <Intel® Quartus® Prime
installation directory>/nios2eds/bin to the temporary folder.

Extract eclipse_nios2_plugins.zip to get the eclipse_nios2 folder.
4.
Copy the content of eclipse_nios2 into eclipse folder. After you successfully
copy the content, delete the eclipse_nios2 folder.
5.
Rename eclipse into eclipse_nios2.
6.
Copy the new eclipse_nios2 folder and paste it in <Intel® Quartus® Prime
installation directory>/nios2eds/bin. Delete the temporary folder.
7.
Allow the merging of eclipse_nios2 folders.
8.
Verify the extraction is done correctly by making sure you see the <Intel®
Quartus® Prime installation directory>/nios2eds/bin/
eclipse_nios2/plugin_customization.ini file.
Up to this point, this is Eclipse IDE install.

 

 

After opening Windows Powershell in win11 pro OS
After running wsl --install
open Ubuntu
and I install additional distro packages as below
sudo apt update
sudo apt install wsl
sudo apt install dos2unix
sudo apt install make
sudo apt install build-essential

Run Nios2 command shell as below in WIN 11
" C:\intelFPGA_pro\19.2\nios2eds\Nios II Command Shell.bat"

 

Up to this point, it's preparation to run nios2 command shell.

 

Thanks

AdrianaI_Altera
Mitarbeiter
7.165Aufrufe

Hi @Michael2021 I meant to ask if you ran the "nios2-bsp-update-settings" inside the Nios2 command shell. It seems that you are running it from the WSL command shell.

 

Could you please also confirm which version of WSL and Ubuntu are you using?

Michael2021
Einsteiger
6.809Aufrufe

 

Welcome to Ubuntu 24.04.2 LTS (GNU/Linux 6.6.87.2-microsoft-standard-WSL2 x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro

 

Thanks

AdrianaI_Altera
Mitarbeiter
6.779Aufrufe

Hi @Michael2021 

Could you please try to run the command as this? "nios2-bsp-update-settings.exe" instead of "nios2-bsp-update-settings"

Michael2021
Einsteiger
6.769Aufrufe

i attached a screenshot 

 

Thanks

AdrianaI_Altera
Mitarbeiter
6.759Aufrufe

Thank you @Michael2021 

If you run "uname -r", are you getting something like this? "6.6.87.2-microsoft-standard-WSL2"? 

If so, can you please change the following line of the script?

From:

if [[ $uname =~ "Microsoft" ]]; then

to:

if [[ $uname =~ "microsoft" ]]; then

 

Michael2021
Einsteiger
6.741Aufrufe

works good

 

Thank you

BoonBengT_Altera
Moderator
6.239Aufrufe

Hi @Michael2021,


Greetings, just checking in to see if there is any further doubts in regards to this matter.

Hope your doubts have been clarified.


Best Wishes

BB


Michael2021
Einsteiger
5.863Aufrufe

Hi BB,

While running build_sw.sh in the nios2 command shell, the following error occurred:
make: nios2-elf-gcc.exe: No such file or directory.
I've attached three screenshots of this issue.
Please help me resolve this issue.

Thanks

 

Michael

Michael2021
Einsteiger
5.747Aufrufe

 

The actual directory contains "H-x86_64-mingw32", but the path only contains "H-i686-pc-linux-gnu".

Is this error related to this issue?

 

Thanks

Michael2021
Einsteiger
5.188Aufrufe
BoonBengT_Altera
Moderator
3.597Aufrufe

Hi @Michael2021,


Good to know that your doubts has been clarified, with no further clarification on this thread, it will be transitioned to community support for further help on doubts in this thread. 


Please login to ‘ https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.

Thank you for the questions and as always pleasure having you here.


Best Wishes

BB


Antworten