- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here my steps and where I'm stuck:
I'm on Mac OS X running VMWare running Ubuntu 11.04: 1- Go to web page to download quartus 2 11.0 2- Download 11.0_quartus_free_linux.sh 3- chmod +x ./11.0_quartus_free_linux.sh 4- sudo ./11.0_quartus_free_linux.sh Creating directory 11.0_quartus_free_linux Verifying archive integrity... All good. Uncompressing Quartus II Web Edition (Free)....................................................................................................................................................................................................... altera_installer/bin/altera_installer_gui: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory So I try sudo apt-cache search libz the lib that are there seem to be already installed.... Check on the forum and Google and the installation instruction without founding the way to fix that. Does anyone have a way to troubleshoot this? Best Regards, # ##################################################### # UPDATE: [SOLVED] Ubuntu 11.10 # ##################################################### see link http://www.alteraforum.com/forum/showthread.php?t=33857Link Copied
40 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are installing in a 64-bit machine, then you need
apt-get install ia32-libs Cheers, Dave- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That was fast!
thx, after installing the package ia32-libs the installation when further and after sometimes the installation windows appears and click next next it's installing the software right now. Question: I have found also Quartus II Software Programmer Version 11.0 for Linux does it will be install with Quartus II Web Edition? If so what will be it's PATH? Best Regards,- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You don't need to install the programmer if you have Quartus installed.
You will need to setup a udev rules file for USB-Blaster to work# 51-usbblaster.rules# # * Use lsusb to see the 'Altera' bus and device number. # The device node is then /dev/bus/usb/<bus>/<device># # * use jtagconfig to detect devices on the usbblaster#
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666"
Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So the installation finish nicely and quartus start,
Here the output of my installation (also test the uninstall): I notice some error related to E: cannot change locale (en_US): No such file or directory and There was an error connecting to the Internet. Please verify your proxy information and ensure your computer is connected to the Internet. There was an error connecting to the Internet: (There was an error connecting to the Internet. Please verify your proxy information and ensure your computer is connected to the Internet.) OUTPUT:::::::::::::: pastebin.com/RykLmWrP Next will try to setup udev! Thx Dave! Best Regards,- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
So here my status: I start quartus but I'm not able to see the USB blaster from the Hardware setup of the programmer? Here some details: 1- cd ~/altera/11.0/quartus/bin 2- ./quartus 3- Tools/Programmer 4- Hardware setup (No Hardware???) So the udev rules have been created: cat /etc/udev/rules.d/51-usbblaster.rules # 51-usbblaster.rules# # * Use lsusb to see the 'Altera' bus and device number. # The device node is then /dev/bus/usb/<bus>/<device># # * use jtagconfig to detect devices on the usbblaster# BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666" lsusb Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 004: ID 09fb:6001 Altera Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub The udev have change the rights: ll /dev/bus/usb/001/004 crw-rw-rw- 1 root root 189, 3 2011-08-25 11:12 /dev/bus/usb/001/004 dmesg [ 5023.270108] usb 1-1: new high speed USB device using ehci_hcd and address 4 [ 5023.452903] usb 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64 [ 5023.452908] usb 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x2 has invalid maxpacket 64 So any clue why quartus doesn't detect the USB blaster? Do I need to do something else? Best Regards, kap- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
On my Ubuntu system, removing the USB-Blaster, then clearing the kernel messages using 'sudo dmesg -c', and then re-inserting the USB-Blaster, I get the following output;
dwh@ubuntu:~$ dmesg
usb 2-1.2: new full speed USB device using ehci_hcd and address 13
dwh@ubuntu:~$ lsusb -d 09fb:6001 -v
Bus 002 Device 013: ID 09fb:6001 Altera
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x09fb Altera
idProduct 0x6001
bcdDevice 4.00
iManufacturer 1 Altera
iProduct 2 USB-Blaster
iSerial 3 91d28408
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 150mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 2 USB-Blaster
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
dwh@ubuntu:~$ ls -al /dev/bus/usb/002/013
crw-rw-rw- 1 root root 189, 140 2011-08-25 08:30 /dev/bus/usb/002/013
I'm not sure why you are getting a message indicating 'invalid maxpacket 64', since that packet size is valid. I'd focus on trying to figure out why you are getting that message first. Plug in a development kit and try jtagconfig too. Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh, hang on ...
Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Which version of VMWare are you running? I tried the latest version last week and it could not capture the Altera device properly from a Windows 7 host, with Ubuntu guest OS. I resorted to an Ubuntu Wubi install (uses a binary blob on my Windows 7 partition), since I wanted the USB-Blaster access directly from Linux. The alternative methods to getting things working are; a) Run the JTAG server on your host machine. (I'm not sure this is possible from a MAC host). b) Run usbip on the host machine and then connect the USB-Blaster to your virtual machine via a network connection. http://usbip.sourceforge.net/ Since you are running a MAC, this last option might work for you. I tested it the other day; a PowerPC QorIQ P2020 processor with a USB-Blaster plugged into a USB port, usbip running on that machine, and then connected my Ubuntu Wubi system via a usbip client. Quartus on the Ubuntu Wubi system correctly detected the device (as a local USB-Blaster) and I was able to download a configuration to a BeMicro-SDK kit (connected to the PowerPC). I'd be interested in hearing if usbip works for you on a MAC. Cheers, Dave- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
--- Quote Start --- Hi, On my Ubuntu system, removing the USB-Blaster, then clearing the kernel messages using 'sudo dmesg -c', and then re-inserting the USB-Blaster, I get the following output;
dwh@ubuntu:~$ dmesg
usb 2-1.2: new full speed USB device using ehci_hcd and address 13
--- Quote End --- I try a couple of times and it didn't change, same result. Here my lsusb
lsusb -d 09fb:6001 -v
Bus 001 Device 005: ID 09fb:6001 Altera
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x09fb Altera
idProduct 0x6001
bcdDevice 4.00
iManufacturer 1 EPFL
iProduct 2 USB-Blaster
iSerial 3 00000000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 55
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 2 USB-Blaster
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 2 USB-Blaster
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
--- Quote Start --- I'm not sure why you are getting a message indicating 'invalid maxpacket 64', since that packet size is valid. I'd focus on trying to figure out why you are getting that message first. --- Quote End --- Here what I found releated to this We can ignore the messages about "invalid maxpacket 64". It merely states that the FX2 registers endpoint 1 with a buffer size of 64 bytes instead of 512 bytes as required by the USB-2.0 high speed standard. However, there are 2 reasons for using 64 bytes: First, the FX2 internally only supports 64 bytes for EP 1 and second, the ftdi_sio kernel module expects 64 bytes as well since FTDI's USB-to-serial converters are all USB-1.1 "full speed" devices. triplespark.net/elec/periph/USB-FX2/software/advanced_examples.html --- Quote Start --- Plug in a development kit and try jtagconfig too. Cheers, Dave --- Quote End --- ./jtagconfig /home/faky/altera/11.0/quartus/adm/qenv.sh: line 87: warning: setlocale: LC_CTYPE: cannot change locale (en_US): No such file or directory *** The Quartus II software cannot be started because the current platform, 'linux64', does not appear to be installed in: '/home/faky/altera/11.0/quartus'. Error (Server error) when scanning hardware THX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So you're using an FX2-based USB-Blaster clone then?
What happens if you use a real USB-Blaster? Cheers, Dave- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
--- Quote Start --- Oh, hang on ... Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Which version of VMWare are you running? I tried the latest version last week and it could not capture the Altera device properly from a Windows 7 host, with Ubuntu guest OS. I resorted to an Ubuntu Wubi install (uses a binary blob on my Windows 7 partition), since I wanted the USB-Blaster access directly from Linux. The alternative methods to getting things working are; a) Run the JTAG server on your host machine. (I'm not sure this is possible from a MAC host). b) Run usbip on the host machine and then connect the USB-Blaster to your virtual machine via a network connection. http://usbip.sourceforge.net/ Since you are running a MAC, this last option might work for you. I tested it the other day; a PowerPC QorIQ P2020 processor with a USB-Blaster plugged into a USB port, usbip running on that machine, and then connected my Ubuntu Wubi system via a usbip client. Quartus on the Ubuntu Wubi system correctly detected the device (as a local USB-Blaster) and I was able to download a configuration to a BeMicro-SDK kit (connected to the PowerPC). I'd be interested in hearing if usbip works for you on a MAC. Cheers, Dave --- Quote End --- VMWare update output : Version 3.1.3 is the newest version available. JTAG server, I have seen the option but not sure how to setup this :( Put since i'm on MAC.... ??? The usbip is not supported only on Linux... maybe I'm wrong will check this.... THX- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- So you're using an FX2-based USB-Blaster clone then? What happens if you use a real USB-Blaster? Cheers, Dave --- Quote End --- No sorry I was only referring to the explanation about the warning and it was making sense to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It must be a clone though, look at the differences in lsusb output, eg. the manufacturer is EPFL and there are extra end-points.
Cheers, Dave- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- VMWare update output : Version 3.1.3 is the newest version available. --- Quote End --- For VMWare Fusion. I tested VMWare Workstation under Windows 7 and USB-Blaster would not work. --- Quote Start --- JTAG server, I have seen the option but not sure how to setup this :( --- Quote End --- It requires Quartus on the host machine, which you cannot do. --- Quote Start --- Put since i'm on MAC.... ??? The usbip is not supported only on Linux... maybe I'm wrong will check this.... --- Quote End --- I'd be interesting in hearing if it does. Its a neat solution. Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- It must be a clone though, look at the differences in lsusb output, eg. the manufacturer is EPFL and there are extra end-points. Cheers, Dave --- Quote End --- I install Ubuntu natively on a MAC mini and I have the same lsusb output. So maybe it's a driver problem and not a VM one ?! What's strange is in the console I have a error when I'm pressing on the programmer options in Tools:::
*** The Quartus II software cannot be started because the current platform,
'linux64', does not appear to be installed in:
'/home/faky/altera/11.0/quartus'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I install Ubuntu natively on a MAC mini and I have the same lsusb output. So maybe it's a driver problem and not a VM one ?! --- Quote End --- The output of lsusb is based on what is read from the device, i.e., the USB-Blaster. My question is, is that a real USB-Blaster, or some sort of clone? If its a clone, do you know if it works *at all*? --- Quote Start --- What's strange is in the console I have a error when I'm pressing on the programmer options in Tools:::
*** The Quartus II software cannot be started because the current platform,
'linux64', does not appear to be installed in:
'/home/faky/altera/11.0/quartus'.
--- Quote End --- I'm not sure what the solution for that is, I have not seen that error. Try Googling or searching through the Altera Forum. Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So basically my setup could be describe as:
A microcontroller acts as a bridge between the FPGA and the USB connection. It is a EZ-USB FX2 microcontroller from Cypress Semiconductor. Two endpoints (read and write) are used for bulk transfers. They each have 512 bytes dual buffers. The endpoints are accessed from the FPGA using a 16 bits bidirectional FIFO bus and simple controls and flags. The software in the microcontroller runs independently of the endpoint, to allow the fastest transfer possible. This software contains a code that turns the microcontroller to a USB JTAG adapter. It allows the device to emulate the USB-Blaster Download Cable from Altera and program the FPGA through the same USB connection. General purpose IO pins from the Cypress microcontroller are connected to the JTAG port to program the FPGA and its flash memory. The code was originally written by FPGA4fun, FPGA4U and other collaborators and it was modified and enhanced to suit our needs. thx for the link for linux64 it solved the problem ! THX- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- So basically my setup could be describe as: A microcontroller acts as a bridge between the FPGA and the USB connection. It is a EZ-USB FX2 microcontroller from Cypress Semiconductor ... --- Quote End --- Ok, so its a clone like that designed by Kolja Waschk http://ixo-jtag.sourceforge.net/ --- Quote Start --- thx for the link for linux64 it solved the problem ! --- Quote End --- Cool! Please try the usbip option too if you can. I'd be interested in seeing if it works on a MAC. Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Ok, so its a clone like that designed by Kolja Waschk http://ixo-jtag.sourceforge.net/ --- Quote End --- mmm didn't know about it will read thx! --- Quote Start --- Please try the usbip option too if you can. I'd be interested in seeing if it works on a MAC. --- Quote End --- I'm reading about it! GOOD news!!! From the native installation from my mac mini I re-click on hardware setup and the USB Blaster was list. So I think that the symbolic link solved the problem. I try to flash a jic file and it result on a "100% (Successful)". For the VM I manage to detect the USB Blaster from Hardware setup put when I try to flash it result in a "(Failed)" So I can conclude that the problem is from VMWare :)) kap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This link is useful too:
http://sourceforge.net/apps/mediawiki/urjtag/index.php?title=cable_altera_usb-blaster --- Quote Start --- ... I can conclude that the problem is from VMWare :)) --- Quote End --- And this is where usbip should be able to work ... if the MAC can run the server end of things. Cheers, Dave
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