HP LaserJet 1020 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Permission denied copying firmware [solved]
Posted by: rahlquist ()
Date: October 20, 2016 04:28PM

Hello,

Recently my HP printer has stopped working. I had followed your instructions explicitly and they worked fine for some time. Now I have completely removed and reinstalled everything several times to no good use. The problem seems to be sending firmware to the printer.

rahlquist@villa:~/foo2zjs$ sudo usb_printerid /dev/usb/lp1
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;DES:HP LaserJet 1020;
rahlquist@villa:~/foo2zjs$ sudo cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp1
-bash: /dev/usb/lp1: Permission denied



Edited 1 time(s). Last edit at 10/20/2016 08:23PM by rickrich.

Options: ReplyQuote
Re: Permission denied copying firmware
Posted by: rickrich ()
Date: October 20, 2016 05:05PM

What does:
$ ls -l /dev/usb/lp1
say?


Note the "sudo" command is NOT correct! If using "sudo":
$ sudo bash
# cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp1
#

Options: ReplyQuote
Re: Permission denied copying firmware
Posted by: rahlquist ()
Date: October 20, 2016 06:59PM

rahlquist@villa:~$ ls -l /dev/usb/lp1
crw-rw---- 1 root lp 180, 1 Oct 20 16:23 /dev/usb/lp1

rahlquist@villa:~$ cat /etc/group |grep rahlquist
adm:x:4:syslog,rahlquist
lp:x:7:rahlquist,root
cdrom:x:24:rahlquist
sudo:x:27:rahlquist,angeljlpa
dip:x:30:rahlquist
plugdev:x:46:rahlquist
lxd:x:110:rahlquist
rahlquist:x:1000:
lpadmin:x:115:rahlquist
sambashare:x:116:rahlquist
docker:x:117:rahlquist

I tried adding my user to lp and that was no help either.



Edited 1 time(s). Last edit at 10/20/2016 07:26PM by rahlquist.

Options: ReplyQuote
Re: Permission denied copying firmware
Posted by: rickrich ()
Date: October 20, 2016 07:38PM

What does this say:
$ sudo bash
# cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp1
#

Options: ReplyQuote
Re: Permission denied copying firmware
Posted by: rahlquist ()
Date: October 20, 2016 07:55PM

rahlquist@villa:~$ sudo bash
[sudo] password for rahlquist:
root@villa:~# cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp1
root@villa:~# exit

Ahh I started a new shell and now I can push the file as rahlquist. Lets see if I can print, was this a proper way to fix ?

And now I can print. Soo not sure if this was the right fix but it is a fix.



Edited 2 time(s). Last edit at 10/20/2016 08:20PM by rahlquist.

Options: ReplyQuote
Re: Permission denied copying firmware
Posted by: rickrich ()
Date: October 20, 2016 08:21PM

$ make
$ ./getweb 1020
$ su
# make install
# make install-hotplug



Edited 1 time(s). Last edit at 10/20/2016 08:57PM by rickrich.

Options: ReplyQuote
Re: Permission denied copying firmware
Posted by: rahlquist ()
Date: October 21, 2016 07:13AM

I did as you suggested. I can still manually cat the firmware to the printer but hotplug is still not working on its own. While looking at the hotplug installer I noted that it looks for several versions of udev. The one for my Ubuntu 16.04 is not found by the paths you look in;

rahlquist@villa:~/foo2zjs$ locate udevd
/lib/systemd/systemd-udevd
/lib/systemd/system/systemd-udevd-control.socket
/lib/systemd/system/systemd-udevd-kernel.socket
/lib/systemd/system/systemd-udevd.service
/lib/systemd/system/sockets.target.wants/systemd-udevd-control.socket
/lib/systemd/system/sockets.target.wants/systemd-udevd-kernel.socket
/lib/systemd/system/sysinit.target.wants/systemd-udevd.service
Not sure if that would be relevant.

