I used the latest 2.4.28 gadget files in my 2.4.20 build (from
include/linux/usb* and drivers/gadget). After a few changes in makefiles and
config.in i was able to compile the gadget framework. But since my board
does not have PCI based support i was unable to compile the existing net2280
and goku_udc controller drivers. I guess 2.6 kernel has examples of
controller drivers which are not PCI based but ARM AHB based.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Brownell
Sent: Saturday, December 25, 2004 1:34 AM
To: [email protected]
Cc: Raghunathan K
Subject: Re: [linux-usb-devel] Embedded USB device development


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: [email protected]
> 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/
> _______________________________________________
> [email protected]
> 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/
> _______________________________________________
> [email protected]
> 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/
_______________________________________________
[email protected]
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/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to