From owner-freebsd-usb@FreeBSD.ORG Sun Feb 4 07:30:06 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB5A416A402 for ; Sun, 4 Feb 2007 07:30:06 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 4BE0213C474 for ; Sun, 4 Feb 2007 07:30:06 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l146rjSH019597; Sun, 4 Feb 2007 17:53:46 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l146rjaw019596; Sun, 4 Feb 2007 17:53:45 +1100 (EST) (envelope-from peter) Date: Sun, 4 Feb 2007 17:53:45 +1100 From: Peter Jeremy To: jessy@muenchen-mail.de Message-ID: <20070204065345.GB19401@turion.vk2pj.dyndns.org> References: <1170551527.45c532e7906d1@webmail.mnet-online.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <1170551527.45c532e7906d1@webmail.mnet-online.de> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-usb@freebsd.org Subject: Re: Sending to ulpt0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2007 07:30:07 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 2007-Feb-04 02:12:07 +0100, jessy@muenchen-mail.de wrote: My >parents recently bought a Laserjet 1018 printer and I want(ed) to =2E.. >other PC and it prints. I switch it off and back on and it stops working. = The >manual for foo2zjs instructs to send the firmware with cat >/usr/share...hp1018.lp >/dev/ulpt0 to the printer, which leads to a timeout >(Device busy) I'm not aware of that printer specifically so the following is just general comments on the problem. It is possible that downloading the firmware actually requires a handshake sequence of some sort and your attempt to cat to the printer is failing because nothing is reading the return data. There is a lot of debugging infrastructure in the USB code. In order to enable this, you would need to rebuild your kernel with options USB_DEBUG in the your config file. Debug output is then controlled by a number of sysctl's but controlling and interpreting the debug output needs reference to the source code. >2. detaching the driver from the usb-port, sending the firmware over a gen= eric >usb driver and re-attaching the ulpt driver The only way to stop ulpt grabbing the printer is to remove it from the kernel. ulpt is compiled into GENERIC, making this difficult. Assuming you have ulpt as a kld, the process is: - Unplug printer from computer (releasing ultp0) - kldunload ulpt - Re-connect printer (which will attach as ugen0) - Play with printer via ugen - Unplug printer from computer (releasing ugen0) - kldload ulpt - Re-connect printer (which will attach as ulpt0) --=20 Peter Jeremy --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFxYL5/opHv/APuIcRAlMSAKCfZYWF8B+bNeKLYnQL7N4SgBBw3gCgiPxl 7OQeDEGXnGjq5du4qBzHUQA= =Ob6S -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--