Solved
Forum Discussion
tehjingy_Altera
Regular Contributor
1 year agoHi
Just curious did you installed the required packages in the linux distribution?
If you have done that, then could you try launching the eclipse ide with administrator privilege?
Regards
Jingyang, Teh
Rainwang
Contributor
1 year agoHi,
I checked my installation per the link you provided, all steps were done.
1. windows version: 22H2 19045.4651
2. WSL 1 and Ubuntu 18.04 installed.
3. windows subsystem for linux option turned on.
4. After reset PC, below commands were run.
sudo apt update
sudo apt install wsl
sudo apt install dos2unix
sudo apt install make
sudo apt install build-essential
5. try to generate the HEX file, still the same error appears.
6. open the Nios II EDS with administrator privilege, also the same error as below:
15:13:50 **** Build of configuration Nios II for project OTS_power_assist ****
wsl make mem_init_generate
Info: Building /mnt/c/myproject/force_assist/G4_force_assisted_OTS_FPGA/01_project/software/OTS_power_assist_bsp/
make --no-print-directory -C /mnt/c/myproject/force_assist/G4_force_assisted_OTS_FPGA/01_project/software/OTS_power_assist_bsp/
[BSP build complete]
Post-processing to create mem_init/program_ram.hex...
elf2hex.exe OTS_power_assist.elf 0x00020000 0x0002bfff --width=32 --little-endian-mem --create-lanes=0 mem_init/program_ram.hex
Post-processing to create mem_init/hdl_sim/program_ram.dat...
elf2dat --infile=OTS_power_assist.elf --outfile=mem_init/hdl_sim/program_ram.dat \
--base=0x00020000 --end=0x0002bfff --width=32 \
--little-endian-mem --create-lanes=0
/mnt/c/intelFPGA/21.1/nios2eds/bin/elf2dat: 2: .: Can't open /bin/sh_pl.sh
make: *** [mem_init/hdl_sim/program_ram.dat] Error 2
/mnt/c/myproject/force_assist/G4_force_assisted_OTS_FPGA/01_project/software/OTS_power_assist_bsp/mem_init.mk:301: recipe for target 'mem_init/hdl_sim/program_ram.dat' failed
15:13:52 Build Finished (took 1s.345ms)
thanks and regards,
Rain