HP LaserJet 1020 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
PCBSD HP 1020 won't compile [FreeBSD 6.2]
Posted by: cackerso ()
Date: October 14, 2007 10:26PM

OK the first problem is that "wget" doesn't work in PCBSD (based on FreeBSD 6.2).So I had to get the file using "fetch"

I unpacked the tarball, changed to the foo2zjs directory and tried "make". I got the following messages:

pcbsd# make
"Makefile", line 30: Missing dependency operator
"Makefile", line 33: Need an operator
"Makefile", line 34: Missing dependency operator
"Makefile", line 37: Need an operator
"Makefile", line 38: Missing dependency operator
"Makefile", line 41: Need an operator
"Makefile", line 43: Missing dependency operator
"Makefile", line 46: Need an operator
"Makefile", line 50: Missing dependency operator
"Makefile", line 52: Need an operator
"Makefile", line 53: Missing dependency operator
"Makefile", line 55: Need an operator
"Makefile", line 56: Missing dependency operator
"Makefile", line 58: Need an operator
"Makefile", line 179: Missing dependency operator
"Makefile", line 181: Need an operator
"Makefile", line 195: Missing dependency operator
"Makefile", line 203: Need an operator
"Makefile", line 1179: Missing dependency operator
"Makefile", line 1186: Need an operator
"Makefile", line 1187: Missing dependency operator
"Makefile", line 1189: warning: duplicate script for target "foo2oak_.o" ignored
"Makefile", line 1190: warning: duplicate script for target "foo2oak_.o" ignored
"Makefile", line 1192: warning: duplicate script for target "oakdecode_.o" ignored
"Makefile", line 1193: warning: duplicate script for target "oakdecode_.o" ignored
"Makefile", line 1194: Need an operator
make: fatal errors encountered -- cannot continue


What's up? I could try the ports package of foo2zjs that came with PCBSD but the rkkda website recommends against it.



Edited 1 time(s). Last edit at 11/02/2007 08:56PM by rickrich.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile
Posted by: rickrich ()
Date: October 14, 2007 11:08PM

From INSTALL, you read it, right?

FREEBSD NOTES
-------------
    You need the following packages before you start the "make install":
        # pkg_add -r wget
        # pkg_add -r gmake
        # pkg_add -r ghostscript-gnu
        # pkg_add -r cups
        # pkg_add -r foomatic-filters

    Use "gmake" instead of "make".

    USB NOTES FOR HP LJ 1018/1020
        - Build the kernel without the ulpt driver.
        - cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/ugen0.1
            or
        - cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/ugen0.1

        - sauron_the_evil_bastard in Linux, FreeBSD, Solaris:1 on Yahoo! chat.
        - Alexander Sashurin a.k.a. ZetRooT or WinterSilence

OPENBSD NOTES
-------------
    You need the following packages before you start the "make install":
        # pkg_add wget
        # pkg_add gmake
        # pkg_add -i ghostscript
        # pkg_add cups
        # pkg_add unzip

    Use "gmake" instead of "make".



Edited 2 time(s). Last edit at 10/15/2007 03:21PM by rickrich.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile
Posted by: cackerso ()
Date: October 15, 2007 12:25PM

Thanks for the reply. Yes I did read it. But since the details of how these drivers work is a bit beyond my experience I tend to be consciously very literal minded. When the directions say you need the packages before "make install" I assume that means after "make". I'll install the other packages first and run it again. Last time I did it that way I got an error when I tried to install ghostscript. There was a conflict. If it happens again this time I'll post the error.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile
Posted by: cackerso ()
Date: October 15, 2007 02:20PM

OK, when I try "pkg_add -r ghostscript-gnu" I get the following message:

"pkg_add: package 'ghostscript-gnu-7.07_17' conflicts with ghostscript-gpl-8.60
pkg_add: please use pkg_delete first to remove conflicting package(s) or -f to force installation"

So do I leave it as is, delete the other package or force the installation? Just a note, if I try pkg_delete I get the message that there are other packages that depend on ghostscript-gpl-8.60.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile
Posted by: rickrich ()
Date: October 15, 2007 02:57PM

Don't know.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile
Posted by: cackerso ()
Date: October 15, 2007 10:05PM

I installed the packages first. I got the one message I already mentioned for ghostscript-gnu. When I tried to add cups I got "Cups-1.2.12 or older already installed".

gmake seemed to go fine.
I used ./getweb to get the firmware file for HP LaserJet 1020
gmake install went ok.
gmake install-hotplug went ok, as did gmake cups.

I tried to install the printer with KDE's tool. The test page wouldn't print. I rebooted and tried again. No go. So I went through all of the steps even though the test page wouldn't print. I rebooted. The printer still didn't work. If I use Kjobwiewer, the message is that the file is being processed, but there is no printing.

Just a note; In the KDE installer it says the URI is usb:/dev/unlpt0

I looked at some of the other posts here for the HP1020. Since this is FreeBSD there isn't a usb_printerid command.

foo2zjs-wrapper -L0 -z1 testpage.ps > xxx gives "gs.foo: not found"

pcbsd# grep foo2zjs /var/log/messages gives:

