Marc Balmer wrote:
* Gmail Account wrote:
I have the above mentioned USB printer. It requires the foo2zjs driver which I've successfully compiled from the foo2zjs web site (following the OpenBSD instructions). Unlike most printers, the HPLJ1018 does not have "persistent" firmware. Instead, its firmware (the file 'sihp1018.dl') must be uploaded to it every time it is physically powered on.

When I power up the HPLJ1018 and plug it in to one of my PC's USB ports, dmesg shows:

ulpt0 at uhub0 port 2 configuration 1 interface 0 "Hewlett-Packard HP LaserJet 1018" rev 2.00/1.00 addr 2
ulpt0: using bi-directional mode

However, when I try:

$ cat hp1018.dl > /dev/ulpt0

The terminal cursor just hangs. The same thing happens when I try it as root. Eventually, things time out and I get the response:

ksh: cannot create /dev/ulpt0: Device busy

I've tried disabling ulpt0 at boot:

boot> -c
disable ulpt
quit

this is correct

and then:

# sihp1018.dl > /dev/ugen0

use cat sihp1018.dl >/dev/ugen0

and of course configure your printcap to print to ugen0.

it works, we use ton's of these printers (I think even the same
model)

but it still does not appear to load properly - the cursor just goes back to # shortly thereafter and nothing happens. Anything I print disappears into a black hole. When I try things in linux the printer emits a few noises and the print head moves and subsequent printing works without a hitch.

I fear I'm doing something wrong in uploading the firmware (am I missing steps?). I'm quite new to OpenBSD and am having trouble finding guidance on how to upload firmware to peripheral devices. Can anyone help me out?

Kind regards

Ooops. My mistake. The missing 'cat' was a typo. Sry.
I'm using CUPS so IIRC /etc/printcap is overwritten by CUPS and that I should edit /etc/cups/printers.conf instead. (Is that correct?) If I do this, and change the line:

DeviceURI usb:/dev/ulpt0

to:

DeviceURI usb:/dev/ugen0

I get the error message "Unable to open USB device "usb:/dev/ugen0": Permission denied". I can only see '_cups' in /etc/group and when I change the permissions of /dev/ugen0 to 646 I still get this permission error.

I'm stumped.

Reply via email to