[U-Boot] Atmel AT91 USB DFU and USB device port driver

Hi All,
I am currently developing a USB DFU feature for at91sam9263 board. I have to develop the driver for USB device port. I looked the uboot-usb git cdc branch it has a at91_udc.c driver it doesnt contain the udc_* api implementations. I found a earlier post where it was discussed. http://www.mail-archive.com/u-boot@lists.denx.de/msg08709.html Can any point give me a pointer to implement it or the implementations if exist.
Bye, Krishna.

Hi,
2010/2/15 Krishna Pattabiraman krishna.lists@googlemail.com:
Hi All,
I am currently developing a USB DFU feature for at91sam9263 board. I have to develop the driver for USB device port. I looked the uboot-usb git cdc branch it has a at91_udc.c driver it doesnt contain the udc_* api implementations. I found a earlier post where it was discussed. http://www.mail-archive.com/u-boot@lists.denx.de/msg08709.html Can any point give me a pointer to implement it or the implementations if exist.
The only thing that is supported by this particular branch is to add CDC-ECM support to U-boot, thus make U-boot work as ethernet gadget over USB. Its goal was to stay as close as possible to the Linux USB gadget layer and it is derived from 2.6.27. Maybe you could add the parts you are missing by porting it from Linux?
Kind regards,
Remy

2010/2/16 Remy Bohmer linux@bohmer.net
Hi,
2010/2/15 Krishna Pattabiraman krishna.lists@googlemail.com:
Hi All,
I am currently developing a USB DFU feature for at91sam9263 board. I have
to
develop the driver for USB device port. I looked the uboot-usb git cdc branch it has a at91_udc.c driver it doesnt contain the udc_* api
The only thing that is supported by this particular branch is to add CDC-ECM support to U-boot, thus make U-boot work as ethernet gadget over USB.
Hi Remy,
I want to know if the cdc branch of the uboot-usb is a working one or still in development. there were some compilation error when I enable the CONFIG_USB_ETHER and GADGET_AT91. I am compiling it for at91sam9263-ek. But also paralelly i brought it to the main tree as it is needed for me in my work. and It compiles fine.
I disabled the CONFIG_MACB in the header file and after that I dont know what should I do to enable the usb0. Can you please give me some idea how to bring up the usb ethernet interface in term of testing the functionality. in my host machine there is no changes in dmesg and lsusb. Any help would be great.
Bye, Krishna.

Hi,
I want to know if the cdc branch of the uboot-usb is a working one
It is a working one, I use it myself already a long time, but it needs some rework to make it mainline ready/clean, I have not put much time in it lately...
or still in development. there were some compilation error when I enable the
What kind of error?
CONFIG_USB_ETHER and GADGET_AT91. I am compiling it for at91sam9263-ek.
The tree is ready for the 9261-ek so the 9263-ek is a close match, but it might lack some configuration code.
But also paralelly i brought it to the main tree as it is needed for me in my work. and It compiles fine. I disabled the CONFIG_MACB in the header file and after that I dont know what should I do to enable the usb0. Can you please give me some idea how to bring up the usb ethernet interface in term of testing the functionality. in my host machine there is no changes in dmesg and lsusb. Any help would be great.
It behaves like any other network adapter in U-boot. It will only be brought up and thus visible to the host if some network action is active, like e.g. a tftp get/put command. Once that action is completed, the connection is dropped again, and the pullup to the host deactivated what makes the device invisible for the host. If there are more network drivers available you must first make the usb0 the active adapter.
Kind regards,
Remy

Hi Krishna,
I am currently developing a USB DFU feature for at91sam9263 board. I have to develop the driver for USB device port. I looked the uboot-usb git cdc branch it has a at91_udc.c driver it doesnt contain the udc_* api implementations. I found a earlier post where it was discussed. http://www.mail-archive.com/u-boot@lists.denx.de/msg08709.html Can any point give me a pointer to implement it or the implementations if exist.
I'm currently busy posting the patches for DFU for the Atmel SAM9G45 and I hope to finish that by the end of today. I think it will be 3 patches in total. One for the Atmel_usba_udc, one for DFU and one to add my board which can be used as an example than.
Perhaps those will be helpful to you.
Best regards, Marcel
participants (3)
-
Krishna Pattabiraman
-
Marcel
-
Remy Bohmer