Unable to block chain (insufficient port permissions)

I am new to Linux and I am trying to install AlteraQuartus 2 WEb Edition and NIOS2 EDS to play with a Nios2 processor.

However, after installing Quartus and when I try to execute jtagconfig.

I do not see something like below, even after running / altera / nios 2eds / nios2_command_shell.sh

1.) [Nios2 EDS] $ 2.) Unable to lock the chain (insufficient port permissions)

Please, help,

+6
source share
2 answers

“Not enough permissions” or “denial of access” or anything related to lack of permissions on * nix usually means that you must run the command as root (or as another user with permissions, but root has all of them) .

So run jtagconfig as root :

 $ sudo jtagconfig 

Alternatively, as root, put this in the new file /etc/udev/rules.d/51-altera-usb-blaster.rules :

 SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="0666" SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6002", MODE="0666" SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6003", MODE="0666" SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6010", MODE="0666" SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6810", MODE="0666" 

and then run:

 $ sudo udevadm control --reload 

This should change the resolution of your USB-Blaster Download Cable device so that any user can access it (if that's what you want), so you should be able to release jtagconfig without sudo . These five idProduct are all well-known USB-Blaster Download Cable USB product identifiers (for Altera vendor identifier, 0x09fb ).

I wrote a fairly complete Arch Linux wiki page about Altera Linux software if you want more information.

+5
source

To check if this is really a port resolution problem, start troubleshooting by running jtagd (deamon between the Altera tool and the driver) as root. First you need to make sure jtagd not running, because if it is already running as a user, trying to run it as root will have no effect.

 $ sudo killall -9 jtagd # Kill jtagd, ... $ sudo killall -9 jtagd # ...and verify jtagd is indeed not running. jtagd: no process found # Good, verified. $ sudo jtagconfig # Will also start jtagd as root 1) CV SoCKit [2-1] 02D020DD 5CSEBA6(.|ES)/5CSEMA6/.. 4BA00477 SOCVHPS 

If the above is successful, this is really a port resolution issue. To fix it forever, try using the udev rules, as suggested by @eepp.

(On the side jtagd note, jtagd will be started if it is not already running, like the same user who launched jtagd . Therefore, the @eepps command will also work, but jtagd should be killed first.)

To further troubleshoot, running jtagd with some debug command line options can provide useful information:

 $ jtagd --foreground --debug JTAG daemon started Using config file /etc/jtagd/jtagd.conf Remote JTAG permitted when password set Cant bind to TCP port 1309 - exiting 

(The above error message is typical if jtagd already running.)

(Above is taken from http://www.fpga-dev.com/altera-usb-blaster-with-ubuntu/ . For more information, see this page.)

+8
source

Source: https://habr.com/ru/post/953512/


All Articles