Error: cannot open device. check it exists and that user ...

Hi.

I have just installed openocd-0.4.0-rc1 due to problems with breakpoints in earlier versions.

I have run the following commands during installation:

./configure --enable-parport

make

make install

All as root.

When i type (still as root)

openocd

I get

Error: cannot open device. check it exists and that user read and write rights are set. errno=2

My openocd.cfg for debug only contains:

#daemon configuration

telnet_port 4444

gdb_port 3333

interface parport

parport_port 0x8020

parport_cable wiggler

My parallel port resides at 0x8020 and I’m using Olimex’s arm-jtag cable.

What am I missing here? Thanks for any help.

Now I also tried with:

./configure --enable-parport_ppdev --enable-parport

Still the same.

???

You should compile developement versions with --enable-maintainer-mode

4/3!!

Thanks, but still the same result. It’s like it doesn’t find the parallel port. An earlier version of OpenOCD did and it’s found by the OS according to dmesg.

Very strange.

I don’t think this is related but…

After I updated from ubuntu 8.10 to 9.10, I found I had to run openocd as root / sudo. Else I get an error. I can’t remember right now whether it says device not found or unable to open library.

But a) it is libftdi in my case, and b) I think it was the OS that changed, not openocd. So, again, probably not related.

[edit] Sorry, missed the line in your first post where you said you ran it as root.