Date: Tue, 30 Jan 2001 09:17:52 +0900 (JST) From: Honda Hirotaka <hrtk@kt.rim.or.jp> To: freebsd-stable@FreeBSD.ORG Subject: ulpt Message-ID: <20010130.091752.108736064.hrtk@kt.rim.or.jp>
next in thread | raw e-mail | index | archive | help
I am trying to use ulpt driveer to print with ALPS MD-5500 via USB
cable, but /dev/ulpt0 seems retuning "device busy" and don't print anything.
On demsg is "uhci_timeout: ii=0xc05a46e0".
I can't find where is the cause of the error.
This is the result of "lpr" and My check list of settings to print
with ulpt. Please help me.
[Result]
$ lpr /tmp/test.ps
$ lpc
lpc> status lp
lp:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
lpc> quit
$ ls -lt /tmp |head -n 4
total 375
-rw------- 1 daemon wheel 33 Jan 30 08:51 umd-error
-rw------- 1 daemon wheel 7442 Jan 30 08:51 umd.1103.md
-rw------- 1 daemon wheel 5425 Jan 30 08:50 umd.1103.ps
$
(after "su")
# cat /tmp/umd-error
I could not cat /tmp/umd.1103.md
# cat "abc" > /dev/ulpt0
su: /dev/ulpt0: Device busy
#
[Settings]
1 kernel
1.1 kernel config file
1.2 dmesg
2 lpd
2.1 /etc/printcap
2.2 if filter
2.3 spool directory
1 kernel
1.1 kernel config file
# USB support
device uhci # UHCI PCI->USB interface
#device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
#device ugen # Generic
#device uhid # "Human Interface Devices"
#device ukbd # Keyboard
device ulpt # Printer
#device umass # Disks/Mass storage - Requires scbus and da
#device ums # Mouse
#device uscanner # Scanners
# hirotaka from LINT 20010129
options UHCI_DEBUG
options USB_DEBUG
options ULPT_DEBUG
# USB Ethernet, requires mii
#device aue # ADMtek USB ethernet
#device cue # CATC USB ethernet
#device kue # Kawasaki LSI USB ethernet
1.2 dmesg
FreeBSD 4.2-STABLE #0: Mon Jan 29 15:22:59 JST 2001
...
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1820-0x183f irq 11 at device 7.2 on pci0
uhci0: LegSup = 0x00000030
uhci_run: setting run=0
uhci_run: done cmd=0xc0 sts=0x20
uhci_run: setting run=1
uhci_run: done cmd=0x81 sts=0x0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: Texas Instruments General Purpose USB Hub, class 9/0, rev 1.10/1.01, addr 2
uhub1: 2 ports with 2 removable, self powered
ulpt0: ALPS ALPS USB Printer Port , rev 1.00/1.00, addr 3, iclass 7/1
...
pccard: card inserted, slot 0
ed1 at port 0x300-0x31f irq 3 slot 0 on pccard0
ed1: address 00:90:99:0b:d4:6c, type NE2000 (16 bit)
uhci_timeout: ii=0xc05a46e0
uhci_timeout: ii=0xc05a46e0
uhci_timeout: ii=0xc05a46e0
uhci_timeout: ii=0xc05a46e0
2.1 /etc/printcap
lp|local line printer:\
:sh:mx#0:\
:lp=/dev/ulpt0:sd=/var/spool/output/lpd:\
:if=/var/spool/filter/umd:\
:lf=/var/log/lpd-errs:
2.2 /var/spool/filter/umd
#!/bin/sh -
PATH="/bin:/usr/bin"; export PATH
umask 077
IF=/tmp/umd.$$.ps
OF=/tmp/umd.$$.md
cat > $IF || exit 2
{ echo showpage; echo quit; } | \
/usr/local/bin/gs -q -dSAFER -dNOPAUSE -sPAPERSIZE=a4 -sDEVICE=md5k -r1200x600 -sOutputFile=$OF $IF 2>/dev/null >/dev/null || exit 2
#cat $OF || exit 2
cat $OF || (echo "I could not cat $OF">/tmp/umd-error ; exit 2)
#rm -f $IF $OF
exit 0
2.3 spool directory
$ cd /var/spool/output
$ ls -al
total 6
drwxr-xr-x 6 root daemon 512 Jan 29 23:53 .
drwxr-xr-x 10 root wheel 512 Jan 2 14:44 ..
drwxr-xr-x 2 daemon daemon 512 Jan 29 00:55 dec
drwxr-xr-x 2 daemon daemon 512 Jan 27 04:27 dj
drwxr-xr-x 2 root daemon 512 Jan 30 00:25 lpd
drwxr-xr-x 2 daemon daemon 512 Jan 27 04:44 md
$ ls -alR
total 6
drwxr-xr-x 6 root daemon 512 Jan 29 23:53 .
drwxr-xr-x 10 root wheel 512 Jan 2 14:44 ..
drwxr-xr-x 2 daemon daemon 512 Jan 29 00:55 dec
drwxr-xr-x 2 daemon daemon 512 Jan 27 04:27 dj
drwxr-xr-x 2 root daemon 512 Jan 30 00:25 lpd
drwxr-xr-x 2 daemon daemon 512 Jan 27 04:44 md
./dec:
total 5
drwxr-xr-x 2 daemon daemon 512 Jan 29 00:55 .
drwxr-xr-x 6 root daemon 512 Jan 29 23:53 ..
-rw------- 1 root daemon 4 Jan 29 00:55 .seq
-rw-rw-r-- 1 root daemon 4 Jan 29 23:53 lock
-rw-rw-r-- 1 root daemon 15 Jan 29 00:55 status
./dj:
total 5
drwxr-xr-x 2 daemon daemon 512 Jan 27 04:27 .
drwxr-xr-x 6 root daemon 512 Jan 29 23:53 ..
-rw-r----x 1 root daemon 4 Jan 27 04:25 .seq
-rwxrwxr-- 1 root daemon 22 Jan 27 04:27 lock
-rw-rw-r-- 1 root daemon 1 Jan 27 04:28 status
./lpd:
total 5
drwxr-xr-x 2 root daemon 512 Jan 30 00:25 .
drwxr-xr-x 6 root daemon 512 Jan 29 23:53 ..
-rw------- 1 root daemon 4 Jan 30 00:25 .seq
-rw-rw-r-- 1 root daemon 22 Jan 30 00:25 lock
-rw-rw-r-- 1 root daemon 25 Jan 30 00:25 status
./md:
total 5
drwxr-xr-x 2 daemon daemon 512 Jan 27 04:44 .
drwxr-xr-x 6 root daemon 512 Jan 29 23:53 ..
-rw-r----x 1 root daemon 4 Jan 27 04:43 .seq
-rwxrwxr-- 1 root daemon 22 Jan 27 04:43 lock
-rw-rw-r-- 1 root daemon 1 Jan 27 04:54 status
$
--
Honda Hirotaka LL.M.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010130.091752.108736064.hrtk>
