OpenWrt Forum Archive

Topic: zJATAG /dev/parport0: No such device or address

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Im trying to run debrick utility zJATAG but it cant find parport0, Im thinking that interface name has been changed and what I can do now to access parallel port ?

$ ./zjtag -backup:cfe /diygadgetblackcat

        ==============================================
               zJTAG EJTAG Debrick Utility v1.8 RC3
        ==============================================

cable=blackcat, cabletype=2

Failed to open /dev/parport0: Permission denied

and as sudo

 $ sudo ./zjtag -backup:cfe /diygadgetblackcat

        ==============================================
               zJTAG EJTAG Debrick Utility v1.8 RC3
        ==============================================

cable=blackcat, cabletype=2

Failed to lock /dev/parport0: No such device or address

and here is lsmod

     /sbin/lsmod | grep parport
    parport_pc             32768  1
    parport                49152  3 lp,ppdev,parport_pc

You seem to have a problem with file permissions. Check the output of

ls -l /dev/parport0

As root, you can add rw permissions witch chmod.

Ok here it is

ls -ls /dev/parport0 
0 crw-rw-r-- 1 root lp 99, 0 јан 12 22:00 /dev/parport0

I did tried as root as well but same deal, dont know what happening

The solution is

sudo rmmod lp

The discussion might have continued from here.