Trouble setting up Altera with working JTAG server Ubuntu 64 bit

371 views
Skip to first unread message

Simon Sarginson

unread,
May 20, 2014, 8:30:08 AM5/20/14
to chip...@googlegroups.com
Hi All,

Got Altera up and running and did a little test setup for the De0 but I can't seem to get it on to my board, does anybody have any success running Altera on this platform? I tried adding the suggested udev rule (as well as some others) but still have insufficient port permissions.

Best,
Simon

paul.l...@gmail.com

unread,
May 20, 2014, 10:56:55 AM5/20/14
to chip...@googlegroups.com
Quick and dirty: have you tried chmod 666 /dev/whatever ?  If your machine is otherwise secure enough this hack shouldn't have too nasty consequences.

I had to do that on my gentoo system for a long time so that CUDA would work.  Since fixed properly upstream.

Paul

Simon Sarginson

unread,
May 20, 2014, 11:56:46 AM5/20/14
to paul.l...@gmail.com, chip...@googlegroups.com
I'll try that this evening, thanks for the tip!
Simon


--
You received this message because you are subscribed to a topic in the Google Groups "Chip Hack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chiphack/tgKmx7DSeVA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chiphack+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simon Sarginson

unread,
May 20, 2014, 7:10:05 PM5/20/14
to chip...@googlegroups.com, paul.l...@gmail.com
After trying many different suggestions this is what worked for me for 64 bit ubuntu 14.04

The symbolic link was essential to make it work. Probably not very elegant, but it works : )! I got a binary counter working !

Tutorial I was following:
ftp://ftp.altera.com/up/pub/Altera_Material/12.1/Boards/DE0-Nano/DE0_Nano_User_Manual.pdf

Instructions for setting altera / jtag
http://www.alteraforum.com/forum/showthread.php?t=37072

1) The SYSFS keywords have been removed in latest Ubuntu's udev, ATTR is now used, so the line you have to paste in your /etc/udev/rules.d/51-usbblaster.rules is:

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="0666", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", RUN+="/bin/chmod 0666 %c"


2) Then, after reloading the rules with:
udevadm control --reload-rules

3) Connect the USB Blaster

4) Run quartus_pgm (you may have to cd into quartus' "bin" dir) from a terminal and see what it says. If it complains with something like:

*** The Quartus II software cannot be started because the current platform,
'linux64', does not appear to be installed in:

Then you just have the 32 bits Quartus and to solve this it is as simple as creating a symbolic link of the "linux" folder (inside the quartus installation) called "linux64"

5) Then running: quartus_pgm -l
should list the USB-Blaster. Now you can program from the CLI and from the Altera Programming GUI.

Thanks to the ones that got the udev part! Regards.
To unsubscribe from this group and all its topics, send an email to chiphack+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages