Forum Discussion

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

HELP! - Virtualization and the USB ByteBlaster

Hello,

This is weird one - I'm sure of it. I also made sure that I didn't miss any other posts that could help me regarding this issue in the forum.

I am running linux; Ubuntu 8.04 to be exact. Knowing that I can only run the web edition for Quartus in Windows, I needed to create a "virtual machine" with Sun VirtualBox. I figured out how to get USB working inside of the virtual XP installation and the best part is that the DE2 was recognized and it installed the driver correctly as well!

The issue - and I humbly ask you all for your insights - is that when I am in quartus, I cannot Auto-detect/program the DE2.

I can select the installed "USB-0" hardware, but I still cannot program. I get the message "Unable to scan device chain..." The weirdest thing is that when I autodetect or try to program something, the "load" blue LED lights up!

I can only assume the problem could be that:

1.) I am doing something horribly stupid and everything is working fine

2.) there is a problem with the driver/installation or the virtualization itself

3.) the DE2 is defective (unlikely as it is brand new)

I really hope I can get this - I know I am close. It will be such a triumph if I can get it working.

Please, I respectfully invite anyone to jot down any thoughts they have here - you never know, it may just be a solution.

Thank you,

Mike :)

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Take a look at this (http://nioswiki.jot.com/wikihome/jtagstandalone), on the Nios Wiki.

    After following these instructions, you can then configure your Ubuntu host to serve as a remote JTAG host (NOTE: jtagd _must_ be run as a service for this to function!]. As root, type

    jtagconfig --enableremote <your_password>

    You should then be able to connect to this remote JTAG server using your VM ethernet device.

    I've done this, it works, and it's probably less painful than trying to get USB virtualization to function.

    Cheers, and Good Luck!

    - Ura
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hey Ura,

    Thanks again for the continued help!

    I tried your proposed solution and everything was going smashingly until:

    sudo chkconfig jtagd on
    I didn't realize this but the 'chkconfig' command isn't supported by Ubuntu. Undeterred I tried the following to brute force install it (borrowed from Ubuntu forums):

    $ apt-get install libnewt0.51
    $ ln -s /usr/lib/libnewt.so.0.51 /usr/lib/libnewt.so.0.50
    $ wget http://www.tuxx-home.at/projects/chkconfig-for-debian/chkconfig_1.2.24d-1_i386.deb
    $ dpkg --force-all -i chkconfig_1.2.24d-1_i386.deb
    But alas, no dice. I am missing dependencies for this module, but I do not know which ones. At this point, I'm nearly ready to dual boot/suck. At least I have a reason to re-install, 8.10 is out.:rolleyes:

    MK
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I didn't realize this but the 'chkconfig' command isn't supported by Ubuntu. Undeterred I tried the following to brute force install it (borrowed from Ubuntu forums):

    --- Quote End ---

    So start the service, manually, for now (until you figure out how things work in Ubuntu/Debian-land) and move on with things.

    [Long-winded explanation]

    chkconfig is a "convenience" command anyhow. On most Linux distros, you have an /etc/init.d directory where every server script that "could" run is placed. Soft links (ln -s) are then placed from these scripts into the /etc/rc[n].d directories (n represents the "runlevel"). When you boot your Linux box, it will (by default) boot into multiuser mode....which could be runlevel 2 or 3 (/etc/rc2.d, /etc/rc3.d).

    [Summary]

    So, just manually copy the script into /etc/init.d and then create a soft link to S30jtagd (or somesuch) in /etc/rc2.d.

    Cheers,

    - Ura

    P.S. [UPDATE] Here's a pretty good tutorial (http://www.yolinux.com/tutorials/linuxtutorialinitprocess.html) on Linux booting.