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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

load kernel linux in 2C35 board

Altera_Forum
Honored Contributor II
1,753 Views

load kernel linux in board 2c35  

Hello, 

 

 

i have a problem to load kernal of µclinux in board 2C35, you have any solution to do this,using commande linux of host pc or quartus or nios2eds ? 

 

i followed the step of this link  

http://nioswiki.com/operatingsystems...uartusforlinux (http://nioswiki.com/operatingsystems/uclinux/quartusforlinux

 

but when i tape jtagconfig the message appeare 

 

[NiosII EDS]$ jtagconfig 

bash: jtagconfig : commande not found  

/opt 

 

 

if you have any suggestion for this
0 Kudos
13 Replies
Altera_Forum
Honored Contributor II
1,030 Views

Hi there, 

thats the same problem as in your other post, your path variable is not correct. 

 

Again for me its: 

PATH=$PATH:/opt/altera9.1sp2/quartus/bin/
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

hello, 

 

thank's for you , 

 

just i'm know in the next step when i would execute this commande: 

 

nios2-download -g /opt/altera9.1sp1/nios2-linux/uClinux-dist/images 

the follow errors appears 

 

[NiosII EDS]$ nios2-download -g /opt/altera9.1sp1/nios2-linux/uClinux-dist/images/zImage 

/opt/altera9.1sp1/nios2eds/bin/nios2-download: line 586: nios2-elf-objcopy : commande introuvable 

/opt/altera9.1sp1/nios2eds/bin/nios2-gdb-server-wrapped: error while loading shared libraries: libjtag_client.so: cannot open shared object file: no such file or directory 

 

please what i should do ?
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

you obviously have a big problem with your environment variables. Chech all your Quartus installation, find out where all the Quartus and Nios executables are, and check that your environment variables are correct.

0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

hello, 

 

my variable PATH is 

 

 

usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/root/bin:/opt/altera9.1sp1/quartus/bin:/opt/altera9.1sp1/quartus/linux:/opt/altera9.1sp1/nios2eds/bin 

 

so do you think in this PATH there is any problem ? 

or i should add any things ?
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

What are the contents of LD_LIBRARY_PATH, QUARTUS_ROOTDIR and SOPC_KIT_NIOS2 ? 

You also seem to be missing the path to the GNU tools (something like /opt/altera9.1sp1/nios2eds/bin/nios2-gnutools/H-i686-pc-linux-gnu/bin)
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

hello, 

 

thank's for advices 

 

i add the  

/opt/altera9.1sp1/nios2eds/bin/nios2-gnutools/H-i686-pc-linux-gnu/bin)to the PATH 

when i execute the commande  

 

[NiosII EDS]$ nios2-download -g /opt/altera9.1sp1/nios2-linux/uClinux-dist/images/zImage 

the message appear: 

 

Using cable "USB-Blaster [USB 7-1.2]", device 1, instance 0x00 

Pausing target processor: not responding. 

Resetting and trying again: FAILED 

Leaving target processor paused 

 

for the value of variable: 

QUARTUS_ROOTDIR=/opt/altera9.1sp1/quartus  

$SOPC_KIT_NIOS2 =/opt/altera9.1sp1/nios2eds 

 

 

but there are anthing in variable  

LD_LIBRARY_PATH ?
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

I am getting this same error while trying to download a Linux image, except it seems a little bit intermittent. 

 

The download was working, then it wasn't. Then it failed the first time but succeeded on the retry. After that, it worked for a while, but then failed again. For what its worth, the time it failed and succeeded on the retry was using Windows. Most of the time, I have been using Linux.
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

The quartus tools and USB drivers seem to work this time, but they can't find the CPU in the FPGA. 

Did you configure the FPGA with the proper .sof image first?
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

The .sof file is in the flash. However, even when I try to download it using 'nios2-configure-sof', I still have trouble running with the 'nios2-download'. 

 

I was able to briefly regain good performance after running this same sequence on the Windows partition. Eventually, it started failing on the Linux side with this same error.
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

Are you sure it is the exact same .sof file in both cases? I fail to see why the CPU wouldn't respond when you try to access it from the linux machine. 

When you run nios2-configure-sof on the silux machine, are you sure everything goes well? No error?
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

@Daixiwen, If you were referring to my problem, here is my response. 

 

There are no errors when I run nios2-configure-sof. The .sof files in flash and RAM are almost identical. From a software interface standpoint, they would be the same as nothing changed in SOPC builder, just a few GPIO pins were re-routed. 

 

Right now, the problem has not resurfaced, so I'm going to let it go for the moment since I can't gather more relevant data.
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

hello, 

 

for my situation i configure the FPGA with .sof, 

 

there are two .sof one with VHDL other with verilog 

i use the last with verilog 

 

but do you think this .sof work good,because i try to compile it with quatus give many erros? 

 

error: Tcl Script File NiosII_cycloneII_2c35_full_featured_sopc.qip not found 

Info: set_global_assignment -name QIP_FILE NiosII_cycloneII_2c35_full_featured_sopc.qip 

error: Tcl Script File ddr_sdram_0.qip not found 

Info: set_global_assignment -name QIP_FILE ddr_sdram_0.qip
0 Kudos
Altera_Forum
Honored Contributor II
1,030 Views

You may have to generate the sopc system first. Open SOPC Builder and click "generate"

0 Kudos
Reply