Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

Ethernet gadget disconnect on Altera SoCKit

Altera_Forum
Honored Contributor II
1,173 Views

Hello, 

 

I've been able to get USB OTG running on my Altera SoCKit board (from Terasic), running Linux 3.18.20. 

 

It runs fine for a while - I'm able to make an SSH connection and do some interaction via the terminal, but after a couple of minutes of operation I get: 

 

[ 41.784199] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d05c ep1in, 0) 

[ 41.794121] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d0b8 ep2out, 0) 

[ 41.803367] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d114 ep3in, 0) 

[ 41.821712] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d05c ep1in, 0) 

[ 41.830937] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d0b8 ep2out, 0) 

[ 41.840043] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d114 ep3in, 0) 

[ 41.857789] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d05c ep1in, 0) 

[ 41.866859] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d0b8 ep2out, 0) 

[ 41.875958] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d114 ep3in, 0) 

[ 41.893237] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d05c ep1in, 0) 

[ 41.902237] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d0b8 ep2out, 0) 

[ 41.911193] dwc2 ffb40000.usb: s3c_hsotg_ep_sethalt(ep eec1d114 ep3in, 0) 

 

and the terminal dies. Attempts to re-establish an SSH connection are rejected. If I leave the board up and running, I get occasional messages spit out to the USB-UART port: 

 

[ 2683.940759] dwc2 ffb40000.usb: ep0: failed to become enabled (DXEPCTL=0x00008000)? 

[ 2684.208756] dwc2 ffb40000.usb: ep0: failed to become enabled (DXEPCTL=0x00008000)? 

[ 2684.272758] dwc2 ffb40000.usb: ep0: failed to become enabled (DXEPCTL=0x00008000)? 

 

 

 

Can anybody advise what I could do to fix? 

 

Thanks, 

--George Broz 

Moog Industrial Group
0 Kudos
1 Reply
EBenc
Novice
444 Views

I got the same thing with kernels 4.1 and 4.14 in a custom hardware, and I've herd that raspberry pi zero got similar problems, but I don't have one to test it.

 

0 Kudos
Reply