Re: Nothing in /sys/class/udc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 4, 2018 at 12:12 PM Felipe Balbi
<felipe.balbi@xxxxxxxxxxxxxxx> wrote:
>
>
> Hi,
>
> Ranran <ranshalit@xxxxxxxxx> writes:
> > On Mon, Sep 3, 2018 at 4:50 PM Ranran <ranshalit@xxxxxxxxx> wrote:
> >>
> >> On Mon, Sep 3, 2018 at 4:22 PM Ranran <ranshalit@xxxxxxxxx> wrote:
> >> >
> >> > On Mon, Sep 3, 2018 at 3:40 PM Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> >> > >
> >> > > On Mon, Sep 03, 2018 at 09:39:14AM +0300, Ranran wrote:
> >> > > > Hello,
> >> > > >
> >> > > > I try to add gadget configfs as described in:
> >> > > > https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt
> >> > > > Yet, I find nothing in /sys/class/udc:
> >> > > >
> >> > > > user@user-VirtualBox:~/tegra$ ls /sys/class/udc/ -al
> >> > > > total 0
> >> > > > drwxr-xr-x  2 root root 0 Sep  3 00:30 .
> >> > > > drwxr-xr-x 58 root root 0 Sep  3 00:30 ..
> >> > > >
> >> > > > I also don't have dwc2, but dwc3:
> >> > > > user@user-VirtualBox:~/tegra$ lsmod | grep dw
> >> > > > dwc3                   90112  0
> >> > > > ulpi                   16384  1 dwc3
> >> > > > udc_core               24576  2 dwc3,libcomposite
> >> > > > user@user-VirtualBox:~/tegra$
> >> > > >
> >> > > > Kernel is 4.4.50.
> >> > >
> >> > > Why do you think the dwc3 driver will work here?  Do you really have
> >> > > this hardware being emulated?
> >> > >
> >> > Hi,
> >> >
> >> > I check it with Intel's E3900.
> >> > In datasheet, I can't find it being described in details in datasheet,
> >> > yet being linked with another document ("see Section Little-Endian and
> >> > Big-Endian in the DWC SuperSpeed USB 3.0 Controller User Guide" )
> >> > https://www.mouser.com/ds/2/612/atom-e3800-family-datasheet-915661.pdf
> >> > I have installed module dwc3 and also dwc2 (both compiled as modules),
> >> > but nothing appear in /sys/class/udc
> >> > I also tried to add all options in device-drivers->usb->usb
> >> > gadget->usb peripheral control into kernel, (not as modules, but built
> >> > into kernel).
> >> > Yet, on checking
> >> > ls /sys/class/udc
> >> > I only find dummy_udc.0 , and nothing else.
> >> >
> >>
> >> I suspect that there is no device controller supported with this com
> >> express (congatec type 10), probably this is the only explanations for
> >> the empty  /sys/class/udc.
> >>
> >
> > A fix for my last comment:
> > usb device controller should be supported with conga-MA5 (contains
> > Intel's appolo lake), so I am still not sure why I find /sys/class/udc
> > empty.
> > In congatec MA-5 document it is said:
> > "The conga-MA5 offers six USB 2.0 interfaces on the COM Express
> > connector including one USB 2.0 Dual Role port. The xHCI host
> > controller in the SoC complies with USB standard 1.1 and 2.0 with
> > high-speed, full-speed and low-speed USB signalling. Note USB Dual
> > Role is only supported under Linux. The port is a standard USB Host
> > port under Windows."
> > Maybe some configuration in my .config is missing ? (I enabled all
> > controllers in device-drivers->usb->usb-> gadget->usb peripheral
> > control , so I am not sure what is still missing)
>
> do you have the PCI device enabled? what do you get with lspci -nnnn ?
>

Yes, here it is:

00:00.0 Host bridge [0600]: Intel Corporation Celeron N3350/Pentium
N4200/Atom E3900 Series Host Bridge [8086:5af0] (rev 0b)
00:02.0 VGA compatible controller [0300]: Intel Corporation Device
[8086:5a85] (rev 0b)
00:0e.0 Audio device [0403]: Intel Corporation Celeron N3350/Pentium
N4200/Atom E3900 Series Audio Cluster [8086:5a98] (rev 0b)
00:0f.0 Communication controller [0780]: Intel Corporation Celeron
N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine
[8086:5a9a] (rev 0b)
00:12.0 SATA controller [0106]: Intel Corporation Celeron
N3350/Pentium N4200/Atom E3900 Series SATA AHCI Controller [8086:5ae3]
(rev 0b)
00:13.0 PCI bridge [0604]: Intel Corporation Celeron N3350/Pentium
N4200/Atom E3900 Series PCI Express Port A #1 [8086:5ad8] (rev fb)
00:14.0 PCI bridge [0604]: Intel Corporation Celeron N3350/Pentium
N4200/Atom E3900 Series PCI Express Port B #1 [8086:5ad6] (rev fb)
00:15.0 USB controller [0c03]: Intel Corporation Celeron N3350/Pentium
N4200/Atom E3900 Series USB xHCI [8086:5aa8] (rev 0b)
00:1b.0 SD Host controller [0805]: Intel Corporation Celeron
N3350/Pentium N4200/Atom E3900 Series SDXC/MMC Host Controller
[8086:5aca] (rev 0b)
00:1c.0 SD Host controller [0805]: Intel Corporation Celeron
N3350/Pentium N4200/Atom E3900 Series eMMC Controller [8086:5acc] (rev
0b)
00:1f.0 ISA bridge [0601]: Intel Corporation Celeron N3350/Pentium
N4200/Atom E3900 Series Low Pin Count Interface [8086:5ae8] (rev 0b)
00:1f.1 SMBus [0c05]: Intel Corporation Celeron N3350/Pentium
N4200/Atom E3900 Series SMBus Controller [8086:5ad4] (rev 0b)
02:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit
Network Connection [8086:157b] (rev 03)

Thank you,
ranran

> --
> balbi



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux