Parallel Port Driver for OpenOCD on Linux

Hi to everybody.

I use OpenOCD with parallel port on Windows using a Wiggler compliant programmer.

I would like to use OpenOCD on Linux.

Is there any driver for OpenOCD on Linux using the parallel port (like giveio.sys for Windows)?

I have seen only driver for USB-JTAG (Amontec JTAG-Key).

Thanks Legolas

Hi,

on Linux you have to choose between direct access (requires root privileges) or ppdev (requires right file permissions). You wont need an additional driver in neither of these two cases. The driver choice is made during ./configure: the default is to use direct access, but ppdev can be enabled with the --enable-parport_ppdev switch.

Depending on your choice you have to specify the correct “parport_port” setting: 0x378 is the default when using direct access, 0 is the default when using ppdev, where the 0 stands for /dev/parport0.

In both cases you should make sure that the lineprinter module (‘lp’) has been unloaded: (as root) rmmod lp

It might be necessary to load ppdev manually: (as root) modprobe ppdev

Regards,

Dominic

Thanks to your advice, now OpenOCD works on Linux with my parallel port. I choosed the ppdev solution, so I haven’t to be root to use it.

However, I have two questions:

  1. I have to do:

chmod a+rw /dev/parport0

to have the permission as normal user to access to my parallel port. I don’t know if this is ok in terms of security.

  1. Everytime I start the system I have to set it again, so if one user obtains by the root to access the parallel port, he has to ask him everytime!!!

Is there another way to do the same thing?

Thanks in advance

l3golas

Have you considered adding yourself to the group that owns /dev/parport0? That should work if the permissions are something like crw-rw----.