grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] EHCI driver - USB 2.0 support


From: Aleš Nesrsta
Subject: Re: [PATCH] EHCI driver - USB 2.0 support
Date: Fri, 04 Nov 2011 21:56:22 +0100

Hi Phillip,

driver is "near zero" version and the problem with pointer in debug
message is one of problematic or potentially problematic things which
are known and which are waiting for repair - see into e-mail from
Vladimir, sent Fri, 30 Sep 2011 17:37:16. Maybe some of these known
things is the reason why EHCI dosn't work for You...
Unfortunately, I cannot fix and more deeply test it now as I am very
busy in last time and it will be not better till new year...

Maybe I can help You if You send debug output to me.
But there is only one possibility to get usable debug output - capture
it via serial line.
Any of current USB drivers produces lot of debug messages - it is
according to "hot-plug" system algorithm, which generates lot of
repeating messages and, additionally, there are some loops in USB device
detection which caused very very long delay when debug is on. Also there
should be printed out lot of values to have the possibility to find
consequences etc.

To get usable debug output I recommend for example this procedure:
- connect another computer via serial line - this computer will capture
debug messages into some file
- disconnect USB drive
- start grub into command line without any USB driver loaded
- set serial parameters as You need
- set "terminal_output console serial"
- test serial communication with second computer and start capturing
into file
- set "debug=all" and wait for command line
- "insmod ehci" and connect USB device few seconds later (usbms will be
loaded automatically if necessary)
- be patient - there will be lot of messages displayed, wait at least
approx. two minutes (or till computer reboots, if it happens...)

Then send debug output to me and I will try to find what happened (but
don't expect fast answer in any case, sorry...).

Best regards
Ales



Philipp Hahn píše v Čt 03. 11. 2011 v 10:25 +0100:
> Hello,
> 
> I had a look at your EHCI driver, while investigating why grub-1.99
> needs 2 minutes to load my 58 MB InitRd.
> 
> On Sat, Aug 27, 2011 at 06:42:18PM +0200, Aleš Nesrsta wrote:
> > Changes in other files are still the same (more precisely, I hope - I
> > didn't check if there are some other unrelated changes from anybody else
> > in newest trunk revision...) - usb_ehci_110625_0.
> 
> Compiling on x86_86 failed for me in grub-core/bus/usb/usbhub.c:104
> 
> >  grub_dprintf ("usb", "Added new usb device: %08x, addr=%d\n",
> >    (grub_uint32_t)dev, i);
> 
> because dev is a 64 bit pointer which GCC didn't like to cast to an
> uint32 with the compiler options used by Debian. I fixed this locally by
> changing those two lines to use '%p' instead of '%08x' and without the
> cast:
> 
>   grub_dprintf ("usb", "Added new usb device: %p, addr=%d\n",
>     dev, i);
> 
> Even without that I wasn't able to get EHCI working: If I insmod 'usbms'
> and 'ehci', no disk is detected. Only when I insmod 'ohci' is the stick
> detected. With 'set debug=ehci pager=1' I get some lines, before the
> screen is spammed with 'STATUS'-lines and the computer reboots.
> Did I miss something obvious or can I help debug this?
> 
> Sincerely
> Philipp





reply via email to

[Prev in Thread] Current Thread [Next in Thread]