Re: Raspberry Pi 3B USB input devices are not working

2020-08-03 Thread Archimedes Gaviola
Hi,

Just to add as well that the USB LAN Ethernet is working great aside from
the USB input devices that I've encountered. I just know from the man page
http://man.openbsd.org/smsc.4.

[dmesg snip]
...
smsc0 at uhub1 port 1 configuration 1 interface 0 "Standard Microsystems
SMSC9512/14" rev 2.00/2.00 addr 3
smsc0: address b8:27:eb:64:8b:57
ukphy0 at smsc0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x0001f0, model 0x000c

Since OpenBSD system has dwctwo(4) driver http://man.openbsd.org/dwctwo.4 is
there a need to declare the dtoverlay lines in the config.txt?

dtoverlay=dwc-otg
dtoverlay=dwc2

[dmesg snip]
...
usb0 at dwctwo0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Broadcom DWC2 root hub" rev
2.00/1.00 addr 1

Thanks and best regards,
Archimedes


On Mon, Aug 3, 2020 at 10:23 AM Archimedes Gaviola <
archimedes.gavi...@gmail.com> wrote:

> Hi,
>
> Good day!
>
> I installed OpenBSD 6.7 release and current (dated August 1, 2020) to my
> Raspberry Pi 3B. Installations are successful respectively but USB input
> devices such as keyboard, mouse, barcode scanner are not working. They are
> detected but not working. My USB output device which is an Xprinter printer
> is working fine. I tried adding the following DTB to config.txt as to no
> avail.
>
> dtoverlay=dwc-otg
> dtoverlay=dwc2
>
> I've tried an Ubuntu Linux image and these USB devices works. Any idea of
> the problem?
>
> Attached is my RPI 3B dmesg output.
>
> Thanks and best regards,
> Archimedes
>


Re: Raspberry Pi 3B USB input devices are not working

2020-08-03 Thread Mark Kettenis
> From: Archimedes Gaviola 
> Date: Mon, 3 Aug 2020 17:53:51 +0800
> Content-Type: text/plain; charset="UTF-8"
> 
> Hi,
> 
> Just to add as well that the USB LAN Ethernet is working great aside from
> the USB input devices that I've encountered. I just know from the man page
> http://man.openbsd.org/smsc.4.
> 
> [dmesg snip]
> ...
> smsc0 at uhub1 port 1 configuration 1 interface 0 "Standard Microsystems
> SMSC9512/14" rev 2.00/2.00 addr 3
> smsc0: address b8:27:eb:64:8b:57
> ukphy0 at smsc0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x0001f0, model 0x000c
> 
> Since OpenBSD system has dwctwo(4) driver http://man.openbsd.org/dwctwo.4 is
> there a need to declare the dtoverlay lines in the config.txt?
> 
> dtoverlay=dwc-otg
> dtoverlay=dwc2

No.  In fact those lines might hurt.

As for your problem; in some cases inserting a (powered) USB 2.0 Hub
in the chain may help.

> [dmesg snip]
> ...
> usb0 at dwctwo0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Broadcom DWC2 root hub" rev
> 2.00/1.00 addr 1
> 
> Thanks and best regards,
> Archimedes
> 
> 
> On Mon, Aug 3, 2020 at 10:23 AM Archimedes Gaviola <
> archimedes.gavi...@gmail.com> wrote:
> 
> > Hi,
> >
> > Good day!
> >
> > I installed OpenBSD 6.7 release and current (dated August 1, 2020) to my
> > Raspberry Pi 3B. Installations are successful respectively but USB input
> > devices such as keyboard, mouse, barcode scanner are not working. They are
> > detected but not working. My USB output device which is an Xprinter printer
> > is working fine. I tried adding the following DTB to config.txt as to no
> > avail.
> >
> > dtoverlay=dwc-otg
> > dtoverlay=dwc2
> >
> > I've tried an Ubuntu Linux image and these USB devices works. Any idea of
> > the problem?
> >
> > Attached is my RPI 3B dmesg output.
> >
> > Thanks and best regards,
> > Archimedes
> >
> 



Re: Raspberry Pi 3B USB input devices are not working

2020-08-03 Thread Archimedes Gaviola
On Mon, Aug 3, 2020 at 6:30 PM Mark Kettenis 
wrote:

