Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Mar 2022 17:33:07 +0800
From:      Archimedes Gaviola <archimedes.gaviola@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi 3B USB Printing Issue
Message-ID:  <CAJFbk7HULk53iz2HNeyqOV8OxXXvdu-36pH2f3rrc01ATHt%2B4w@mail.gmail.com>
In-Reply-To: <a5d5f948-fdc8-037c-dda6-5291e7440e28@selasky.org>
References:  <CAJFbk7EzSfPNbaGxiweKrivwNrKXCPVzA1b7_=0_bTvbs8oBow@mail.gmail.com> <7c67118e-f6ec-c87d-9a81-3ee6a5952f49@selasky.org> <CAJFbk7GYbLAFTJY077Nzh3CTBJM6bk8swr4AkgGMaukCxrfcHQ@mail.gmail.com> <60f98b10-dcdc-cdf4-3d7a-fe9fd4dff223@selasky.org> <CAJFbk7EAjrQG5Kj_upVKW72opOS%2B8d63VrMnQdLxcJjUcfsd=g@mail.gmail.com> <8226461b-5740-9c19-0575-2740bd952e16@selasky.org> <CAJFbk7FMa_8EXM70HdhgdLmkpjpRD54fRrO=uctHV4uQ2_nNhA@mail.gmail.com> <5fcece51-b014-330e-b701-fd75fa1ac204@selasky.org> <CAJFbk7Gx1i5r-KunNP41re7A_6m%2BYPO6K3Ru-J=0xqidNQsj7A@mail.gmail.com> <a5d5f948-fdc8-037c-dda6-5291e7440e28@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000026e1f405da022313
Content-Type: text/plain; charset="UTF-8"

On Sat, Mar 12, 2022 at 4:41 PM Hans Petter Selasky <hps@selasky.org> wrote:

> On 3/12/22 08:07, Archimedes Gaviola wrote:
> > 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
>


Hi Hans,


>
> 12 : man errno :
>       12 ENOMEM Cannot allocate memory.
>
> I guess the EPSON printer you've got is not compatible with ulpt<n>
>

Oh I see, just tried with my RPi 4B and it has the same issue with returned
12 on ENOMEM. Previously with OpenBSD it was only detected as well with the
ugen(4) driver not ulpt(4) so most likely not compatible. I will check the
manual for any settings relevant to this.


>
> When printing, can you make sure that the length transferred is never a
> multiple of 64 bytes?
>

Okay let me double check with usbdump again as these are only plain text
characters being printed with no other formats involved.


>
> Also, there might be a bug lurking in the USB host controller driver,
> like already mentioned.
>

Okay noted again, so there's a need to check and review the code of the DWC
OTG host controller driver. So this is just specific to RPi 3B. I'll
proceed on enabling the debugging settings and observed.

Thanks,
Archimedes

--00000000000026e1f405da022313
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sat, Mar 12, 2022 at 4:41 PM Hans =
Petter Selasky &lt;<a href=3D"mailto:hps@selasky.org">hps@selasky.org</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 3/1=
2/22 08:07, Archimedes Gaviola wrote:<br>
&gt; ugen1.5: &lt;EPSON EPSON UB-U03II&gt; at usbus1<br>
&gt; ulpt1 on uhub1<br>
&gt; ulpt1: &lt;EPSON EPSON UB-U03II, class 0/0, rev 1.10/2.00, addr 5&gt; =
on usbus1<br>
&gt; device_attach: ulpt1 attach returned 12<br></blockquote><div><br></div=
><div><br></div><div>Hi Hans,</div><div>=C2=A0<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">
<br>
12 : man errno :<br>
=C2=A0 =C2=A0 =C2=A0 12 ENOMEM Cannot allocate memory.<br>
<br>
I guess the EPSON printer you&#39;ve got is not compatible with ulpt&lt;n&g=
t;<br></blockquote><div><br></div><div>Oh I see, just tried with my RPi 4B =
and it has the same issue with returned 12 on ENOMEM. Previously with OpenB=
SD it was only detected as well with the ugen(4) driver not ulpt(4) so most=
 likely not compatible. I will check the manual for any settings relevant t=
o this.<br></div><div>=C2=A0<br></div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi=
ng-left:1ex">
<br>
When printing, can you make sure that the length transferred is never a <br=
>
multiple of 64 bytes?<br></blockquote><div><br></div><div>Okay let me doubl=
e check with usbdump again as these are only plain text characters being pr=
inted with no other formats involved.<br></div><div>=C2=A0<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex">
<br>
Also, there might be a bug lurking in the USB host controller driver, <br>
like already mentioned.<br></blockquote></div><div class=3D"gmail_quote"><b=
r></div><div class=3D"gmail_quote">Okay noted again, so there&#39;s a need =
to check and review the code of the DWC OTG host controller driver. So this=
 is just specific to RPi 3B. I&#39;ll proceed on enabling the debugging set=
tings and observed.<br></div><div class=3D"gmail_quote"><br></div><div clas=
s=3D"gmail_quote">Thanks,</div><div class=3D"gmail_quote">Archimedes<br></d=
iv><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote"><br></di=
v></div>

--00000000000026e1f405da022313--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7HULk53iz2HNeyqOV8OxXXvdu-36pH2f3rrc01ATHt%2B4w>