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++
12603 Discussions

Loading image to SDRAM under ubuntu

Altera_Forum
Honored Contributor II
3,944 Views

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 Replies
Altera_Forum
Honored Contributor II
494 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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)
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

Did you reboot after changing the file? 

 

N.
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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

 

 

 

Thanks
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

If i run jtagconfig in root its showing error like  

 

command not found.
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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)
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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.
0 Kudos
Reply