Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RMQoc-0006bp-Gl for mharc-grub-devel@gnu.org; Fri, 04 Nov 2011 16:56:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]:40442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMQoa-0006aD-1o for grub-devel@gnu.org; Fri, 04 Nov 2011 16:56:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMQoY-00053z-TZ for grub-devel@gnu.org; Fri, 04 Nov 2011 16:56:40 -0400 Received: from [178.17.94.131] (port=38544 helo=mail.generalnet.cz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMQoY-0004uX-EY for grub-devel@gnu.org; Fri, 04 Nov 2011 16:56:38 -0400 Received: from [192.168.4.2] (unknown [192.168.200.11]) by mail.generalnet.cz (Postfix) with ESMTP id CA8B3318D for ; Fri, 4 Nov 2011 21:56:22 +0100 (CET) Subject: Re: [PATCH] EHCI driver - USB 2.0 support From: =?UTF-8?Q?Ale=C5=A1?= Nesrsta To: The development of GNU GRUB In-Reply-To: <20111103092507.GA29134@stave.knut.univention.de> References: <1309029199.2532.35.camel@pracovna> <201106252151.12483.szymon@janc.net.pl> <1309120668.3268.153.camel@pracovna> <4E28A149.4010008@gmail.com> <1314463338.2555.56.camel@pracovna> <20111103092507.GA29134@stave.knut.univention.de> Content-Type: text/plain; charset="UTF-8" Date: Fri, 04 Nov 2011 21:56:22 +0100 Message-ID: <1320440182.19968.34.camel@pracovna> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 178.17.94.131 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 20:56:41 -0000 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=3Dall" 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=C3=AD=C5=A1e v =C4=8Ct 03. 11. 2011 v 10:25 +0100: > Hello, >=20 > I had a look at your EHCI driver, while investigating why grub-1.99 > needs 2 minutes to load my 58 MB InitRd. >=20 > On Sat, Aug 27, 2011 at 06:42:18PM +0200, Ale=C5=A1 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 e= lse > > in newest trunk revision...) - usb_ehci_110625_0. >=20 > Compiling on x86_86 failed for me in grub-core/bus/usb/usbhub.c:104 >=20 > > grub_dprintf ("usb", "Added new usb device: %08x, addr=3D%d\n", > > (grub_uint32_t)dev, i); >=20 > 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 b= y > changing those two lines to use '%p' instead of '%08x' and without the > cast: >=20 > grub_dprintf ("usb", "Added new usb device: %p, addr=3D%d\n", > dev, i); >=20 > 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=3Dehci pager=3D1' I get some lines, before th= e > screen is spammed with 'STATUS'-lines and the computer reboots. > Did I miss something obvious or can I help debug this? >=20 > Sincerely > Philipp