uplcom not detected on arm7 (Banana Pi)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

uplcom not detected on arm7 (Banana Pi)

Robert-318
Hi,

I tried to connect a USB-to-serial cable to a Banana Pi 1 USB port, but it caused no reaction. No detected device, no kernel or usbdevs output, nothing.
Other USB devices work (so the USB ports seem to be fine).
Same behavior on a Banana Pi M2+.

The cable is detected on an amd64 and works; I also tested with different cables and got the same result:
uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology Inc. USB-Serial Controller" rev 1.10/3.00 addr 5
uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology Inc. USB-Serial Controller" rev 2.00/3.00 addr 5
uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology Inc. USB-Serial Controller D" rev 1.10/4.00 addr 5

I checked the installed arm7 kernel with config; the uplcom device is enabled.

Could it be that the Pi does not deliver enough power over USB to drive the adapter? Though usbdevs on amd64 says it's rather low-power:
port 6 addr 5: full speed, power 100 mA, config 1, USB-Serial Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00

Any other ideas?

regards,
Robert


OpenBSD 6.2 (GENERIC) #91: Wed Oct  4 00:35:21 MDT 2017
    [hidden email]:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 1068498944 (1019MB)
avail mem = 1038733312 (990MB)
mainbus0 at root: LeMaker Banana Pi
cpu0 at mainbus0: ARM Cortex-A7 r0p4 (ARMv7)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(32b/l,2way) I-cache, 32KB(64b/l,4way) wr-back D-cache
cortex0 at mainbus0
sxiccmu0 at mainbus0
psci0 at mainbus0
agtimer0 at mainbus0: tick rate 24000 KHz
simplebus0 at mainbus0: "soc"
sxipio0 at simplebus0: 175 pins
sximmc0 at simplebus0
sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma
ehci0 at simplebus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1
sxiahci0 at simplebus0: AHCI 1.1
scsibus0 at sxiahci0: 32 targets
ehci1 at simplebus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1
sxidog0 at simplebus0
sxirtc0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
com1 at simplebus0: ns16550, no working fifo
com2 at simplebus0: ns16550, no working fifo
sxitwi0 at simplebus0
iic0 at sxitwi0
axppmic0 at iic0 addr 0x34: AXP209, VBUS
sxitwi1 at simplebus0
iic1 at sxitwi1
dwge0 at simplebus0
dwge0: address: 02:14:08:41:83:18
rgephy0 at dwge0 phy 1: RTL8169S/8110S/8211 PHY, rev. 5
ampintc0 at simplebus0 nirq 160, ncpu 2
gpio0 at sxipio0: 32 pins
gpio1 at sxipio0: 32 pins
gpio2 at sxipio0: 32 pins
gpio3 at sxipio0: 32 pins
gpio4 at sxipio0: 32 pins
gpio5 at sxipio0: 32 pins
gpio6 at sxipio0: 32 pins
gpio7 at sxipio0: 32 pins
gpio8 at sxipio0: 32 pins
simplefb0 at mainbus0: 1280x1024
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0 added (std, vt100 emulation)
scsibus1 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SD/MMC, SC64G, 0080> SCSI2 0/direct removable
sd0: 60906MB, 512 bytes/sector, 124735488 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
boot device: sd0
root on sd0a (cc59f87df5287345.a) swap on sd0b dump on sd0b

Reply | Threaded
Open this post in threaded view
|

Re: uplcom not detected on arm7 (Banana Pi)

s_graf
Try rebooting with the device plugged in.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
Robert
Sent: Saturday, January 6, 2018 1:15 PM
To: [hidden email]
Subject: uplcom not detected on arm7 (Banana Pi)

Hi,

I tried to connect a USB-to-serial cable to a Banana Pi 1 USB port, but it
caused no reaction. No detected device, no kernel or usbdevs output,
nothing.
Other USB devices work (so the USB ports seem to be fine).
Same behavior on a Banana Pi M2+.

The cable is detected on an amd64 and works; I also tested with different
cables and got the same result:
uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology
Inc. USB-Serial Controller" rev 1.10/3.00 addr 5
uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology
Inc. USB-Serial Controller" rev 2.00/3.00 addr 5
uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology
Inc. USB-Serial Controller D" rev 1.10/4.00 addr 5

I checked the installed arm7 kernel with config; the uplcom device is
enabled.

Could it be that the Pi does not deliver enough power over USB to drive the
adapter? Though usbdevs on amd64 says it's rather low-power:
port 6 addr 5: full speed, power 100 mA, config 1, USB-Serial
Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00

Any other ideas?

regards,
Robert


OpenBSD 6.2 (GENERIC) #91: Wed Oct  4 00:35:21 MDT 2017
    [hidden email]:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 1068498944 (1019MB)
