Forum Discussion
Altera_Forum
Honored Contributor
13 years agoLoading image to SDRAM under ubuntu
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.35 Replies
- Altera_Forum
Honored Contributor
My guess is that you need to add the quartus library directory containing the required so files to the LD_LIBRARY_PATH variable.
For Quartus v12.0 it should be located in <path-to-quartus>/12.0/quartus/linux64 where <path-to-quartus> depends on where you installed the software. Try this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path-to-quartus>/12.0/quartus/linux64; nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage N. - Altera_Forum
Honored Contributor
Thanks for ur reply sir,but i executed the nios2-download command its showing like this
alex@alex:~$ nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage there is a problem with the quartus ii installation on your computer.please use `jtagconfig` for further diagnosis.
Kindly any help? Thanks, Alex.
- Altera_Forum
Honored Contributor
Can you try executing that command as root? Just to check if it's a permission issue.
N. - Altera_Forum
Honored Contributor
Thanks you sir, tried as root but.......
alex@alex:~$ sudo nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage [sudo] password for alex: ***** sudo: nios2-download: command not found alex@alex:~$ gksudo nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage here it doesnt show any error but no output,just it return to command prompt alex@alex:~$ gksudo ./nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage here also it doesnt show any error but no output,just it return to command prompt Else i have to check like this or any other method? Where is the mistake? Thanks, Alex. - Altera_Forum
Honored Contributor
Sir,
For suppose if i got error like this (As mentioned below)there is a problem with the quartus ii installation on your computer.
please use `jtagconfig` for further diagnosis I came to know, i have to kill jtagd as mentioned below $ sudo killall jtagd $ sudo /opt/quartus/bin/jtagconfig -n Is it true? what i have to do? Kindly any help?
- Altera_Forum
Honored Contributor
Try the following command to see if it resolves the jtag issue for normal users:
echo 'ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="666"' | sudo tee -a /lib/udev/rules.d/51-usbblaster.rules Reboot your machine just to make sure it takes effect. N. - Altera_Forum
Honored Contributor
Thanks for giving replies
still iam strucking there only Sir, once i close and again i open my terminal, if i type donload command 1.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 then i typed 2.alex@alex:~$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/quartus/linux and press enter alex@alex:~$ 3.alex@alex:~$ nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage there is a problem with the quartus ii installation on your computer.
please use `jtagconfig` for further diagnosis. i added the your line as u mentioned in the previous post And finally in my 51-usbblaster rules file is like this #usb-blaster
bus=="usb", sysfs{idvendor}=="09fb", sysfs{idproduct}=="6001", mode="0666"
bus=="usb", sysfs{idvendor}=="09fb", sysfs{idproduct}=="6002", mode="0666"
bus=="usb", sysfs{idvendor}=="09fb", sysfs{idproduct}=="6003", mode="0666"
echo 'attr{idvendor}=="09fb", attr{idproduct}=="6001", mode="666"' Y , once i close my terminal ,again i will open na no library path. I have to fix this problem, kindly any help? Where is the mistake? Thanks, Alex.
- Altera_Forum
Honored Contributor
The last command I gave you was supposed to be executed only once.
In the archive attached to this post are two files: altera.conf -> put this one in /etc/ld.so.conf.d (this way you don't have to export the library path every time) 51-usbblaster.rules -> put this one in /lib/udev/rules.d Reboot your machine and try again. N. - Altera_Forum
Honored Contributor
Sir,
My usb blaster rules it is in /etc/udev/rules.d/51-usbblaster.rules,can i delete this one, imean as showed in my previous post According to you , i have to place /lib/udev/rules.d, in my path(/etc/udev/rules.d/51--usbblaster.rules) this file can i delete or what? Thanks, Alex. - Altera_Forum
Honored Contributor
Yes, you can overwrite the /lib/udev/rules.d/51-usbblaster.rules you created previously with the 51-usbblaster.rules in the zip file.
N.