From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VfaIb-0004Yq-Jq for mharc-grub-devel@gnu.org; Sun, 10 Nov 2013 14:03:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfaIZ-0004Xf-F2 for grub-devel@gnu.org; Sun, 10 Nov 2013 14:03:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfaIY-00088y-8Q for grub-devel@gnu.org; Sun, 10 Nov 2013 14:03:51 -0500 Received: from mail-vc0-x22f.google.com ([2607:f8b0:400c:c03::22f]:53488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfaIY-00088q-2S for grub-devel@gnu.org; Sun, 10 Nov 2013 14:03:50 -0500 Received: by mail-vc0-f175.google.com with SMTP id ht17so612831vcb.20 for ; Sun, 10 Nov 2013 11:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=RAL+TO8poBqXI39c4UPG8rTfLAW4wgkOzE9VG9v0uM0=; b=iGH61kVIy/Zj8yJVQYbZQtm5vK1jBQU9aI6EsCzvvNE3Ffii/4zHYJkeH88c2y4QD2 9GL9EK1s+jVy9jrppQrKNfMZ+UQlECxhLhbHzZ1xE9xyTuGS83bYHcGLyUWE/ZqbHypk hZ8x11q3kI7LBLsNN+xo6V23J+eavSVKzuE3lMWM6x4JU357YIl7ZDl9nxFI4a9/Auke p3noa89d2G21A1NcKIz1ZwBd1mHHwpNpRoxTG7WRBnRk8XdH1ucf5mqr5e64UFiz0386 w9II9rPYZbsadLBgpjVRxNo5QGcOrIWhTDQSYX+/nv+LSBw4MKC/K1Ro7PnWN41mAzOc Lm4w== MIME-Version: 1.0 X-Received: by 10.220.159.4 with SMTP id h4mr13019596vcx.1.1384110229164; Sun, 10 Nov 2013 11:03:49 -0800 (PST) Received: by 10.220.214.73 with HTTP; Sun, 10 Nov 2013 11:03:48 -0800 (PST) In-Reply-To: <5276F585.6020701@gmail.com> 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> <5276F585.6020701@gmail.com> Date: Sun, 10 Nov 2013 13:03:48 -0600 Message-ID: Subject: Re: [grub-devel] loongson-2f mini-pc (fuloong) elf image generation. From: Javier Vasquez To: The development of GNU GRUB Content-Type: multipart/mixed; boundary=001a11c2ca0c8a2c6b04ead746af X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::22f 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, 10 Nov 2013 19:03:52 -0000 --001a11c2ca0c8a2c6b04ead746af Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Nov 3, 2013 at 7:16 PM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > 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 napsa= l(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 nap= sal(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 l= ike >>>>>> 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, even >>>>>> 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 loa= ded >>>>>> - 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, it >>>> 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 h= ad >>>> 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 >>> >>> >>> >> >> Hmm, >> >> The following just fails: >> >> % 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. >> >> I just compiled/installed grub from git checksum >> 323de05ba27594861c75eec0b39cb01049a023c9. >> >> I suppose I better wait, so that I can provide the right output dump. >> > When you do grub_dprintf change you have to do it like: > if (!debug) > #ifdef GRUB_UTIL > return; > #else > debug=3D"all"; > #endif I'll be sending the grub.cfg from the mini-pc later, but now I'm able to see very little output through the serial interface. Attached goes this output. --=20 Javier. --001a11c2ca0c8a2c6b04ead746af Content-Type: text/plain; charset=US-ASCII; name="ttyUSB0_new.txt" Content-Disposition: attachment; filename="ttyUSB0_new.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hnunhnnx1 Tm93IGJvb3RpbmcgdGhlIEJvb3Qgd2l0aCBHTlUgR1JVQjIKCkxvYWRpbmcgZmlsZTogKHdkMCww KS9ncnViLmVsZiAoZWxmKQoKMHg4MDFmZmI2MC8yOTYyODQgCCArIAoKRW50cnkgYWRkcmVzcyBp cyA4MDFmZmI2MAoKQm9vdCB3aXRoIHBhcmFtZXRlcnM6IGNvbnNvbGU9dHR5IG5vX2F1dG9fY21k CgogICB6ZXJvICAgICAgYXQgICAgICAgdjAgICAgICAgdjEgICAgICAgYTAgICAgICAgYTEgICAg ICAgYTIgICAgICAgYTMgICAKCiAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAw MDAwMDAwNiBhZmY3ZmNiOCBhZmY3ZmNkNCA4MDBjNzQ2MAoKICAgIHQwICAgICAgIHQxICAgICAg IHQyICAgICAgIHQzICAgICAgIHQ0ICAgICAgIHQ1ICAgICAgIHQ2ICAgICAgIHQ3ICAgCgogMDAw MDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAw MDAgMDAwMDAwMDAKCiAgICBzMCAgICAgICBzMSAgICAgICBzMiAgICAgICBzMyAgICAgICBzNCAg ICAgICBzNSAgICAgICBzNiAgICAgICBzNyAgIAoKIDAwMDAwMDAwIDAwMDAwMDAwIDAwMDAwMDAw IDAwMDAwMDAwIDAwMDAwMDAwIDAwMDAwMDAwIDAwMDAwMDAwIDAwMDAwMDAwCgogICAgdDggICAg ICAgdDkgICAgICAgazAgICAgICAgazEgICAgICAgZ3AgICAgICAgc3AgICAgICAgczggICAgICAg cmEgICAKCiAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCBhZmY3 ZmM5OCAwMDAwMDAwMCA4MDA4NmMzOAoK --001a11c2ca0c8a2c6b04ead746af--