From: Javier Vasquez <j.e.vasquez.v@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [grub-devel] loongson-2f mini-pc (fuloong) elf image generation.
Date: Sun, 10 Nov 2013 13:03:48 -0600 [thread overview]
Message-ID: <CALUrRGd0FazN+a=q7eyk6-GcWuAAreyNfzE-nnkC5D-1M3UrNA@mail.gmail.com> (raw)
In-Reply-To: <5276F585.6020701@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3634 bytes --]
On Sun, Nov 3, 2013 at 7:16 PM, Vladimir 'φ-coder/phcoder' Serbinenko
<phcoder@gmail.com> wrote:
> On 04.11.2013 02:10, Javier Vasquez wrote:
>> On 11/1/13, Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> wrote:
>>> On 01.11.2013 22:26, Aleš Nesrsta wrote:
>>>>
>>>>
>>>> Dne 29.10.2013 19:46, Vladimir 'φ-coder/phcoder' Serbinenko napsal(a):
>>>>> On 29.10.2013 19:35, Aleš Nesrsta wrote:
>>>>>> Only short note below...
>>>>>>
>>>>>> Dne 27.10.2013 23:43, Vladimir 'φ-coder/phcoder' Serbinenko napsal(a):
>>>>>>> On 27.10.2013 21:03, Aleš 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 = %x" message.
>>>>>>> Can you modify grub_real_dprintf in misc.c to:
>>>>>>> if (!debug)
>>>>>>> debug = "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=all 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 loaded
>>>>>> - 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 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=pata 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=/boot --target=mipsel-loongson
>> --modules="ehci ohci usb_keyboard" --disk-module=pata --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="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.
--
Javier.
[-- Attachment #2: ttyUSB0_new.txt --]
[-- Type: text/plain, Size: 765 bytes --]
Now booting the Boot with GNU GRUB2
Loading file: (wd0,0)/grub.elf (elf)
0x801ffb60/296284 \b +
Entry address is 801ffb60
Boot with parameters: console=tty no_auto_cmd
zero at v0 v1 a0 a1 a2 a3
00000000 00000000 00000000 00000000 00000006 aff7fcb8 aff7fcd4 800c7460
t0 t1 t2 t3 t4 t5 t6 t7
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
s0 s1 s2 s3 s4 s5 s6 s7
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
t8 t9 k0 k1 gp sp s8 ra
00000000 00000000 00000000 00000000 00000000 aff7fc98 00000000 80086c38
next prev parent reply other threads:[~2013-11-10 19:03 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-28 16:31 [grub-devel] loongson-2f mini-pc (fuloong) elf image generation Javier Vasquez
2012-10-28 16:36 ` Javier Vasquez
2012-10-28 17:19 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-10-28 23:19 ` Javier Vasquez
2012-10-29 21:47 ` Aleš Nesrsta
2012-10-29 23:03 ` Javier Vasquez
2012-10-30 20:14 ` Aleš Nesrsta
2012-11-03 21:34 ` Javier Vasquez
2012-11-04 17:31 ` Javier Vasquez
2012-11-04 21:05 ` Aleš Nesrsta
2012-11-05 0:11 ` Javier Vasquez
2012-11-04 21:51 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-11-05 0:14 ` Javier Vasquez
2013-07-12 14:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-12 16:25 ` Aleš Nesrsta
2013-07-12 18:05 ` Lennart Sorensen
2013-07-13 8:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-13 18:10 ` Aleš Nesrsta
2013-07-13 19:54 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-13 21:22 ` Aleš Nesrsta
2013-07-15 0:18 ` Javier Vasquez
2013-07-15 3:19 ` Javier Vasquez
2013-07-15 10:26 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-16 13:40 ` Javier Vasquez
2013-07-16 13:50 ` Javier Vasquez
2013-07-16 17:53 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-16 21:17 ` Javier Vasquez
2013-07-15 20:39 ` Aleš Nesrsta
2013-07-16 19:25 ` Aleš Nesrsta
2013-07-16 19:29 ` Aleš Nesrsta
2013-07-18 16:10 ` [PATCH] " Aleš Nesrsta
2013-07-19 5:00 ` Javier Vasquez
2013-07-20 21:56 ` Aleš Nesrsta
2013-07-20 22:43 ` Javier Vasquez
2013-07-21 15:29 ` Aleš Nesrsta
2013-07-21 20:11 ` Javier Vasquez
2013-07-22 20:14 ` starous
2013-07-22 21:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-23 21:05 ` starous
2013-07-26 15:30 ` Aleš Nesrsta
2013-07-26 16:59 ` Javier Vasquez
2013-07-26 17:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-27 22:40 ` Javier Vasquez
2013-07-28 13:56 ` Aleš Nesrsta
2013-07-28 14:04 ` Aleš Nesrsta
2013-09-17 17:24 ` Javier Vasquez
2013-09-17 17:34 ` Javier Vasquez
2013-09-17 21:10 ` Aleš Nesrsta
2013-09-17 21:35 ` Gregg Levine
2013-09-17 22:17 ` Aleš Nesrsta
2013-09-17 19:27 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-17 20:33 ` Javier Vasquez
2013-10-27 17:54 ` Javier Vasquez
2013-10-27 18:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-27 18:33 ` Javier Vasquez
2013-10-27 20:03 ` Aleš Nesrsta
2013-10-27 20:19 ` Javier Vasquez
2013-10-27 21:20 ` Aleš Nesrsta
2013-10-27 22:04 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-27 22:18 ` Javier Vasquez
2013-10-27 22:26 ` Javier Vasquez
2013-10-27 22:43 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-27 22:51 ` Javier Vasquez
2013-10-27 23:47 ` Javier Vasquez
2013-10-29 18:35 ` Aleš Nesrsta
2013-10-29 18:46 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-01 21:26 ` Aleš Nesrsta
2013-11-01 21:59 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-04 1:10 ` Javier Vasquez
2013-11-04 1:16 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-10 19:03 ` Javier Vasquez [this message]
2013-11-10 19:10 ` Javier Vasquez
2013-11-17 12:04 ` Aleš Nesrsta
2013-11-17 18:31 ` Javier Vasquez
2013-12-05 21:18 ` Aleš Nesrsta
2013-12-05 21:34 ` Aleš Nesrsta
2013-09-19 8:13 ` [PATCH] " Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-16 23:31 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-16 23:39 ` Javier Vasquez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALUrRGd0FazN+a=q7eyk6-GcWuAAreyNfzE-nnkC5D-1M3UrNA@mail.gmail.com' \
--to=j.e.vasquez.v@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).