Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

Quartus II 7.2 and Ubuntu 7.2 Gutsy Gibbon

Took a while, but after browsing many forums i got this to work, and figured i would post a quick howto.

I essentially followed this :

http://nioswiki.jot.com/altera%20software%20installation%20tutorial%20for%20ubuntu.pdf

with a few modifications.

FIRST:

the install script did not run b/c there was no arch command

so: as root i

echo "uname -r" > /bin/arch

chmod 755 /bin/arch

then back as a user i installed quartus, follow the link above, including the usb blaster stuff if so desired.

but this still did not result in a working quartus install for me, so to work around the gui not working, or sometimes partially working

i copied libX11.so.6.2 to the quartus/linux directory. i then also created a link to that file from libX11.so.6

Magically, the quartus gui would then work.

the one change i made to the USB Blaster install is that i sometimes had permissions issues. i found that running a jtag service as root resolved this so....

my init file for jtag is

=================

# !/bin/sh

# ## BEGIN INIT INFO

# Provides: jtagd_init

# Required-Start: $syslog

# Required-Stop: $syslog

# Default-Start: 2 3 4 5

# Default-Stop: 0 1 6

# Short-Description: Start Jtag daemon

# ## END INIT INFO

. /lib/lsb/init-functions

NAME=jtagd_init

DAEMON=/opt/altera/7.2_sp1/quartus/bin/jtagd

PIDFILE=/var/run/jtagd.pid

test -x $DAEMON || exit 5

case $1 in

start)

log_daemon_msg "Starting JTAGD" "jtagd_init"

start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --startas $DAEMON

pidofproc $DAEMON > $PIDFILE

log_end_msg $?

;;

stop)

log_daemon_msg "Stopping JTAGD" "jtagd_init"

start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE

log_end_msg $?

rm -f $PIDFILE

;;

restart|force-reload)

$0 stop && sleep 2 && $0 start

;;

try-restart)

if $0 status >/dev/null; then

$0 restart

else

exit 0

fi

;;

reload)

exit 3

;;

status)

pidofproc -p $PIDFILE $DAEMON >/dev/null

status=$?

if [ $status -eq 0 ]; then

log_success_msg "JTAGD is running."

else

log_failure_msg "JTAGD is not running."

fi

exit $status

;;

*)

echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"

exit 2

;;

esac

===============================

Then there also needs to be an /etc/jtagd folder

this needs a file called pgm_parts.txt that i copy from the quartus install quartus/linux/pgm_parts.txt

i also create links to this from jtagd.pgm_parts & pgm_parts in the /etc/jtagd folder.

If you want this to be setup as a jtag server, you can also place a jtagd.conf file in the /etc/jtagd folder with the password

==============

# /etc/jtagd/jtagd.conf

#

# This file is written by the JTAG daemon when its configuration is changed.

# If you edit this file directly then your changes will probably be lost.

Password = "1234";

=================

Lastly, /proc/usb needs to be mounted, so you need to modify the fstab file to include

/dev/bus/usb /proc/bus/usb usbfs defaults 0 0

On a side note, Compiz / Java have issues.. export these environment variables to get over it..

# fix for compiz / java

AWT_TOOLKIT=MToolkit

export AWT_TOOLKIT

--dalon
No RepliesBe the first to reply