[U-Boot] implement usb gadget ethernet in uboot

hi guys.I’m am new guy from China, and nice to meet all of yours.
These days we use u-boot in out Linux Project base on our SOC chip. Our board don`t have ethernet chip.So i want to implement gadget ethernet in uboot. Then i can use tftp to download kernel image.
I have implement gadget ethernet in kernel(cdc_subset). But the uboot don`t have gadget framework.how can i implement this feature?Does anyone has this experience?
thank you.

Hello,
I have implement gadget ethernet in kernel(cdc_subset). But the uboot don`t have gadget framework.how can i implement this feature?Does anyone has this experience?
Please take a look at the CDC branch in u-boot-usb. http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc
I guess that has everything you are searching for ;-) Patches to add more boards/devices or other improvements are welcome.
Kind Regards,
Remy

On Friday 17 April 2009 15:46:10 Remy Bohmer wrote:
I have implement gadget ethernet in kernel(cdc_subset). But the uboot don`t have gadget framework.how can i implement this feature?Does anyone has this experience?
Please take a look at the CDC branch in u-boot-usb. http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc
I guess that has everything you are searching for ;-) Patches to add more boards/devices or other improvements are welcome.
feel free to yell at me for not reading some README, but any plans on merging back into mainline ? -mike

Hello Mike,
Please take a look at the CDC branch in u-boot-usb. Patches to add more boards/devices or other improvements are welcome.
feel free to yell at me for not reading some README, but any plans on merging back into mainline ?
Of course, but there are still some cleanups pending for which I did not had the time lately. It was not mainline-ready at the time I started to put it there, and I only made it public to help others not reinventing the wheel. Maybe I get into it next week.
Kind Regards,
Remy

hi remy with your help, i have add my code to uboot and the probe can work. but i still have some questions. 1. After probe, in kernel, i will wait the interrupt generated by insert usb cable , but in uboot, we don`t have interrupt, so how do you deal with it.
2009/4/18 Remy Bohmer linux@bohmer.net
Hello,
I have implement gadget ethernet in kernel(cdc_subset). But the uboot
don`t
have gadget framework.how can i implement this feature?Does anyone has
this
experience?
Please take a look at the CDC branch in u-boot-usb. http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc
I guess that has everything you are searching for ;-) Patches to add more boards/devices or other improvements are welcome.
Kind Regards,
Remy

Hello,
2009/4/22 Kyo Yin kyo.yin@gmail.com:
hi remy with your help, i have add my code to uboot and the probe can work. but i still have some questions.
Great!
1. After probe, in kernel, i will wait the interrupt generated by insert usb cable , but in uboot, we don`t have interrupt, so how do you deal with it.
Polling until we detect the host... Notice that similar to the network interfaces, we make the USB-devices only visible towards the host while we are capable of handling its communication. So, During key/console input key polling, USB device interfaces are down...
Kind Regards,
Remy
participants (3)
-
Kyo Yin
-
Mike Frysinger
-
Remy Bohmer