Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

USBBLASTER byteBlaster on linux 2.6.15

Altera_Forum
Honored Contributor II
1,584 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Hi , 

 

I have a problem with USB BLASTER and byteblaster cable. 

 

I work on linux 2.6.15 kernel for the developpement environement (UBUNTU distribution). 

 

I apply the pach for the byteblaster driver (2.6 kernel) and I have these messages when I run jtagconfig command : 

 

1) ByteBlaster [(/dev/byteblaster0)] 

Unable to lock chain (hardware not attached) 

 

2) USB_BLASTER (1/4) 

Unable to lock chain (chain is use) 

 

But I have connected the byteblaster cable and there is no application using USB blaster. 

 

Does anybody know what is happening here??
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
324 Views

Did you connect the JTAG cable to a powered up Atlera chip?

0 Kudos
Altera_Forum
Honored Contributor II
324 Views

 

--- Quote Start ---  

originally posted by iztok.jeras@Oct 25 2006, 06:08 AM 

did you connect the jtag cable to a powered up atlera chip? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18898) 

--- quote end ---  

 

--- Quote End ---  

 

 

yes, but I think the problem is the number of the Kernel 2.6.15 and the distribution UBUNTU. 

But I research someone who had the same problem.
0 Kudos
Altera_Forum
Honored Contributor II
324 Views

 

--- Quote Start ---  

originally posted by tomclara+oct 25 2006, 07:55 pm--><div class='quotetop'>quote (tomclara @ oct 25 2006, 07:55 pm)</div> 

--- quote start ---  

<!--quotebegin-iztok.jeras@Oct 25 2006, 06:08 AM 

did you connect the jtag cable to a powered up atlera chip? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18898) 

--- quote end ---  

 

--- Quote End ---  

 

 

yes, but I think the problem is the number of the Kernel 2.6.15 and the distribution UBUNTU. 

But I research someone who had the same problem. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18902)</div> 

[/b] 

--- Quote End ---  

 

 

Scott had pointed a note for USB-Blaster. Please check out. 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

To use USB-Blaster under Linux you need to set up the permissions correctly. On redhat you need to add the following lines to /etc/hotplug/usb.usermap - on Debian create a file /etc/hotplug/usb/usbblaster.usermap and copy the lines into it. 

# # Altera USB-Blaster#  

usbblaster 0x03 0x09fb 0x6001 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 

usbblaster 0x03 0x09fb 0x6002 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 

usbblaster 0x03 0x09fb 0x6003 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 

 

And then add the following script as /etc/hotplug/usb/usbblaster: 

# !/bin/sh 

# USB-Blaster hotplug script. 

# Allow any user to access the cable 

chmod 666 $DEVICE 

echo 

Don&#39;t forget to make the script executable. 

 

This should set up your USB-Blaster so that any user can access it. 

 

You may of course care about security, in which case you would put more careful rules into the script, for example you could set the files to mode 660 and set the group to a group of users who should be allowed to use it. 

 

Now plug in and go... 

 

(If you plugged in before making these changes then the permissions will still be wrong - you&#39;ll need to unplug and replug your USB-Blaster).[/b] 

--- Quote End ---  

 

 

But I would recommend run Altera tools on RHEL4 (redhat) or WBEL4 (www.whiteboxlinux.org) .
0 Kudos
Reply