From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26678 invoked by alias); 18 Sep 2007 07:40:11 -0000 Received: (qmail 26670 invoked by uid 22791); 18 Sep 2007 07:40:10 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 18 Sep 2007 07:40:04 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IXXgd-0003hP-00; Tue, 18 Sep 2007 09:39:59 +0200 Date: Tue, 18 Sep 2007 07:40:00 -0000 From: Andrew Lunn To: Imran Khan Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070918073959.GG2082@lunn.ch> Mail-Followup-To: Imran Khan , ecos-discuss@ecos.sourceware.org References: <1190093267.2792.10.camel@imran.alumnus.co.in> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1190093267.2792.10.camel@imran.alumnus.co.in> User-Agent: Mutt/1.5.16 (2007-06-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] How to enable RNDIS and CDC for USB X-SW-Source: 2007-09/txt/msg00105.txt.bz2 On Tue, Sep 18, 2007 at 10:57:47AM +0530, Imran Khan wrote: > Hi all, > We have ported the RNDIS support code provided in linux-2.4.XX along > with our platform specific USB code into the ecos. I hope you thought about the licensing issues here. I expect the USB code is GPL. That makes your whole application now GPL. So you need to give away all your sources, eCos, USB, and application, to your customer. If you don't you are violating the GPL license. > But the design of the code is such that at any time it can support > either RNDIS or CDC but not both at the same time. > Could any one of you please tell us whether is there any possibility of > checking the type of host at run time and doing the initialization > again. > > We have tried with advertising two configurations to linux host,the > first configuration being RNDIS but when the host gets a wrong > descriptor it stops sending interrupts. Using two configurations sounds like the right way to do it. However if the host is going wrong, maybe your descriptors are wrong. What does usbview show? Does it look correct? Have you debugged the Linux host code to work out why it goes wrong? Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss