hidden text to trigger early load of fonts ПродукцияПродукцияПродукцияПродукция Các sản phẩmCác sản phẩmCác sản phẩmCác sản phẩm المنتجاتالمنتجاتالمنتجاتالمنتجات מוצריםמוצריםמוצריםמוצרים
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++
12686 Discussões

Loading image to SDRAM under ubuntu

Altera_Forum
Colaborador honorário II
5.351 Visualizações

Hi, 

 

 

I am trying to run uclinux on DE0-Nano, and i successfully generated the zImage, but iam unable to load the image into SDRAM, it showing error like 

 

alex@alex:~$ nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage 

 

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

 

 

 

Where is the mistake? 

Thanks in advance.
0 Kudos
35 Respostas
Altera_Forum
Colaborador honorário II
964 Visualizações

Myself added , 

 

1.mkdir /etc/jtagd 

cp /opt/quartus/linux/pgm_parts.txt /etc/jtagd/jtagd.pgm_parts 

 

2.etc/rc.local---> /opt/quartus/bin/jtagd 

 

3.empty file called .jtagd.conf created in home directory, even though same problem when i typed in terminal "jtagconfig" 

 

1) USB-Blaster variant [7-1] 

Unable to lock chain (Insufficient port permissions) 

 

 

plz any help?
Altera_Forum
Colaborador honorário II
964 Visualizações

alex@alex:~$ cat /lib/udev/rules.d/51-usbblaster.rules 

 

echo 'attr{idvendor}=="09fb", attr{idproduct}=="6001" mode="666"' 

 

 

ya its showing ,after that i reboot my machine also.
Altera_Forum
Colaborador honorário II
964 Visualizações

The rules file should not contain "echo". This means that you did not use the file from my zip archive at this post (http://www.alteraforum.com/forum/showpost.php?p=154547&postcount=9

 

Use the file from the zip file to overwrite the existing 51-usbblaster.rules file and try again. 

 

N.
Altera_Forum
Colaborador honorário II
964 Visualizações

Now i changed the 51-usbblaster.rules files, but .... 

 

 

alex@alex:~$ cat /lib/udev/rules.d/51-usbblaster.rules 

attr{idvendor}=="09fb", attr{idproduct}=="6001", mode="666" 

alex@alex:~$ jtagconfig 

1) usb-blaster variant [7-1] 

unable to lock chain (insufficient port permissions)
Altera_Forum
Colaborador honorário II
964 Visualizações

Did you reboot after changing the file? 

 

N.
Altera_Forum
Colaborador honorário II
964 Visualizações

ya, i reboot the system, but no use, same problem.........

Altera_Forum
Colaborador honorário II
964 Visualizações

That should have worked. Maybe you can try one of the other solutions from this thread (http://www.alteraforum.com/forum/showthread.php?t=5893). 

 

N.
Altera_Forum
Colaborador honorário II
964 Visualizações

Really so sad, what i have to , y jtagconfig is not working , else can i try it under windows? any suggestions? 

 

 

 

Thanks
Altera_Forum
Colaborador honorário II
964 Visualizações

In my case usb-blaster is working, in those posts they explained about usb-blaster on uubntu only, really i dont know , what i have to do, nearly one week , i tried but failed. 

can i try it in windows? 

 

 

Thanks for ur suggestions.
Altera_Forum
Colaborador honorário II
964 Visualizações

You can always try running everything as root. Just type "sudo su" at the command prompt to become root (that way you don't have to type sudo everytime) and run jtagconfig. 

 

N.
Altera_Forum
Colaborador honorário II
964 Visualizações

My /etc/rc.local is like ,  

 

 

# !/bin/sh -e# # rc.local# # This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.# # In order to enable or disable this script just change the execution# bits.# # By default this script does nothing. 

 

 

 

mount --bind /dev/bus /proc/bus 

ln -s /sys/kernel/debug/usb/devices /proc/bus/usb/devices 

 

/opt/quartus/bin/jtagd 

exit  

 

Thanks, 

Alex
Altera_Forum
Colaborador honorário II
964 Visualizações

If i run jtagconfig in root its showing error like  

 

command not found.
Altera_Forum
Colaborador honorário II
964 Visualizações

Helo sir, 

 

1)While rebootinng my os its showing the error 

 

an error occured while mounting /proc/bus/usb press s to skip or m for manual recovery. 

 

2.alex@alex:/$ jtagconfig 

1) usb-blaster [7-1] 

020f30dd ep3c25/ep4ce22 

 

2)alex@alex:/$ killall jtagd 

jtagd(1154): operation not permitted 

jtagd: no process found 

 

3)alex@alex:/$ nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage 

there are no nios ii cpus with debug modules available which match the values 

specified. please check that your pld is correctly configured, downloading a 

new sof file if necessary. 

 

and another error is /opt/quartus/linux/libstdc++.s0.6: version 'glibcxx_3.4.11' not found (required by /user/lib/i386-linux-gnu/libproxy.so.1) showing when i tried to open quartus 

 

 

Where is the mistake ? kindly any help? 

 

Thanks, 

Alex. 

(http://www.alteraforum.com/forum/editpost.php?do=editpost&p=154758)
Altera_Forum
Colaborador honorário II
964 Visualizações

Did you upload an FPGA image before trying to upload the nios 2 software? If yes, where does this image come from?

Altera_Forum
Colaborador honorário II
964 Visualizações

Thanks for ur suggestions, and also thanks to nicocornelis,because he suggested mi in correct way to download image into sdram. 

 

 

I need one help sir, 

 

 

Now i wants to work with DE2,DE4 with uclinux, kindly provide any tutorials 

 

 

 

 

Thanks, 

Alex.
Responder