functionfs example

2016-08-04 Thread Patrick Doyle
So far, the Google hasn't helped me much, so I'd like to play "Ask the experts". Can anybody point me at an example of code using functionfs. I have legacy code that works with gadgetfs that I would like to convert to use functionfs, so a wiki page or presentation walking through that process wou

USB Networking

2016-08-11 Thread Patrick Doyle
I have two embedded Linux devices connected via USB. Both show usb0 devices. One shows the network as RUNNING: device1# ifconfig usb0 usb0 Link encap:Ethernet HWaddr 96:2E:28:4C:23:7C inet addr:192.168.186.2 Bcast:192.168.186.255 Mask:255.255.255.0 UP BROADCAST RUNNIN

Re: USB Networking

2016-08-12 Thread Patrick Doyle
On Fri, Aug 12, 2016 at 6:35 AM, Felipe Balbi wrote: > I'm guessing you need to ask for support from the people who gave you > this v3.10 kernel. IIRC, Edison has a support forum. In this mailing > list we can only help out if you're using the mainline kernel. > > sorry Hi Felipe, Thank you for th

How can I tell who created my usb0 network device?

2016-08-15 Thread Patrick Doyle
I have both usb0 and usb1 network devices. At this point, I'm perfectly happy with my usb1 device, but, after having spent all of this time trying to configure usb0 correctly, I would like to learn what module created usb0. How can I figure that out? --wpd -- To unsubscribe from this list: send

Re: How can I tell who created my usb0 network device?

2016-08-15 Thread Patrick Doyle
On Mon, Aug 15, 2016 at 5:02 PM, Greg KH wrote: > ls -l /sys/class/net/usb0/device/driver > > sysfs is fun :) Yes it is... I also managed to find /sys/devices/pci:00/:00:11.0/dwc3-device.1/gadget/net/usb0 with $ find /sys -name usb0 -prune Apparently, usb0 gets created because my system

Re: How can I tell who created my usb0 network device?

2016-08-16 Thread Patrick Doyle
Hello balbi , Thank you for your reply. Yes, my system is an Edison board. It is embedded in a larger system and is hardwired to a hub which is hardwired to another (custom) embedded board based on an Atmel SAMA5 device. I had been trying (and finally succeeded) to convince the two boards to com