RE: USB Wifi issue
Dear All, Now we use a USB wifi network card in TI 6446 Davinci development board, but some issue happen, we can not resolve it, do you give us some useful message? thanks! the USB wifi network card is made of zydas zd1211b chips, when we install the driver in davinci monta vista (linux OS, 2.6.10), that is ok,then we insert the USB network card, the initialization is ok, but when we prepare to set the parameters of the card, our operation as follow: > ifconfig eth1 up some thing is wrong. this time, read and write the net adapter register, the respone is very slowly and the OS suspended,I don't know where is wrong, linux kernel or the usb wifi driver?? so i hope can get some help message!! thanks! best regards___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: USB Wifi issue
Hi , see the following archieve . http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/m sg01652.html -Original Message- From: [EMAIL PROTECTED] com [mailto:[EMAIL PROTECTED] incidsp.com]On Behalf Of qx.ccx Sent: Thursday, July 26, 2007 8:40 AM To: davinci-linux-open-source@linux.davincidsp.com Subject: USB Wifi issue Dear Zheng Lei, Can you tell me where i can get the 'montavista patch 1015 about USB drivers' ? thanks or if you have it , would you like to send it to me for our USB wifi in TI 6446 issue ? thank a lot! my email:[EMAIL PROTECTED] or [EMAIL PROTECTED] best regards chenxu Jiuzhou group in china -- 人 山 人 海 盛 景,尽 在 梦 幻 西 游 ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: USB Wifi issue
Zheng, If you can make me a patch against the latest, patched MV kernel, I will get your fix integrated into the MV kernel. Thanks, Kevin On Fri, 2007-02-02 at 17:19 +0800, #ZHENG LEI# wrote: > Glad it helped. SPRUE32 has detail descriptions on the steps required > for programming EP0 transfer. The major bug is in function > musb_h_ep0_continue. The original code returns bMore=FALSE (if your data > fits in a single USB packet), just after it calls musb_write_fifo. This > tells function musb_h_ep0_irq that data transfer is finished, and it > should proceed to status phase. But musb_write_fifo only load the fifo, > it doesn't actually send the data through USB. You need to set > MGC_M_CSR0_TXPKTRDY bit in MGC_O_HDRC_CSR0 to signal the host device to > do the actual transfer. The patch fixed this order problem. Other minor > problems in function musb_h_ep0_irq, instead of relying on usb_pipeout > to tell the direction, use bEnd0Stage, because ep0 is bidirectional. > > Actually, I submitted the patch to TI support long time ago. But > apparently it didn't get to their development team. I think TI is a bit > rush about releasing davinci. It's giving me headaches all the time... > > > -Original Message- > From: Ramachandran M [mailto:[EMAIL PROTECTED] > Sent: Friday, February 02, 2007 4:36 PM > To: #ZHENG LEI# > Subject: RE: USB Wifi issue > > thanks a lot... > > i was also working with wifi onlyi got the same error...I posted so > many > times..I didnt get the reply.. > > Because of you only,i have completed this issue.. > > your patch is working fine.. > > did you created the patch yourself?...Can you explain me about the > patch... > > thanks > > Ram > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf > Of #ZHENG LEI# > Sent: Friday, February 02, 2007 11:19 AM > To: Amol D Pise; Davinci-linux-open-source@linux.davincidsp.com > Subject: RE: USB Wifi issue > > > I had the USB problem several months ago. The davinci USB host driver > has a lot of problems. I didn't quite follow this Wifi issue thread, but > I think you are having the same problem as mine. The host driver has a > bug causing EP0 USB OUT transfer to timeout. So, any device uploading > firmware or any other data through EP0 will not work at all. The > attachment is the patch for that problem. Maybe you can give it a try. > Please note that there is a recent montavista patch 1015 about USB > drivers. My patch is pre-1015, because I have other modifications that > conflict with 1015. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Amol D Pise > Sent: Friday, February 02, 2007 12:36 PM > To: Davinci-linux-open-source@linux.davincidsp.com > Subject: USB Wifi issue > > hi all, > Is anybody successfully used USB wifi dongle on TI-Davinci EVM board ? > As this issue already raised by most of the peoples on mailing list, but > nobody succesfull. > Is this means Ti-Davinci board not support it or what ? > Plz help us > > Thank you, > > amol > > ___ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > > ___ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: USB Wifi issue
Glad it helped. SPRUE32 has detail descriptions on the steps required for programming EP0 transfer. The major bug is in function musb_h_ep0_continue. The original code returns bMore=FALSE (if your data fits in a single USB packet), just after it calls musb_write_fifo. This tells function musb_h_ep0_irq that data transfer is finished, and it should proceed to status phase. But musb_write_fifo only load the fifo, it doesn't actually send the data through USB. You need to set MGC_M_CSR0_TXPKTRDY bit in MGC_O_HDRC_CSR0 to signal the host device to do the actual transfer. The patch fixed this order problem. Other minor problems in function musb_h_ep0_irq, instead of relying on usb_pipeout to tell the direction, use bEnd0Stage, because ep0 is bidirectional. Actually, I submitted the patch to TI support long time ago. But apparently it didn't get to their development team. I think TI is a bit rush about releasing davinci. It's giving me headaches all the time... -Original Message- From: Ramachandran M [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 4:36 PM To: #ZHENG LEI# Subject: RE: USB Wifi issue thanks a lot... i was also working with wifi onlyi got the same error...I posted so many times..I didnt get the reply.. Because of you only,i have completed this issue.. your patch is working fine.. did you created the patch yourself?...Can you explain me about the patch... thanks Ram -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of #ZHENG LEI# Sent: Friday, February 02, 2007 11:19 AM To: Amol D Pise; Davinci-linux-open-source@linux.davincidsp.com Subject: RE: USB Wifi issue I had the USB problem several months ago. The davinci USB host driver has a lot of problems. I didn't quite follow this Wifi issue thread, but I think you are having the same problem as mine. The host driver has a bug causing EP0 USB OUT transfer to timeout. So, any device uploading firmware or any other data through EP0 will not work at all. The attachment is the patch for that problem. Maybe you can give it a try. Please note that there is a recent montavista patch 1015 about USB drivers. My patch is pre-1015, because I have other modifications that conflict with 1015. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amol D Pise Sent: Friday, February 02, 2007 12:36 PM To: Davinci-linux-open-source@linux.davincidsp.com Subject: USB Wifi issue hi all, Is anybody successfully used USB wifi dongle on TI-Davinci EVM board ? As this issue already raised by most of the peoples on mailing list, but nobody succesfull. Is this means Ti-Davinci board not support it or what ? Plz help us Thank you, amol ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: USB Wifi issue
Thanks ZHENG for the patch regards yogesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of #ZHENG LEI# Sent: Friday, February 02, 2007 11:19 AM To: Amol D Pise; Davinci-linux-open-source@linux.davincidsp.com Subject: RE: USB Wifi issue I had the USB problem several months ago. The davinci USB host driver has a lot of problems. I didn't quite follow this Wifi issue thread, but I think you are having the same problem as mine. The host driver has a bug causing EP0 USB OUT transfer to timeout. So, any device uploading firmware or any other data through EP0 will not work at all. The attachment is the patch for that problem. Maybe you can give it a try. Please note that there is a recent montavista patch 1015 about USB drivers. My patch is pre-1015, because I have other modifications that conflict with 1015. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amol D Pise Sent: Friday, February 02, 2007 12:36 PM To: Davinci-linux-open-source@linux.davincidsp.com Subject: USB Wifi issue hi all, Is anybody successfully used USB wifi dongle on TI-Davinci EVM board ? As this issue already raised by most of the peoples on mailing list, but nobody succesfull. Is this means Ti-Davinci board not support it or what ? Plz help us Thank you, amol ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: USB Wifi issue
Hi Zheng Thank You very much for this patch. Its working fine for me. Thanks a lot once again regards, AMOL PISE Senior Engineer(D & D) TATA-ELXSI LIMITED, Hoodi,Whitefield road, Banglore 560048 +919986362590 ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: USB Wifi issue
I had the USB problem several months ago. The davinci USB host driver has a lot of problems. I didn't quite follow this Wifi issue thread, but I think you are having the same problem as mine. The host driver has a bug causing EP0 USB OUT transfer to timeout. So, any device uploading firmware or any other data through EP0 will not work at all. The attachment is the patch for that problem. Maybe you can give it a try. Please note that there is a recent montavista patch 1015 about USB drivers. My patch is pre-1015, because I have other modifications that conflict with 1015. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amol D Pise Sent: Friday, February 02, 2007 12:36 PM To: Davinci-linux-open-source@linux.davincidsp.com Subject: USB Wifi issue hi all, Is anybody successfully used USB wifi dongle on TI-Davinci EVM board ? As this issue already raised by most of the peoples on mailing list, but nobody succesfull. Is this means Ti-Davinci board not support it or what ? Plz help us Thank you, amol ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source musb_host.c.diff Description: musb_host.c.diff ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source