avail mem = 1038733312 (990MB)
mainbus0 at root: LeMaker Banana Pi
cpu0 at mainbus0: ARM Cortex-A7 r0p4 (ARMv7)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(32b/l,2way) I-cache, 32KB(64b/l,4way) wr-back D-cache
cortex0 at mainbus0
sxiccmu0 at mainbus0
psci0 at mainbus0
agtimer0 at mainbus0: tick rate 24000 KHz
simplebus0 at mainbus0: "soc"
sxipio0 at simplebus0: 175 pins
sximmc0 at simplebus0
sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma
ehci0 at simplebus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev
2.00/1.00 addr 1
sxiahci0 at simplebus0: AHCI 1.1
scsibus0 at sxiahci0: 32 targets
ehci1 at simplebus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev
2.00/1.00 addr 1
sxidog0 at simplebus0
sxirtc0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
com1 at simplebus0: ns16550, no working fifo
com2 at simplebus0: ns16550, no working fifo
sxitwi0 at simplebus0
iic0 at sxitwi0
axppmic0 at iic0 addr 0x34: AXP209, VBUS
sxitwi1 at simplebus0
iic1 at sxitwi1
dwge0 at simplebus0
dwge0: address: 02:14:08:41:83:18
rgephy0 at dwge0 phy 1: RTL8169S/8110S/8211 PHY, rev. 5
ampintc0 at simplebus0 nirq 160, ncpu 2
gpio0 at sxipio0: 32 pins
gpio1 at sxipio0: 32 pins
gpio2 at sxipio0: 32 pins
gpio3 at sxipio0: 32 pins
gpio4 at sxipio0: 32 pins
gpio5 at sxipio0: 32 pins
gpio6 at sxipio0: 32 pins
gpio7 at sxipio0: 32 pins
gpio8 at sxipio0: 32 pins
simplefb0 at mainbus0: 1280x1024
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0 added (std, vt100 emulation)
scsibus1 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SD/MMC, SC64G, 0080> SCSI2 0/direct removable
sd0: 60906MB, 512 bytes/sector, 124735488 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
boot device: sd0
root on sd0a (cc59f87df5287345.a) swap on sd0b dump on sd0b


Reply | Threaded
Open this post in threaded view
|

Re: uplcom not detected on arm7 (Banana Pi)

Mark Kettenis
In reply to this post by Robert-318
> Date: Sat, 6 Jan 2018 22:15:19 +0100
> From: Robert <[hidden email]>
>
> Hi,
>
> I tried to connect a USB-to-serial cable to a Banana Pi 1 USB port,
> but it caused no reaction. No detected device, no kernel or usbdevs
> output, nothing.  Other USB devices work (so the USB ports seem to
> be fine).  Same behavior on a Banana Pi M2+.
>
> The cable is detected on an amd64 and works; I also tested with different cables and got the same result:
> uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology Inc. USB-Serial Controller" rev 1.10/3.00 addr 5
> uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology Inc. USB-Serial Controller" rev 2.00/3.00 addr 5
> uplcom0 at uhub4 port 6 configuration 1 interface 0 "Prolific Technology Inc. USB-Serial Controller D" rev 1.10/4.00 addr 5
>
> I checked the installed arm7 kernel with config; the uplcom device
> is enabled.
>
> Could it be that the Pi does not deliver enough power over USB to
> drive the adapter? Though usbdevs on amd64 says it's rather
> low-power:
> port 6 addr 5: full speed, power 100 mA, config 1, USB-Serial Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00

Power certainly is a common issue for these types of devices, but it
is indeed unlikely that this device causes power problems.

> Any other ideas?

Is it a USB 1.x device?  If so, it won't work when directly connected
to the USB port of these Allwinner-based devices.  Can you try with a
USB 2.0 hub in between?

The Allwinner SoCs have separate ehci(4) and ohci(4) controllers, but
only ehci(4) is enabled right now.  I'm not sure what is needed to
supoort ohci(4) as well on these ports.

Reply | Threaded
Open this post in threaded view
|

Re: uplcom not detected on arm7 (Banana Pi)

Robert-318
That seems to be exactly it:

On Sat, 6 Jan 2018 22:42:30 +0100 (CET)
Mark Kettenis <[hidden email]> wrote:
> Is it a USB 1.x device?  If so, it won't work when directly connected
It seems so. On adm64 it reports as "full speed":
port 5 addr 5: full speed, power 100 mA, config 1, USB-Serial Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00
Also, the Prolific page states for all 2303 models "On chip USB 1.1 transceiver".

> to the USB port of these Allwinner-based devices.  Can you try with a
> USB 2.0 hub in between?
I connected a USB 2.0 hub, and now it works, kind of:
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Generic(0x0000), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, USB2.0 Hub(0x0608), Genesys Logic(0x05e3), rev 77.64
  port 1 powered
  port 2 powered
  port 3 addr 3: full speed, power 100 mA, config 1, USB-Serial Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00
  port 4 powered

I have to first plug the adapter into the USB hub, and then connect the USB hub to the Pi. If I first plug in the hub and then the adapter, the adapter is not detected. Same with unplugging; if I only unplug the adapter nothing happens; usbdevs still shows it present. I have to unplug the USB hub.

Even if I connect 4 adapters to the hub, and then connect the hub, all get detected now:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Generic(0x0000), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, USB2.0 Hub(0x0608), Genesys Logic(0x05e3), rev 77.64
  port 1 addr 3: full speed, power 100 mA, config 1, USB-Serial Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00
  port 2 addr 4: full speed, power 100 mA, config 1, USB-Serial Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00
  port 3 addr 5: full speed, power 100 mA, config 1, USB-Serial Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00
  port 4 addr 6: full speed, power 100 mA, config 1, USB-Serial Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00


Thanks for the help!

regards,
Robert

Reply | Threaded
Open this post in threaded view
|

Re: uplcom not detected on arm7 (Banana Pi)

Robert-318
In reply to this post by s_graf
On Sat, 6 Jan 2018 13:29:30 -0800
"Stephen Graf" <[hidden email]> wrote:

> Try rebooting with the device plugged in.

No effect.

But see Mark Kettenis' answer; there is a workaround (USB hub).

regards,
Robert