- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a download related problem with the NiosII SDK running under Ubuntu 8.04 installed on a VMWare server. I have followed the installing instructions found here: http://nioswiki.jot.com/wikihome/operatingsystems/quartusforlinux The application programs including both nios2-ids and nios2-download seems to run properly, and loading the tutorial "hello world" application and building it works fine. The jtagd is created at Ubuntu boot time and appears in the process list, although I am a little unconfortable with not having it launched the proper way with a script in the /etc/init.d folder.. When I try to run the project as "Nios2 Hardware", the IDE reports 50% launch progress and then hangs.:( When I try to download a sof file using nios2-configure-sof I have success some times - about 25% of the times I'd say. jtagconfig also sometimes works, but under which circumstances seems pretty confusing to me. I get no systematic behaviour when recycling power on the development board, connecting/disconnecting cables, killing and recreating jtagd etc. I have a suspicion that the problem is related to jtagd and/or usb-blaster. Anyone have a clue?Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Seems the problem is resolved:
I have repeated the installation described on the "nioswiki.jot.com....." howto mentioned above on another computer, running a standalone Ubuntu 8.04. I have however, deviated from the recipe on these two points which should not make any difference for the result: 1. I did not bother about the license stuff for Quartus since I don't need that part of the suite. 2. I use a script '/etc/init.d/jtagd_init' to control the jtagd daemon instead of starting it from the /etc/rc.local script as suggested in the howto. My init script is "stolen" from a post I stumbled accross (Many Thanks whoever the author is... :-D) and looks like this: ----8<--------------------# !/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/altera8.0/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 ----8<-------------------- All downloading now works fine! I believe VMWare only supports USB 1.1 and not USB 2 and that this is causing the problems.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page