The word you're after is "backport", as in "backport the
gadget framework from more current versions of Linux 2.4,
it's been done dozens of times before".

In fact some of the first work in that framework was done
on 2.4.18 kernel, so the work involved in such backports is
pretty trivial.  As a rule, the only potentially tricky part
would be getting a driver for your USB peripheral controller.
Using the gadget framework gives you a pretty well developed
test framework to expedite that work.

- Dave


On Friday 24 December 2004 2:40 am, Raghunathan K wrote:
> Hi Dave,
> 
> Thanks for your reply. The board i work on has the old 2_4_20 kernel. It
> looks like the gadget framework does not exist for such old a kernel.
> Assuming i do not change the kernel version on board, I was wondering
> whether i could introduce my USB device as a character device with the
> endpoints as character nodes. Would this be better or should I register it
> as a usb_device like all host-side drivers ? Which is a better option ?
> 
> Merry xmas !!!
> 
> Cheers
> Raghu
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of David
> Brownell
> Sent: Monday, December 13, 2004 9:42 PM
> To: linux-usb-devel@lists.sourceforge.net
> Cc: Raghunathan K
> Subject: Re: [linux-usb-devel] Embedded USB device development
> 
> 
> On Sunday 12 December 2004 8:10 pm, Raghunathan K wrote:
> > Hi all,
> > 
> > I am a USB newbie and am trying to grasp the USB system architecture.
> > 
> > I have a ARM9 core based embedded system running ucLinux. I want this 
> > system to act as a USB device and possibly interface with  a  host PC 
> > as a RNDIS communication device. I am not clear as to what  the  Linux
> operating
> > system  mandates  for  device side development   i.e are there any
> specific
> > programming guidelines to follow while trying to develop a USB device 
> > that runs Linux. The  linuxusb.orb  website has lots of information 
> > but i have a feeling  they  are  all for the host side linux USB 
> > development (controller,drivers etc.). I am not sure about this 
> > though.
> 
> I suspect you mised the "gadget" framework:
> 
>    http://www.linux-usb.org/gadget/
> 
> I know the n9604_udc has been used with RNDIS from ucLinux, though evidently
> without the memory leak bugfix I recently posted for the 2.4 version of this
> driver stack.
> 
> I'm not sure what you mean by "programming guidelines".
> There's a coding style document, and the 2.6 kernel has kerneldoc for the
> gadget framework.  Other than that, writing good clean functional code is
> the basic rule.
> 
> - Dave
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> linux-usb-devel@lists.sourceforge.net
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> linux-usb-devel@lists.sourceforge.net
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to