From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vd8n0-0004Hn-1w for mharc-grub-devel@gnu.org; Sun, 03 Nov 2013 20:17:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd8ms-0004HT-SA for grub-devel@gnu.org; Sun, 03 Nov 2013 20:17:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vd8mn-0001uA-Ee for grub-devel@gnu.org; Sun, 03 Nov 2013 20:17:02 -0500 Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:43229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd8mn-0001u6-3W for grub-devel@gnu.org; Sun, 03 Nov 2013 20:16:57 -0500 Received: by mail-ea0-f182.google.com with SMTP id o10so3123063eaj.13 for ; Sun, 03 Nov 2013 17:16:56 -0800 (PST) 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=0xvkIKUD07CMMh+G0WaG14r91i7HCWzwNHlo21Ku2ik=; b=TZYxbYbPnblmMMMHZGJsWSUzuzZ12pn5VlvHcC40uU6YMIYfBU+R8COpPQN8LrjCqN 6euI/wAoHxDR56DU5LTeP9rvzQwizHXjYfqdB8y/kU8wbTOrB3Ach/GuM0MQZoqES775 VaRY28J6SYEOyfSX5dOFSTHWypW7A3z/FFsh4BXR6YigNhlkOl2W5DeNc+s0bwB9bZPj ouWfYGGM8+L+dSJKSHY3vVWz8XA4mV8E8+glSOPIvdXSpPL4WFw0CehRZI0ll0xPNzLE ZP4ZRE7Gzkyd7FCswRHiWiPgOgcVsdYsaPmphGut2mFnIWLzJFbpLNHuY+lhtgFZTCwi 6OLA== X-Received: by 10.15.43.3 with SMTP id w3mr5337799eev.32.1383527816007; Sun, 03 Nov 2013 17:16:56 -0800 (PST) Received: from [192.168.1.16] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id x4sm26239978eef.1.2013.11.03.17.16.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Nov 2013 17:16:54 -0800 (PST) Message-ID: <5276F585.6020701@gmail.com> Date: Mon, 04 Nov 2013 02:16:53 +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: <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> <526D9702.4060403@gmail.com> <52700009.1020903@volny.cz> <52741C88.8090803@volny.cz> <5274243E.3080101@gmail.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2IQEHPXRXSTRJDXQKJIVM" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::236 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: Mon, 04 Nov 2013 01:17:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2IQEHPXRXSTRJDXQKJIVM Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 04.11.2013 02:10, Javier Vasquez wrote: > On 11/1/13, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: >> On 01.11.2013 22:26, Ale=C5=A1 Nesrsta wrote: >>> >>> >>> Dne 29.10.2013 19:46, Vladimir '=CF=86-coder/phcoder' Serbinenko naps= al(a): >>>> On 29.10.2013 19:35, Ale=C5=A1 Nesrsta wrote: >>>>> Only short note below... >>>>> >>>>> Dne 27.10.2013 23:43, Vladimir '=CF=86-coder/phcoder' Serbinenko na= psal(a): >>>>>> On 27.10.2013 21:03, Ale=C5=A1 Nesrsta wrote: >>>>>>> >>>>>>> >>>>>>> 2. >>>>>>> I don't see loading of OHCI module in debug output ! >>>>>>> Do you really have this module included in your image? >>>>>> I have to second this: OHCI module if loaded and there is at least= one >>>>>> PCI device available it will show "pciid =3D %x" message. >>>>>> Can you modify grub_real_dprintf in misc.c to: >>>>>> if (!debug) >>>>>> debug =3D "all"; >>>>>> >>>>>> So we can be sure that the message wasn't simply lost due to late >>>>>> setting of debug variable. >>>>> >>>>> >>>>> AFAIK, dl.c module should display for each loaded module something = like >>>>> this (when debug=3Dall as in Javier case): >>>>> "kern/dl.c:630: module name: ehci" >>>>> This is missing for OHCI module in debug output sent by Javier, eve= n >>>>> grub.cfg command to load OHCI is present on the beginning of debug >>>>> output: >>>>> ... >>>>> script/lexer.c:321: token 288 text [insmod] >>>>> >>>>> script/script.c:50: malloc 0x8ff1d920 >>>>> >>>>> script/script.c:50: malloc 0x8ff1d900 >>>>> >>>>> script/script.c:163: arglist >>>>> >>>>> script/script.c:50: malloc 0x8ff1d8d0 >>>>> >>>>> script/lexer.c:321: token 288 text [ohci] >>>>> ... >>>>> >>>>> I.e., from my point of view, it is sure that OHCI module was not lo= aded >>>>> - but there is no debug output which can explain why... >>>> It's possible that a module named ohci already loaded. >>> Hm. Originally I didn't believe it but you are right. Additionally, i= t >>> is probably the case of the second Javier dump - there is missing dl.= c >>> message also for loading of EHCI module even it is working - so EHCI = had >>> to be loaded before insmod command. >>> >>> Is it there some way how Javier can avoid it? >>> I.e., how to load USB drivers at the time when their debug output can= be >>> captured - ? We need to see debug output of initialization of OHCI >>> controller and connected devices... >>> >> --disk-module=3Dpata to grub-install. >>> BR, Ales >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> https://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> >=20 > Hmm, >=20 > The following just fails: >=20 > % sudo grub-install --boot-directory=3D/boot --target=3Dmipsel-loongson= > --modules=3D"ehci ohci usb_keyboard" --disk-module=3Dpata --recheck > /dev/sda > /usr/bin/grub-mkimage: error: cannot open > `grub-core/kern/disk.c:196:.mod': No such file or directory. >=20 > I just compiled/installed grub from git checksum > 323de05ba27594861c75eec0b39cb01049a023c9. >=20 > I suppose I better wait, so that I can provide the right output dump. >=20 When you do grub_dprintf change you have to do it like: if (!debug) #ifdef GRUB_UTIL return; #else debug=3D"all"; #endif > Thanks, >=20 ------enig2IQEHPXRXSTRJDXQKJIVM 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/ iF4EAREKAAYFAlJ29YUACgkQmBXlbbo5nOvKFAD/fy0/qZD0gPqdsPg9SU+JufMg ASrslDbQ0QJSWlXqAn0BAJXlrKgyFIDH74OypLsa+mtmPFff2KoOw2FEDapbCIRE =PI69 -----END PGP SIGNATURE----- ------enig2IQEHPXRXSTRJDXQKJIVM--