Can you try removing Zheng's patch ?

----- Original Message ----
From: Andy Ngo <[EMAIL PROTECTED]>
To: Kevin Hilman <[EMAIL PROTECTED]>; Amol Lad <[EMAIL PROTECTED]>; 
[email protected]
Sent: Tuesday, March 20, 2007 12:57:00 PM
Subject: Re: USB port not working in GIT kernel?

This is driving me nuts. I don't know why it's not working; we have 2 DVEVMs 
and neither of them work.  
I had tested them with the Montavista version and they worked fine (after 
making a patch that Zheng posted).
I just couldn't get them to work with the GIT tree; I've tried Amol's config 
file and even Kelvin's config file 
(from an October 2006 post: 
http://www.mail-archive.com/[email protected]/msg00551.html).
 
I've used 4 different brands of USB thumb drives with no luck.  Here's my 
kernel:

[EMAIL PROTECTED]:~# modprobe musb_hdrc
musb_hdrc: version 2.2a/db-0.5.2,
 pio, host, debug=0
musb_hdrc: USB Host mode controller at c805e000 using PIO, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
[EMAIL PROTECTED]:~# modprobe usb_storage
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
[EMAIL PROTECTED]:~# usb 1-1: new high speed USB device using musb_hdrc and 
address 2
usb 1-1: string descriptor 0 read error: -71
usb 1-1: string descriptor 0 read error: -110
usb 1-1: string descriptor 0 read error: -110
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: can't set config #1, error -110

The above is where usbcore is compiled as static in the kernel.  If it is 
compiled as a module, I still get the
 same
errors.  Weird thing is that if I compiled usbcore AND musb_hdrc as static, the 
board will hang after the following
message:

Uncompressing 
Linux...................................................................
..... done, booting the kernel.

I did a search and found the following post 
(http://linux.omap.com/pipermail/davinci-linux-open-source/2006-June/000262.html)
where the problem seems to be a result of a machine number discrepancy between 
u-boot and the kernel.  Hmmm..., maybe
my u-boot is out dated.  I have to check that out.

Regards,
Andy

----- Original Message ----
From: Andy Ngo <[EMAIL PROTECTED]>
To: Kevin Hilman <[EMAIL PROTECTED]>; Amol Lad <[EMAIL PROTECTED]>;
 [email protected]
Sent: Thursday, March 15, 2007 3:56:21 PM
Subject: Re: USB port not working in GIT kernel?

Kevin,

Yes, I've switched the jumper to host mode (pins 2 and 3) a couple weeks ago 
when I tested the Montavista version a couple weeks ago (had to patch it with 
Zheng's patch) and it worked fine.  And yes, I configured the kernel to be in 
host mode not peripheral mode which I had before which you corrected me a few 
emails ago (when there were no USB activities).  I see USB activities but 
they're errors:

usb 1-1: new high speed USB device using musb_hdrc and address 3
usb 1-1: string descriptor 0 read error: -110
usb 1-1: string descriptor 0 read error: -110
usb 1-1: string descriptor 0 read error: -110

I loaded the Investra controller driver
 module (musb_hdrc) as well as any other needed modules (usb_storage,
 scsi_mod).  I tried all combinations of kernel builds (usbcore as module and 
as static, musb_hdrc as module and as static) and I still get the same errors.  
Well, I going to re-download the current GIT tree again and redo this. 
***Sigh****

Regards,
Andy

----- Original Message ----
From: Kevin Hilman <[EMAIL PROTECTED]>
To: Andy Ngo <[EMAIL PROTECTED]>; Amol Lad <[EMAIL PROTECTED]>; 
[email protected]
Sent: Thursday, March 15, 2007 3:21:39 PM
Subject: RE: USB port not working in GIT kernel?



 
DIV {
MARGIN:0px;}



 


  
  Unfortunately, 
  I still can't get the USB to work, even when using your config file.  Do 
  you

  remember 
  which version of the GIT tree you got?  Here's the list from the 
  site: 

   


Andy, I just tested host mode on 
the current git tree and it's working fine.  After booting, I 'modprobe 
musb_hdrc', then plug in the USB key.  It automatically loads the 
usb-storage module and detects the disk.  For the .config, it's the default 
config, except for switching the Inventra to host mode instead of peripheral 
mode.

 

Are you sure you have he jumper set 
for host mode?  The jumper next to the USB connector should be on pins 2-3 
for host mode.  I believe the board ships with it on pins 1-2 which is 
gadget mode.


   

  Kevin,  
  how do you get a  specific tag (version) of the GIT tree?  
  

Given a tag (ls .git/refs/tags 
for the tags), you can checkout that tag on a new branch.  To see existing 
branches, do a 'git branch'.  Then create a new branch:

 

$ git checkout -b my-dev-branch 
v2.6.19

$ git branch
  master
* 
my-dev-branch
  old
  origin


I'm not sure this wil be much help 
to you though since I have not been tagging the tree at the davinci merge 
points.  

 

Kevin

 














 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to