[U-Boot] tftp download with USB vitrual ethnet driver

Hi,all, 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, and we found it’s not convenient to download kernel image because our board have no ether-net chip, only USB and UART. Linux-2.6.21 etc, support USB CDC subnet(Boot Loader OBject), so if we write a USB device driver and a virtual Ethernet card driver over it , we can realize TFTP download with USB. Now we have test successfully in our project, if necessary I’m very glad to contribute it~ Regards, Gongyibin

HI Gong: One question: is that _SOC_ open? I'm personally interested in your USB-CDC implenmentation. And currently I'm trying to add DFU support for Beagleboard (TI OMAP3) which is also base on U-boot usb gadget. May quite similar to your work. Oh, I only doing that slowly at my spare time, just a hobby :_) Hope you can shine some lights on me. Thank you.
Dennis
2009/3/9 龚益斌 gongyibin@leadcoretech.com
Hi,all, 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, and we found it’s not convenient to download kernel image because our board have no ether-net chip, only USB and UART. Linux-2.6.21 etc, support USB CDC subnet(Boot Loader OBject), so if we write a USB device driver and a virtual Ethernet card driver over it , we can realize TFTP download with USB. Now we have test successfully in our project, if necessary I’m very glad to contribute it~ Regards, Gongyibin
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Hi,Denis: This SOC is not opened. It’s our new chip(Digital Base Band) designed for TD-SCDMA mobile. I’m not clear for DFU, but I think it’s same, you need write a low level usb device driver in /driver/usb, and write a DFU client level over it. Because U-Boot support TFTP and Linux PC support USB-CDC ,so I needn’t care about host side, but you may need to do something in host side.
Gongyibin
-----邮件原件----- 发件人: Dennis.Yxun [mailto:dennis.yxun@gmail.com] 发送时间: 2009年3月9日 21:50 收件人: 龚益斌 抄送: u-boot@lists.denx.de 主题: Re: [U-Boot] tftp download with USB vitrual ethnet driver
HI Gong: One question: is that _SOC_ open? I'm personally interested in your USB-CDC implenmentation. And currently I'm trying to add DFU support for Beagleboard (TI OMAP3) which is also base on U-boot usb gadget. May quite similar to your work. Oh, I only doing that slowly at my spare time, just a hobby :_) Hope you can shine some lights on me. Thank you.
Dennis 2009/3/9 龚益斌 gongyibin@leadcoretech.com Hi,all, 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, and we found it’s not convenient to download kernel image because our board have no ether-net chip, only USB and UART. Linux-2.6.21 etc, support USB CDC subnet(Boot Loader OBject), so if we write a USB device driver and a virtual Ethernet card driver over it , we can realize TFTP download with USB. Now we have test successfully in our project, if necessary I’m very glad to contribute it~ Regards, Gongyibin
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Hi Gong and Dennis,
sorry to jump in late here, but did anyone of you check the Openmoko implementation of DFU for U-Boot[1]?
Cheers Detlev
[1] http://wiki.openmoko.org/wiki/USB_DFU

Hello All,
I'm personally interested in your USB-CDC implenmentation. And currently I'm trying to add DFU support for Beagleboard (TI OMAP3) which is also base on U-boot usb gadget. May quite similar to your work.
Have you all noticed the CDC branch of U-boot-usb ? It is derived from linux-2.6.27 usb gadget layer, and fully operational for Atmel at91sam9261-ek, other processors could be added relatively easily. http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc
card driver over it , we can realize TFTP download with USB. Now we have test successfully in our project, if necessary I’m very glad to contribute
I am still very interested on your solution, and were it differentiates from the CDC branch. Patches to make this branch more mature are very welcome.
Kind Regards,
Remy

Hi, Remy I'm sorry didn't notice the recent update for U-boot-usb ,I developed it base on last month version(01/21/09 10:12 8,126,939 u-boot-2009.01.tar.bz2).My solution is very simple, didn't like Linux gadget driver, just add a usb_eth.c (more than 300 lines)in driver/net, but I think your solution is better. Best Regards, Gong
-----邮件原件----- 发件人: l.pinguin@gmail.com [mailto:l.pinguin@gmail.com] 代表 Remy Bohmer 发送时间: 2009年3月11日 6:07 收件人: Dennis.Yxun; 龚益斌 抄送: u-boot@lists.denx.de 主题: Re: [U-Boot] tftp download with USB vitrual ethnet driver
Hello All,
I'm personally interested in your USB-CDC implenmentation. And currently I'm trying to add DFU support for Beagleboard (TI OMAP3) which is also base on U-boot usb gadget. May quite similar to your work.
Have you all noticed the CDC branch of U-boot-usb ? It is derived from linux-2.6.27 usb gadget layer, and fully operational for Atmel at91sam9261-ek, other processors could be added relatively easily. http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc
card driver over it , we can realize TFTP download with USB. Now we have test successfully in our project, if necessary I’m very glad to contribute
I am still very interested on your solution, and were it differentiates from the CDC branch. Patches to make this branch more mature are very welcome.
Kind Regards,
Remy
participants (4)
-
Dennis.Yxun
-
Detlev Zundel
-
Remy Bohmer
-
龚益斌