On Wed, Aug 5, 2020 at 3:09 AM Archimedes Gaviola < archimedes.gavi...@gmail.com> wrote:
> > > On Wed, Aug 5, 2020 at 2:18 AM Archimedes Gaviola < > archimedes.gavi...@gmail.com> wrote: > >> >> >> On Mon, Aug 3, 2020 at 7:05 PM Archimedes Gaviola < >> archimedes.gavi...@gmail.com> wrote: >> >>> >>> >>> On Mon, Aug 3, 2020 at 6:30 PM Mark Kettenis <mark.kette...@xs4all.nl> >>> wrote: >>> >>>> > From: Archimedes Gaviola <archimedes.gavi...@gmail.com> >>>> > 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. >>> >> >> Just want to share some progress with the USB keyboard, I am able to type >> and able to transfer from one tty console to another now. I am using an >> A4Tech KL-5 mini keyboard here >> https://shopee.ph/product/20959443/1803617471 and it works. However in >> the X Window still I cannot type anything perhaps I need to re-configure? >> This A4Tech KRS-85 USB keyboard >> https://shopee.ph/A4Tech-KRS-85-USB-Wired-Keyboard-(Black)-i.25952313.316311989 >> on >> the other hand doesn't work, this was my first keyboard. The only >> difference from these two is the current rating KL-5 has 20mA while the >> KRS-85 has 30mA. >> >> Meanwhile, I am also able to bootstrap an image of NetBSD 9.0 here >> http://cdn.netbsd.org/pub/NetBSD/NetBSD-9.0/evbarm-aarch64/binary/gzimg/ and >> it's behaving well with my 2 USB keyboards plus my printer on the other >> port, barcode scanner and mouse. All works just like Ubuntu Linux. >> >> Thanks and best regards, >> Archimedes >> > > I'm sorry my KL-5 USB keyboard works as well in the graphical X Window. > Hi Everyone, Is there a way to have verbose USB messages in the dmesg? because I want to check further how my USB input devices will interact in the OpenBSD USB subsystem from the very start I plug it into the USB port. Most especially I want to check and verify the power consumption of these USB input devices when plugged-in into the system if it is sufficient or not. I want to know why USB input devices with current rating of 20mA works while others beyond this rating will not. As I read the usb(4) man page here https://man.openbsd.org/usb.4 a member part of the USB data structure is the udi_power. "The udi_power field shows the power consumption in milli-amps drawn at 5 volts or is zero if the device is self powered." Right now all I can see in the dmesg when a USB input device is plugged-in. uhidev2 at uhub1 port 5 configuration 1 interface 0 "USB Adapter USB Device" rev 1.10/0.01 addr 5 uhidev2: iclass 3/1 ukbd1 at uhidev2: 8 variable keys, 6 key codes wskbd1 at ukbd1 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub1 port 3 configuration 1 interface 1 "SIGMACHIP USB Keyboard" rev 1.10/1.10 addr 4 uhidev1: iclass 3/0, 2 report ids uhid0 at uhidev1 reportid 1: input=2, output=0, feature=0 uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0 Thanks and best regards, Archimedes > >> >> >>> >>> >>>> >>>> > [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 >>>> > > >>>> > >>>> >>>