> > From: Archimedes Gaviola 
> > Date: Mon, 3 Aug 2020 17:53:51 +0800
> > Content-Type: text/plain; charset="UTF-8"
> >
> > Hi,
> >
> > Just to add as well that the USB LAN Ethernet is working great aside from
> > the USB input devices that I've encountered. I just know from the man
> page
> > http://man.openbsd.org/smsc.4.
> >
> > [dmesg snip]
> > ...
> > smsc0 at uhub1 port 1 configuration 1 interface 0 "Standard Microsystems
> > SMSC9512/14" rev 2.00/2.00 addr 3
> > smsc0: address b8:27:eb:64:8b:57
> > ukphy0 at smsc0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> > 0x0001f0, model 0x000c
> >
> > Since OpenBSD system has dwctwo(4) driver
> http://man.openbsd.org/dwctwo.4 is
> > there a need to declare the dtoverlay lines in the config.txt?
> >
> > dtoverlay=dwc-otg
> > dtoverlay=dwc2
>
> No.  In fact those lines might hurt.
>
> As for your problem; in some cases inserting a (powered) USB 2.0 Hub
> in the chain may help.
>

Thanks Mark for your response! Noted in your advice. I plan to have a
powered USB 2.0 Hub in the chain but when I took a try with Ubuntu Linux
image for Raspberry Pi 3 all the 4 USB ports functions as to no need for an
external chain of USB 2.0 Hub device. That's why I began to ask and become
curious if I have configured my OpenBSD system correctly or I missed
something? I can print by attaching my printer to one of the USB ports, the
second to my USB keyboard, the third port to my USB mouse and the fourth
port to my barcode scanner. All works without any problem. I'm using the
Raspberry Pi 3B power adapter with 5V with 2.5 Ampere capacity
https://shopee.ph/product/18252381/190149839.


>
> > [dmesg snip]
> > ...
> > usb0 at dwctwo0: USB revision 2.0
> > uhub0 at usb0 configuration 1 interface 0 "Broadcom DWC2 root hub" rev
> > 2.00/1.00 addr 1
> >
> > Thanks and best regards,
> > Archimedes
> >
> >
> > On Mon, Aug 3, 2020 at 10:23 AM Archimedes Gaviola <
> > archimedes.gavi...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > Good day!
> > >
> > > I installed OpenBSD 6.7 release and current (dated August 1, 2020) to
> my
> > > Raspberry Pi 3B. Installations are successful respectively but USB
> input
> > > devices such as keyboard, mouse, barcode scanner are not working. They
> are
> > > detected but not working. My USB output device which is an Xprinter
> printer
> > > is working fine. I tried adding the following DTB to config.txt as to
> no
> > > avail.
> > >
> > > dtoverlay=dwc-otg
> > > dtoverlay=dwc2
> > >
> > > I've tried an Ubuntu Linux image and these USB devices works. Any idea
> of
> > > the problem?
> > >
> > > Attached is my RPI 3B dmesg output.
> > >
> > > Thanks and best regards,
> > > Archimedes
> > >
> >
>


Re: Raspberry Pi 3B USB input devices are not working

2020-08-03 Thread Stuart Henderson
On 2020/08/03 10:23, Archimedes Gaviola wrote:
> I installed OpenBSD 6.7 release and current (dated August 1, 2020) to my
> Raspberry Pi 3B. Installations are successful respectively but USB input
> devices such as keyboard, mouse, barcode scanner are not working. They are
> detected but not working.

This is on serial console isn't it? You wouldn't expect input from USB
HIDs to show up there. I think it will need to be switched to HDMI
console to be able to see anything from those input devices. I don't
know if that works on 3b or not (it does on 4). If it does then 'set tty
fb0' at the boot loader would probably do the trick.



Re: Raspberry Pi 3B USB input devices are not working

2020-08-03 Thread Archimedes Gaviola
On Mon, Aug 3, 2020 at 8:47 PM Stuart Henderson  wrote:

> On 2020/08/03 10:23, Archimedes Gaviola wrote:
> > I installed OpenBSD 6.7 release and current (dated August 1, 2020) to my
> > Raspberry Pi 3B. Installations are successful respectively but USB input
> > devices such as keyboard, mouse, barcode scanner are not working. They
> are
> > detected but not working.
>
> This is on serial console isn't it? You wouldn't expect input from USB
> HIDs to show up there. I think it will need to be switched to HDMI
> console to be able to see anything from those input devices. I don't
> know if that works on 3b or not (it does on 4). If it does then 'set tty
> fb0' at the boot loader would probably do the trick.
>


Yes access is either via serial console using cu command or via remote SSH
access through LAN or WiFi. When these USB input devices are plugged-in
then you can see it in the console via dmesg that they are detected. I can
run the X Window with startx command or with xenodm desktop manager. The
login page of xenodm and the xterm window of X I suppose to use my keyboard
by typing my credential or move the cursor with my USB mouse. These were
the things I cannot do as the keyboard and mouse seems to freeze-up.

HDMI works with the X Window and the xenodm but not on boot messages where
I suppose to raise this issue on another thread. I already have the 'set
tty fb0' in the /etc/boot.conf to no avail. Not sure if there are still
missing parameters that I should add in the configurations or enable any
DTBs in the config.txt.