Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto for HP LaserJet 1000
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Thu Sep 16, 2004 7:15 pm    Post subject: Reply with quote

I have written an ebuild for it and it looks like it works very well. Only printer configuration in the cups-gui is needed after you installed this ebuild. Hotplug and such is made by this ebuild.

Code:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Support for printing to ZjStream-based printers"
HOMEPAGE="http://foo2zjs.rkkda.com/"
SRC_URI="http://foo2zjs.rkkda.com/${PN}.tar.gz
    ftp://ftp.minolta-qms.com/pub/crc/out_going/win/m23dlicc.exe
    ftp://ftp.minolta-qms.com/pub/crc/out_going/win2000/m22dlicc.exe
    ftp://ftp.minolta-qms.com/pub/crc/out_going/windows/cpplxp.exe
    ftp://192.151.53.86/pub/softlib/software2/COL2222/lj-10067-2/lj1005hostbased-en.exe
    ftp://ftp.hp.com/pub/softlib/software1/lj1488/lj-1145-2/lj1488en.exe"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
IUSE="cups foomaticdb"
DEPEND="cups? ( >=net-print/cups-1.1.20-r1 )
    foomaticdb? ( >=net-print/foomatic-3.0.1 )"
KEYWORDS="-* ~x86"
S=${WORKDIR}/${PN}

src_unpack() {
    tar xzf ${DISTDIR}/${PN}.tar.gz
    # sed takes out the first entry
    for i in `echo ${A} | sed "s/^.[a-z0-9.]* //"`
    do
        ln -s ${DISTDIR}/${i} ${S}
    done
}

src_compile() {
    emake || die "emake failed"
}

src_install() {

# unpack the firmware
    sed -si "s/.*wget.*//" getweb
    ./getweb 2300   # Get Minolta 2300 DL .ICM files
    ./getweb 2200   # Get Minolta 2200 DL .ICM files
    ./getweb cpwl   # Get Minolta Color PageWorks/Pro L .ICM files
    ./getweb 1005   # Get HP LJ1005 firmware file
    ./getweb 1000     # Get HP LJ1000 firmware file

# install: Fix some Makefile bugs first here
    sed -si "s|PREFIX=\/usr|PREFIX=${D}/usr|" Makefile
    sed -si "s|rm -rf /var/cache/fo|#rm -rf /var/cache/fo|" Makefile
    sed -si "s|.*install-usermap.*|#|" Makefile
    dodir /usr/bin
    use foomaticdb && dodir \
        /usr/share/foomatic/db/source/driver \
        /usr/share/foomatic/db/source/printer \
        /usr/share/foomatic/db/source/opt
    use cups && dodir /usr/share/cups/model
    make \
        MANDIR=${D}/usr/share/man \
        INFODIR=${D}/usr/share/info \
        FOODB=${D}/usr/share/foomatic/db/source \
        MODEL=${D}/usr/share/cups/model \
        USBDIR=${D}/etc/hotplug/usb \
        all install install-hotplug || die

    cat >${D}/etc/hotplug/usb/hplj.usermap<<EOF
# usb module         match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
hplj1000 0x0003 0x03f0 0x0517 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
hplj1005 0x0003 0x03f0 0x1317 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
EOF
}
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Fri Sep 24, 2004 11:59 am    Post subject: Reply with quote

I created another ebuild for foo2zjs, it fixes problems that arise with amd64.

https://bugs.gentoo.org/show_bug.cgi?id=65156
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Fri Sep 24, 2004 8:34 pm    Post subject: Reply with quote

I combined mine and your ebuild, always taking the best ideas of both. Can you please test it? It can be found in bugzilla.
Back to top
View user's profile Send private message
roRisc
n00b
n00b


Joined: 28 Oct 2004
Posts: 50
Location: Montréal, Canada.

PostPosted: Thu Oct 28, 2004 3:41 am    Post subject: Reply with quote

I have no /etc/hotplug/usb.usermap file...

the printer works fine untill I power it off...
Mandrake linux fixed this issue, how'd they do it?

how can I used the provided ebuild?
.. is there a dumbed-down how-to on this? I downloaded it placed it in ../portaje/net-print/ and don't know what to do next....

many thanks.
Back to top
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Thu Oct 28, 2004 5:11 am    Post subject: Reply with quote

Search for documentation on overlay and see PROTDIR_overlay in /etc/make.conf
Back to top
View user's profile Send private message
roRisc
n00b
n00b


Joined: 28 Oct 2004
Posts: 50
Location: Montréal, Canada.

PostPosted: Thu Oct 28, 2004 11:05 pm    Post subject: Reply with quote

could someone please explain what the ebuild does? ..

can I accomplish the same thing without having the usb.usermap file on my box?

my printer works fine, untill I powercycle it. I'd love to get it all working. :) thank you.
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Thu Oct 28, 2004 11:47 pm    Post subject: Reply with quote

You're sure you got the latest version of hotplug installed? This file should be included...

Code:
fuero@hephaestos ~/tmp/sim-0.9.3 $ qpkg -f /etc/hotplug/usb.usermap
sys-apps/hotplug *

_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Fri Oct 29, 2004 8:16 am    Post subject: Reply with quote

