RE: About gadget configfs

2014-05-20 Thread Peter Chen
> > On Tue, 6 May 2014, Peter Chen wrote: > > > 3. Besides, I have tried two configurations, and each configuration > > with one function, I find the host PC always set configuration 1 (The > first > > configuration), any ways to switch configuration at host side? > > libusb? > > Y

Re: About gadget configfs

2014-05-06 Thread Alan Stern
On Tue, 6 May 2014, Peter Chen wrote: > 3. Besides, I have tried two configurations, and each configuration with > one function, I find the host PC always set configuration 1 (The first > configuration), any ways to switch configuration at host > side? libusb? You can switch configu

Re: About gadget configfs

2014-05-05 Thread Andrzej Pietrasiewicz
Hi Peter, W dniu 06.05.2014 03:01, Peter Chen pisze: On Mon, May 05, 2014 at 11:09:30AM +0200, Andrzej Pietrasiewicz wrote: W dniu 04.05.2014 09:48, Peter Chen pisze: Hi Sebastian & Andrzej, 1. I have setup successfully for running mass storage and CDC ACM at the same time with below ste

Re: About gadget configfs

2014-05-05 Thread Peter Chen
On Mon, May 05, 2014 at 11:09:30AM +0200, Andrzej Pietrasiewicz wrote: > W dniu 04.05.2014 09:48, Peter Chen pisze: > >Hi Sebastian & Andrzej, > > > > > > >My questions: > > > > > > >- How to choose gserial? I tried to remove the configuration > >of mass storage, but both of configurations ha

Re: About gadget configfs

2014-05-05 Thread Andrzej Pietrasiewicz
W dniu 04.05.2014 09:48, Peter Chen pisze: Hi Sebastian & Andrzej, My questions: - How to choose gserial? I tried to remove the configuration of mass storage, but both of configurations have been removed root@freescale /sys/kernel/config/usb_gadget/g1$ rm -rf configs/c.2/mass_storage

Re: About gadget configfs

2014-05-05 Thread Andrzej Pietrasiewicz
Hello, W dniu 04.05.2014 12:31, Peter Stuge pisze: Hi Peter, Peter Chen wrote: The step at the board: root@freescale ~$ modprobe libcomposite I guess this step is unneccessary, and that all neccessary modules are loaded automatically on demand. This one is necessary. The code which impl

Re: About gadget configfs

2014-05-04 Thread Peter Stuge
Hi Peter, Peter Chen wrote: > The step at the board: > > root@freescale ~$ modprobe libcomposite I guess this step is unneccessary, and that all neccessary modules are loaded automatically on demand. > root@freescale ~$ mount none /sys/kernel/config/ -t configfs > root@freescale ~$ mkdir /sys/

About gadget configfs

2014-05-04 Thread Peter Chen
Hi Sebastian & Andrzej, I have tried configfs today, and have some puzzled about its behaviour, hope I can get answers from your both, thanks. I am running the latest usb-next tree (3.15-rc3), and build configfs as module, and enabled mass storage and serial, I follow the instruction of ocumentat