From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VaYRw-00078B-A9 for mharc-grub-devel@gnu.org; Sun, 27 Oct 2013 18:04:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaYRp-000780-H5 for grub-devel@gnu.org; Sun, 27 Oct 2013 18:04:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaYRj-0005o1-Sq for grub-devel@gnu.org; Sun, 27 Oct 2013 18:04:37 -0400 Received: from mail-ee0-x230.google.com ([2a00:1450:4013:c00::230]:45832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaYRj-0005np-Ic for grub-devel@gnu.org; Sun, 27 Oct 2013 18:04:31 -0400 Received: by mail-ee0-f48.google.com with SMTP id e50so3001869eek.7 for ; Sun, 27 Oct 2013 15:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=j4fiP0DApX9sh6oMNANqAtrIu7++mJyibh/CluYbWiA=; b=xGLX/6I03TvLn3ZmU/ZtVIZwEYp9/dDiit+C3v8y3gv/lZoP+AqjmNJXkIN5n1BnyJ ZvZg588sRM/4PkIsPegjJbP6ivIKqApX0+OcxJbONMLxnYCEMX60mRlQcBoRYAqRD5T4 rAWA7x9s1oAKADAJ4Tup65nkWk9GAoRIePUzqv1Moe6BGNIIKvunxLUH2aRTd4kByrvd 4Gr4SjKqHT1yTPU5B9biExnueiiFY5eHdn09bhA39+Yq9WxVR9RaqAJdRU8TbHTpRhT1 XrkIoRoDcNTgw8KoktuG+KeiYgixeYPDqBpWJkE6qRKRvgQ7Fvd6LMGVbmHYntOzTXfP 0PwQ== X-Received: by 10.15.64.1 with SMTP id n1mr18739872eex.15.1382911470756; Sun, 27 Oct 2013 15:04:30 -0700 (PDT) Received: from [192.168.1.16] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id s3sm49127367eeo.3.2013.10.27.15.04.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Oct 2013 15:04:30 -0700 (PDT) Message-ID: <526D8DED.9040109@gmail.com> Date: Sun, 27 Oct 2013 23:04:29 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [grub-devel] loongson-2f mini-pc (fuloong) elf image generation. References: <51EBFE3F.2020509@volny.cz> <754db81ef5b348866aa9285809d3889d@mail.volny.cz> <51F2960A.6030805@volny.cz> <51F2AE5E.5070700@gmail.com> <51F522F1.1030507@volny.cz> <51F524DE.4040903@volny.cz> <5238AD0C.60608@gmail.com> <526D5531.7030601@gmail.com> <526D7190.2090305@volny.cz> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2XERRHWWUNODPITHJJFRF" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::230 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: Sun, 27 Oct 2013 22:04:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2XERRHWWUNODPITHJJFRF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 27.10.2013 21:19, Javier Vasquez wrote: > On Sun, Oct 27, 2013 at 2:03 PM, Ale=C5=A1 Nesrsta w= rote: >> Dne 27.10.2013 19:33, Javier Vasquez napsal(a): >> >>> OK, I'll re-dump removing such call, :-) >> >> Hi Javier, >> >> maybe it is not necessary - at least with your current configuration. >> Why: >> >> 1. >> This: >> >> "... >> bus/usb/ehci.c:1772: detect_dev: EHCI STATUS: 0000c004 >> >> bus/usb/ehci.c:1774: detect_dev: iobase=3D0xb4073010, port=3D0, status= =3D0x1403 >> >> bus/usb/ehci.c:1772: detect_dev: EHCI STATUS: 0000c004 >> >> bus/usb/ehci.c:1774: detect_dev: iobase=3D0xb4073010, port=3D1, status= =3D0x1403 >> ..." >> >> does mean: >> >> On EHCI ports 0 and 1 are connected Low speed devices. >> EHCI cannot handle Low and Full speed devices on root ports (by design= ) - it >> have to be done by companion controller(s), i.e. by OHCI or UHCI (or v= ia >> USB2 hub...). >> In your case it should be OHCI. >> >> >> 2. >> I don't see loading of OHCI module in debug output ! >> Do you really have this module included in your image? >> >> >> I recommend to check and regenerate your GRUB image to be able to load= OHCI >> module. >> And possibly change order of loading of USB modules - load EHCI as fir= st and >> OHCI as second module. (It is not critical but little bit more effecti= ve.) >> >> Then try if USB keyboard will work. If not, send new full debug output= =2E >> >> BR, >> Ales >=20 >=20 > Well, going back to some old e-mails I sent, I'm using the ELF image > generated by grub-install, since when generating it by hand with > grub-mkimage it doesn't even offer the menu, and it does offer the > prompt, but still with NO keyboard. >=20 > On the other hand, I believe as part of prior experiments I've already > tried loading ohci after ehci, and that didn't make any difference... >=20 > Can you please make a suggestion on how to generate the ELF image? > Notice I included ohci on the prior mkimage attempts, and that didn't > make the keyboard work... >=20 > Quoting past e-mail: >=20 > +++++++++ > I just used: >=20 > ./configure --prefix=3D/usr --sysconfdir=3D/etc > make > sudo make install >=20 > After installing I removed old grub generated stuff, and ran: >=20 > sudo grub-install --boot-directory=3D/boot --target=3Dmipsel-loongson > --recheck /dev/sda >=20 Add --modules=3D"ehci ohci usb_keyboard" > That automatically generate a /boot/grub.elf image. Then after > editing /etc/default/grub I ran: >=20 > sudo grub-mkconfig -o /boot/grub/grub.cfg >=20 > So far so good... I already have as a /boot/boot.cfg menu entry, one > dedicated to use the grub elf image: >=20 > title Boot with GNU GRUB2 > kernel (wd0,0)/grub.elf > args console=3Dtty no_auto_cmd >=20 > When rebooting, and selecting to use the grub.elf image, I get the > grub menu, and apparently it works, cause after the timeout expires it > selects the first grub menu entry, and everything works. However a > bad thing is that the usb keyboard does not work on the grub menu. >=20 > I then tried to manually generate a grub.elf image by running: >=20 > sudo grub-mkimage -O mipsel-fuloong-elf -o /boot/grub.elf linux ata > usb_keyboard ohci part_msdos ext2 xfs part_gpt ls halt reboot usbms > usb gzio search lspci help ahci blocklist date elf pata configfile > echo >=20 > And the grub.elf generated got worse, cause not only I still didn't > get the usb keyboard to work, but the menu was not loaded, the only > thing available was the grub prompt, which is useless without > keyboard, :-) >=20 > I also tried: >=20 > sudo grub-mkimage -O mipsel-fuloong-elf -o /boot/grub.elf linux ata > usb_keyboard ohci part_msdos ext2 xfs part_gpt ls halt reboot usbms > gzio search lspci help ahci blocklist date elf pata configfile echo >=20 > But that didn't make any difference. > +++++++++ >=20 > Thanks, >=20 ------enig2XERRHWWUNODPITHJJFRF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlJtje0ACgkQNak7dOguQgk/igD+OF7bxQt5BCvd2JoP76u6WK5+ lAZ0XfCuWsekp44Rj+gBAIIpbccBXt4CEFb6ec0YtXZbN/avzs7kviqEHsBdvWT2 =S91W -----END PGP SIGNATURE----- ------enig2XERRHWWUNODPITHJJFRF--