We do not change usb.usermap as we should not own the same file as hotplug. We have a file /etc/hotplug/usb/hplj.usermap instead. You can help us to improve the usb hotplug function, because as you said it does not work quite well.
Back to top
View user's profile Send private message
roRisc
n00b
n00b


Joined: 28 Oct 2004
Posts: 50
Location: Montréal, Canada.

PostPosted: Mon Nov 01, 2004 7:10 pm    Post subject: Reply with quote

I have compiled usb support in the kernel, so that may be the reason why there was no usb.usermap.

however, I emerged hotplug and I have the file now.
how come the printer worked without it?

thanks.
Back to top
View user's profile Send private message
roRisc
n00b
n00b


Joined: 28 Oct 2004
Posts: 50
Location: Montréal, Canada.

PostPosted: Mon Nov 01, 2004 11:58 pm    Post subject: Reply with quote

still trying to make this script work.

I noticed 2 lines:
Code:

# 1. Where is the firmware file?
firmware=/etc/printer/sihp1000.img
# 2. Where is the usb_id_test executable?
detector=/usr/local/bin/usb_id_test


..however, I have no such folder as /etc/printer/
and the firmware was transformed into sihp1000.dl in one of the steps....

how can I check the logger to find out if indeed there's an error comming from
Code:

 else
  mesg Error: I cannot find the firmware file
  mesg Please check the settings of $0


thank you.
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Tue Nov 02, 2004 2:38 am    Post subject: Reply with quote

err... which script are you talking about?

hotplug is supposed to load /etc/hotplug/usb/hplj1000:
Code:
#
# Directory to find downloadable HP firmware files sihpMMMM.dl
#
FWDIR=/usr/share/foo2zjs/firmware

#
# Program used to determine USB id information
#
USBID=/usr/bin/usb_printerid


If it doesn't, make sure you got /etc/hotplug/usb/hplj.usermap. These files should be installed by the foo2zjs ebuild genstef and I created. If you don't have both, please try to reinstall foo2zjs using the newest ebuild you can find in Bugzilla.
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
roRisc
n00b
n00b


Joined: 28 Oct 2004
Posts: 50
Location: Montréal, Canada.

PostPosted: Tue Nov 02, 2004 4:58 am    Post subject: Reply with quote

I was talking about the initial script on 1st page.

I don't have a clue on how to download your ebuild.
genstef wrote:
Search for documentation on overlay and see PROTDIR_overlay in /etc/make.conf

I can't find anything on this issue on the forum.. nor google.

please let me know how I can emerge your ebuild?
an RTFM link would be great. ... don't know what to search for.... :oops:
Thank you.
Back to top
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Mon Nov 08, 2004 7:54 pm    Post subject: Reply with quote

from /etc/make.conf.example


# PORTDIR_OVERLAY is a directory where local ebuilds may be stored without
# concern that they will be deleted by rsync updates. Default is not
# defined.
#PORTDIR_OVERLAY=/usr/local/portage
Back to top
View user's profile Send private message
herlock
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2003
Posts: 141
Location: Bruxelles

PostPosted: Wed Nov 24, 2004 9:01 pm    Post subject: Reply with quote

I can't download the firmware:
Code:
$ wget ftp://ftp.hp.com/pub/softlib/software1/lj1488/lj-1145-2/lj1488en.exe
--22:03:55--  ftp://ftp.hp.com/pub/softlib/software1/lj1488/lj-1145-2/lj1488en.exe
           => `lj1488en.exe'
Rsolution de ftp.hp.com... 192.6.234.8, 192.6.165.119
Connexion vers ftp.hp.com[192.6.234.8]:21...connect.
Ouverture de session en anonymous...Session tablie!
==> SYST ... complt.    ==> PWD ... complt.
==> TYPE I ... complt.  ==> CWD /pub/softlib/software1/lj1488/lj-1145-2 ... complt.
==> PORT ... complt.    ==> RETR lj1488en.exe ... complt.
accept: Connexion termine par expiration du dlai d'attente
Nouvel essai.

--22:03:59--  ftp://ftp.hp.com/pub/softlib/software1/lj1488/lj-1145-2/lj1488en.exe
  (essai: 2) => `lj1488en.exe'
==> CWD n'est pas requis.
==> PORT ...


(sorry but it's in french)

So, where can i get it?

Thanks
Back to top
View user's profile Send private message
trakon88
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2002
Posts: 84
Location: Hamburg, Germany

PostPosted: Thu Jun 30, 2005 10:52 am    Post subject: in case of udev related problems Reply with quote

hi all

watch out for this: https://forums.gentoo.org/viewtopic-t-276876-highlight-hp1000fw.html

I don't know if udev has been taken care of in the ebuild ...
Back to top
View user's profile Send private message
GurliGebis
Retired Dev
Retired Dev


Joined: 08 Aug 2002
Posts: 509

PostPosted: Sun Jul 03, 2005 4:10 pm    Post subject: Reply with quote

I got this little script for uploading the firmware: (/etc/dev.d/default/hotplug.dev)
Code:
#!/bin/sh

if [ "$DEVNAME" != "/dev/usb/lp0" ]; then exit; fi
cat /lib/firmware/sihp1000.dl > /dev/usb/lp0


I know it's an ugly hack, but it works quiet nice :)
_________________
Queen Rocks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum