Hi Chris,

Thanks for a quick response.

Chris Liechti wrote:

Am 31.08.2002 14:43:00, schrieb Steve Underwood <[email protected]>:
First a problem. I have tried the parallel JTAG stuff on two Linux machines - one with RedHat 7.2 and one with 7.3. In each case I get the same result:

it requires ppdev and i think thats only available in kernel 2.4+ maybe
you need to load that first. and the device names are probably different.
you need a "/dev/parport0"
if you don't have that, make a link "ln -s /dev/youdev /dev/parport0"

I am using Linux 2.4.9 and 2.4.18. I have a device /dev/parport0. The following little program:

#include <stdio.h>
#include <sys/ioctl.h>
#include <linux/ppdev.h>
#include <errno.h>
#include <fcntl.h>

int main (int argc, char *argv[])
{
   int i;
   int len;
   int x;
   char buf[1024];
i = open("/dev/parport0", O_RDWR, 0);
   if (i < 0)
       printf ("1 %d\n", errno);
   x = 0;
   if ((len = ioctl(i, PPCLAIM, &x)) < 0)
       printf ("1.1 %d\n", errno);
   if ((len = read(i, buf, 1)) < 0)
       printf ("2 %d\n", errno);
   if ((len = write(i, buf, 1)) < 0)
       printf ("3 %d\n", errno);
   return  0;
}

gives no errors. When I try jtag.py I still get the same error. I am using Python 2.1 (on RedHat 7.2) and 2.2 (on RedHat 7.3). I download jtag.py from CVS and the closed .so module from mspgcc.sourceforge.net today.

This seems to come from within the _parjtag.so module, so I can't easily probe around to see what it means. Is this a "parallel port doesn't work" error, or a "I can't find the JTAG gadget" error?

yeah i know, thats not ideal.
Is it possible for you to report the actual error code (errno or whatever) within the closed source module? It might give a clue where things are going wrong.

Regards,
Steve



Reply via email to