Re: Raspberry Pi 3B USB Printing Issue

Archimedes Gaviola <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <CAJFbk7Gx1i5r-KunNP41re7A_6m+YPO6K3Ru-J=0xqidNQsj7A@mail.gmail.com>
    >> Try something like this:

> >>
> >>> diff --git a/sys/dev/usb/serial/ulpt.c b/sys/dev/usb/serial/ulpt.c
> >>> index c566da92437..d663800f4fc 100644
> >>> --- a/sys/dev/usb/serial/ulpt.c
> >>> +++ b/sys/dev/usb/serial/ulpt.c
> >>> @@ -499,6 +499,9 @@ static const STRUCT_USB_HOST_ID ulpt_devs[] = {
> >>>          {USB_IFACE_CLASS(UICLASS_PRINTER),
> >>>           USB_IFACE_SUBCLASS(UISUBCLASS_PRINTER),
> >>>           USB_IFACE_PROTOCOL(UIPROTO_PRINTER_1284)},
> >>> +
> >>> +       /* Epson printer */
> >>> +       {USB_VPI(USB_VENDOR_EPSON, USB_PRODUCT_EPSON_TMU220B, 0)},
> >>>   };
> >>>
> >>>   static int
> >>> diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
> >>> index 01c25d7c096..632b8f19610 100644
> >>> --- a/sys/dev/usb/usbdevs
> >>> +++ b/sys/dev/usb/usbdevs
> >>> @@ -1941,6 +1941,7 @@ product EPSON 1270                0x0120
> >> Perfection 1270 scanner
> >>>   product EPSON 2480             0x0121  Perfection 2480 scanner
> >>>   product EPSON 3590             0x0122  Perfection 3590 scanner
> >>>   product EPSON 4990             0x012a  Perfection 4990 Photo scanner
> >>> +product EPSON TMU220B          0x0200  TM-U220B
>                                      ^^^ 0x0202 (should be this value)
> >>>   product EPSON CRESSI_EDY       0x0521  Cressi Edy diving computer
> >>>   product EPSON N2ITION3         0x0522  Zeagle N2iTion3 diving
> computer
> >>>   product EPSON STYLUS_875DC     0x0601  Stylus Photo 875DC Card Reader
> >>
> >>
> > Hi Hans,
> >
> > The patch above has no effect. My Epson printer is still obtaining the
> > ugen(4) driver after I apply and recompile the kernel. Anything I've
> missed?
> >
> > Thanks,
> > Archimedes
> >
>
> Hi,
>
> See comment above!
>


Thanks Hans for the correction! My Epson printer is now detected with the
ulpt(4) driver. However, it's throwing a message code no. 12 and there is
no character device file of ulpt1 created in the /dev directory thus I
could not print.

root@generic:~ # dmesg
...
ugen1.5: <EPSON EPSON UB-U03II> at usbus1
ulpt1 on uhub1
ulpt1: <EPSON EPSON UB-U03II, class 0/0, rev 1.10/2.00, addr 5> on usbus1
device_attach: ulpt1 attach returned 12

root@generic:~ # ls -la /dev/ulpt1
ls: /dev/ulpt1: No such file or directory

I double checked my Xprinter printer and compared the behavior.

root@generic:~ # dmesg
...
ugen1.4: <Printer-58 USB Printing Support> at usbus1
ulpt0 on uhub1
ulpt0: <Printer-58 USB Printing Support, class 0/0, rev 2.00/2.54, addr 4>
on usbus1
ulpt0: using bi-directional mode
ulpt0: offline

root@generic:~ # ls -la /dev/ulpt0
crw-r--r--  1 root  operator  0x7c Apr 10 03:44 /dev/ulpt0

What is this message code no. 12 showing-up in the device_attach() ->
device_attach: ulpt1 attach returned 12? I'm currently looking at this
message code trying to figure-out what's going on.

Thanks,
Archimedes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.