Oct 15 18:24:49 pcbsd foo2zjs-wrapper: foo2zjs-wrapper -P -z1 -L0 -r1200x600 -p1 -s7 -m1 -n1
Oct 15 18:25:09 pcbsd foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Oct 15 18:25:09 pcbsd foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -P
Oct 15 18:30:30 pcbsd foo2zjs-wrapper: foo2zjs-wrapper -P -z1 -L0 -r1200x600 -p1 -s7 -m1 -n1
Oct 15 18:31:16 pcbsd foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Oct 15 18:31:16 pcbsd foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -P
Oct 15 18:33:24 pcbsd foo2zjs-wrapper: foo2zjs-wrapper -P -z1 -L0 -r1200x600 -p9 -s7 -m1 -n1
Oct 15 18:33:24 pcbsd foo2zjs-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Oct 15 18:33:24 pcbsd foo2zjs-wrapper: foo2zjs -r1200x600 -g9920x7016 -p9 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -P
Oct 15 18:36:04 pcbsd foo2zjs-wrapper: foo2zjs-wrapper -P -z1 -L0 -r1200x600 -p9 -s7 -m1 -n1
Oct 15 18:36:06 pcbsd foo2zjs-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Oct 15 18:36:06 pcbsd foo2zjs-wrapper: foo2zjs -r1200x600 -g9920x7016 -p9 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -P


I hope this is of some help in figuring out why the printer won't work. It does print from Windows with the same physical set up.

Thanks.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile
Posted by: rickrich ()
Date: October 15, 2007 10:17PM

- Build the kernel without the ulpt driver. You should use /dev/ugenX.
- cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/ugen0.1

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile
Posted by: cackerso ()
Date: October 22, 2007 06:17PM

Thanks for the help. I couldn't get the PCBSD kernel to build without the ulpt driver. When I tried the second command anyway I got "operation not permitted". So I think I'm going to give a pass to PCBSD/FreeBSD until it's a bit more user friendly.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile
Posted by: cackerso ()
Date: October 24, 2007 03:10PM

Just a note, I reinstalled PCBSD 1.4 and installed the printer driver from their ports package. It seems to work fine.

Options: ReplyQuote
A new problem
Posted by: cackerso ()
Date: November 02, 2007 06:15PM

I'm using PCBSD 1.4 which is based on FreeBSD 6. I'm on a multiboot system with lilo as the loader. I have Windows 2000, PCBSD and a Linux distribution installed (Linux Mint which is based on Ubuntu). In PCBSD I"ve installed the foo2zjs driver both according to the script from this web site and from the PCBSD ports package. The result is the same. The printer works fine after the install. I can reboot and the printer works fine. However, if I shut the computer off and then restart, the printer doesn't work.

If I boot into Windows and print, then boot into PCBSD the printer works again. The install of the foo2zjs driver in Mint went fine and the printer works ok from there.

Changing the driver by recompiling the kernel and the problems encountered is seemingly beyond my current knowledge (see this post: "http://forums.pcbsd.org/viewtopic.php?f=2&t=9998";, it's called "HP Laserjet 1020 USB, foo2zjs + cups madness!!!!".

I'm hoping that the solution to this current problem is a bit easier than recompiling the kernel.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile [FreeBSD 6.2]
Posted by: rickrich ()
Date: November 03, 2007 05:56AM

- Build the kernel without the ulpt driver. You should use /dev/ugenX.
- cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/ugen0.1

Repeat: You should use /dev/ugenX

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile [FreeBSD 6.2]
Posted by: cackerso ()
Date: November 04, 2007 05:32PM

If I knew how to rebuild the kernel properly without the ulpt driver I would do it. From everything I've read it isn't trivial. So I guess I'm screwed. Thanks anyway.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile [FreeBSD 6.2]
Posted by: rickrich ()
Date: November 04, 2007 05:45PM

So, then, use Linux. BSD is a hackers OS.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile [FreeBSD 6.2]
Posted by: cackerso ()
Date: November 10, 2007 11:32AM

OK so I figured out how to rebuild the kernel. Now however I can't get the firmware to down load. I keep getting a "file not found error". This is new. Have the firmware files been moved?

Thanks

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile [FreeBSD 6.2]
Posted by: rickrich ()
Date: November 10, 2007 01:01PM

Yes. Re-download...

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile [FreeBSD 6.2]
Posted by: cackerso ()
Date: November 11, 2007 01:44PM

Using "./getweb 1020" I get an error;

"wget: not found
getweb: Couldn't download http://foo2zjs.rkkda.com/firmware/sihp1020.tar.gz";

So I just downloaded the file with a browser. Since I don't know all that the getweb tool does I assume it just down loads the file and un-tar's it in the foo2zjs directory before the "gmake install" and so me doing this my self is sufficient to get the driver working.

Options: ReplyQuote
Re: PCBSD HP 1020 won't compile [FreeBSD 6.2]
Posted by: rickrich ()
Date: November 11, 2007 02:01PM

FREEBSD NOTES
-------------
    You need the following packages before you start the "make install":
        # pkg_add -r wget

Options: ReplyQuote


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