Here is the full dump for make install-hotplug

root@villa:/home/rahlquist/foo2zjs# make install-hotplug
#
# Hotplug Installation Dependencies...
#
# ... OK!
#
#
#       remove HPLIP (proprietary) files and install our version
#
if [ -d /etc/udev/rules.d ]; then \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_1000*; \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_1005*; \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_1018*; \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_1020*; \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_p1005*; \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_p1006*; \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_p1007*; \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_p1008*; \
    rm -f /etc/udev/rules.d/*hpmud*laserjet_p1505*; \
    rm -f /etc/udev/rules.d/*hpmud_support.rules; \
    rm -f /etc/udev/rules.d/*hpmud_plugin.rules; \
    rm -f /lib/udev/rules.d/*hpmud_support.rules; \
    rm -f /lib/udev/rules.d/*hpmud_plugin.rules; \
    rm -f /lib/udev/rules.d/*-hplj10xx.rules; \
    if [ -x /sbin/udevd ]; then \
        version=`/sbin/udevd --version 2>/dev/null`; \
    elif [ -x /usr/lib/udev/udevd ]; then \
        version=`/usr/lib/udev/udevd --version 2>/dev/null`; \
    elif [ -x /usr/lib/systemd/systemd-udevd ]; then \
        version=`/usr/lib/systemd/systemd-udevd --version 2>/dev/null`; \
    fi; \
    if [ "$version" = "" ]; then version=0; fi; \
    echo "*** udev version $version"; \
    if [ "$version" -lt 148 ]; then \
        install -c -m 644 hplj10xx.rules.old /etc/udev/rules.d/11-hplj10xx.rules; \
    else \
        install -c -m 644 hplj10xx.rules /etc/udev/rules.d/11-hplj10xx.rules; \
    fi \
fi
*** udev version 0
if [ -d /etc/devd ]; then \
    install -c -m 644 hplj10xx.conf /etc/devd/; \
fi
[ -d /etc/hotplug/usb ] || install -d -m 755 /etc/hotplug/usb/
install -c -m 755 hplj1000 /etc/hotplug/usb/
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hplj1005
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hplj1018
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hplj1020
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1005
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1006
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1007
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1008
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1505
/etc/hotplug/usb/hplj1000 install-usermap
/etc/hotplug/usb/hplj1005 install-usermap
/etc/hotplug/usb/hplj1018 install-usermap
/etc/hotplug/usb/hplj1020 install-usermap
/etc/hotplug/usb/hpljP1005 install-usermap
/etc/hotplug/usb/hpljP1006 install-usermap
/etc/hotplug/usb/hpljP1007 install-usermap
/etc/hotplug/usb/hpljP1008 install-usermap
/etc/hotplug/usb/hpljP1505 install-usermap
# modprobe usblp
/etc/hotplug/usb/hplj1000 install-usblp
Any suggestions on getting hotplug working?

Options: ReplyQuote
Re: Permission denied copying firmware
Posted by: rahlquist ()
Date: October 21, 2016 07:25AM

Replying with additional info;

rahlquist@villa:~/foo2zjs$ tail -q -f /var/log/kern.log /var/log/syslog
Oct 21 06:56:43 villa kernel: [53590.118835] usblp 2-1.1:1.0: usblp1: USB Bidirectional printer dev 15 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Oct 21 06:58:43 villa kernel: [53710.127919] usb 2-1.1: USB disconnect, device number 15
Oct 21 06:58:43 villa kernel: [53710.128137] usblp1: removed
Oct 21 06:58:46 villa kernel: [53712.631290] usb 2-1.1: new high-speed USB device number 16 using ehci-pci
Oct 21 06:58:46 villa kernel: [53712.744092] usb 2-1.1: New USB device found, idVendor=03f0, idProduct=2b17
Oct 21 06:58:46 villa kernel: [53712.744097] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 21 06:58:46 villa kernel: [53712.744100] usb 2-1.1: Product: HP LaserJet 1020
Oct 21 06:58:46 villa kernel: [53712.744102] usb 2-1.1: Manufacturer: Hewlett-Packard
Oct 21 06:58:46 villa kernel: [53712.744104] usb 2-1.1: SerialNumber: JL0NEVC
Oct 21 06:58:46 villa kernel: [53712.747375] usblp 2-1.1:1.0: usblp1: USB Bidirectional printer dev 16 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Oct 21 06:58:46 villa kernel: [53712.744097] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 21 06:58:46 villa kernel: [53712.744100] usb 2-1.1: Product: HP LaserJet 1020
Oct 21 06:58:46 villa kernel: [53712.744102] usb 2-1.1: Manufacturer: Hewlett-Packard
Oct 21 06:58:46 villa kernel: [53712.744104] usb 2-1.1: SerialNumber: JL0NEVC
Oct 21 06:58:46 villa mtp-probe: checking bus 2, device 16: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Oct 21 06:58:46 villa mtp-probe: bus: 2, device: 16 was not an MTP device
Oct 21 06:58:46 villa kernel: [53712.747375] usblp 2-1.1:1.0: usblp1: USB Bidirectional printer dev 16 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Oct 21 06:58:46 villa systemd[1]: Reached target Printer.
Oct 21 07:09:01 villa CRON[7247]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
Oct 21 07:17:01 villa CRON[9009]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
#####Unplugged USB
Oct 21 07:17:40 villa systemd[1]: printer.target: Unit not needed anymore. Stopping.
Oct 21 07:17:40 villa systemd[1]: Stopped target Printer.
Oct 21 07:17:40 villa kernel: [54847.540724] usb 2-1.1: USB disconnect, device number 16
Oct 21 07:17:40 villa kernel: [54847.540880] usblp1: removed
Oct 21 07:17:40 villa kernel: [54847.540724] usb 2-1.1: USB disconnect, device number 16
Oct 21 07:17:40 villa kernel: [54847.540880] usblp1: removed
##### Plugged USB Back in
Oct 21 07:17:55 villa kernel: [54861.819879] usb 2-1.1: new high-speed USB device number 17 using ehci-pci
Oct 21 07:17:55 villa kernel: [54861.819879] usb 2-1.1: new high-speed USB device number 17 using ehci-pci
Oct 21 07:17:55 villa kernel: [54861.913294] usb 2-1.1: New USB device found, idVendor=03f0, idProduct=2b17
Oct 21 07:17:55 villa kernel: [54861.913299] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 21 07:17:55 villa kernel: [54861.913301] usb 2-1.1: Product: HP LaserJet 1020
Oct 21 07:17:55 villa kernel: [54861.913303] usb 2-1.1: Manufacturer: Hewlett-Packard
Oct 21 07:17:55 villa kernel: [54861.913305] usb 2-1.1: SerialNumber: JL0NEVC
Oct 21 07:17:55 villa kernel: [54861.914129] usblp 2-1.1:1.0: usblp1: USB Bidirectional printer dev 17 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Oct 21 07:17:55 villa kernel: [54861.913294] usb 2-1.1: New USB device found, idVendor=03f0, idProduct=2b17
Oct 21 07:17:55 villa kernel: [54861.913299] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 21 07:17:55 villa kernel: [54861.913301] usb 2-1.1: Product: HP LaserJet 1020
Oct 21 07:17:55 villa kernel: [54861.913303] usb 2-1.1: Manufacturer: Hewlett-Packard
Oct 21 07:17:55 villa kernel: [54861.913305] usb 2-1.1: SerialNumber: JL0NEVC
Oct 21 07:17:55 villa kernel: [54861.914129] usblp 2-1.1:1.0: usblp1: USB Bidirectional printer dev 17 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Oct 21 07:17:55 villa mtp-probe: checking bus 2, device 17: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Oct 21 07:17:55 villa mtp-probe: bus: 2, device: 17 was not an MTP device
Oct 21 07:17:55 villa systemd[1]: Reached target Printer.
##### Powered Off Printer
Oct 21 07:19:10 villa kernel: [54936.629103] usb 2-1.1: USB disconnect, device number 17
Oct 21 07:19:10 villa kernel: [54936.629256] usblp1: removed
Oct 21 07:19:10 villa kernel: [54936.629103] usb 2-1.1: USB disconnect, device number 17
Oct 21 07:19:10 villa kernel: [54936.629256] usblp1: removed
Oct 21 07:19:10 villa systemd[1]: printer.target: Unit not needed anymore. Stopping.
Oct 21 07:19:10 villa systemd[1]: Stopped target Printer.
##### Powered on printer
Oct 21 07:19:23 villa kernel: [54950.395646] usb 2-1.1: new high-speed USB device number 18 using ehci-pci
Oct 21 07:19:23 villa kernel: [54950.395646] usb 2-1.1: new high-speed USB device number 18 using ehci-pci
Oct 21 07:19:23 villa kernel: [54950.507720] usb 2-1.1: New USB device found, idVendor=03f0, idProduct=2b17
Oct 21 07:19:23 villa kernel: [54950.507724] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 21 07:19:23 villa kernel: [54950.507727] usb 2-1.1: Product: HP LaserJet 1020
Oct 21 07:19:23 villa kernel: [54950.507729] usb 2-1.1: Manufacturer: Hewlett-Packard
Oct 21 07:19:23 villa kernel: [54950.507731] usb 2-1.1: SerialNumber: JL0NEVC
Oct 21 07:19:23 villa kernel: [54950.511005] usblp 2-1.1:1.0: usblp1: USB Bidirectional printer dev 18 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Oct 21 07:19:23 villa kernel: [54950.507720] usb 2-1.1: New USB device found, idVendor=03f0, idProduct=2b17
Oct 21 07:19:23 villa kernel: [54950.507724] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 21 07:19:23 villa kernel: [54950.507727] usb 2-1.1: Product: HP LaserJet 1020
Oct 21 07:19:23 villa kernel: [54950.507729] usb 2-1.1: Manufacturer: Hewlett-Packard
Oct 21 07:19:23 villa kernel: [54950.507731] usb 2-1.1: SerialNumber: JL0NEVC
Oct 21 07:19:23 villa kernel: [54950.511005] usblp 2-1.1:1.0: usblp1: USB Bidirectional printer dev 18 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Oct 21 07:19:23 villa mtp-probe: checking bus 2, device 18: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Oct 21 07:19:23 villa mtp-probe: bus: 2, device: 18 was not an MTP device
Oct 21 07:19:23 villa systemd[1]: Reached target Printer.
##### Still no firmware sent so I open another session and send it manually at which point I get the orange LED and the printer does it brief roller cycle.
Oct 21 07:19:47 villa systemd[1]: Started Session 52 of user rahlquist.


Options: ReplyQuote
Re: Permission denied copying firmware [solved]
Posted by: rickrich ()
Date: October 21, 2016 08:10AM

$ head ChangeLog 
2016-10-21      Rick Richardson <rick.richardson@comcast.net>
        * Makefile: install-hotplug-prog
            Add /lib/systemd/systemd-udevd to the list for Ubuntu 16.

redownload, make, etc.

Options: ReplyQuote
Re: Permission denied copying firmware [solved]
Posted by: rahlquist ()
Date: October 21, 2016 09:25AM

Oct 21 09:23:01 villa /etc/hotplug/usb/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /usr/share/foo2zjs/firmware/sihp1020.dl to /dev/usb/lp1 ...
Oct 21 09:23:02 villa /etc/hotplug/usb/hplj1020: foo2zjs: ... download successful.



Worked perfect! Thank you so much!

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.