From: "Aleš Nesrsta" <starous@volny.cz>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [grub-devel] loongson-2f mini-pc (fuloong) elf image generation.
Date: Fri, 26 Jul 2013 17:30:18 +0200 [thread overview]
Message-ID: <51F2960A.6030805@volny.cz> (raw)
In-Reply-To: <754db81ef5b348866aa9285809d3889d@mail.volny.cz>
Hi Javier,
probably last chance to find the reason of Your GRUB USB keyboard
trouble is the debugging.
I don't know how much debugging experience do You have, so there is
short "manual" what You need to have/to do:
1.
You'll need to have some another computer with serial port (or working
USB to serial converter) and serial null-modem cable.
2.
You should connect serial port of Fuloong 2F with second computer by
null-modem serial cable.
3.
You should configure properly serial port on second PC to be:
speed 9600
data bits 8
stop bits 1
parity none
HW handshake none
SW handshake none
(no echo)
e.g. on Linux it should be enough to run for port /dev/ttyS0 (as root or
via sudo):
stty -F /dev/ttyS0 9600 -echo
(Be sure that serial port is not used by some another application, like
e.g. UPS daemon "nut" etc.)
4.
Start capturing on second PC, e.g. on Linux simply by:
cat /dev/ttyS0 > capture_file
5.
Prepare Fuloong 2F for debugging:
- we try to use Your "normal" image in first debugging try, i.e. image
with both OHCI and EHCI modules
- add "serial" module into Your GRUB image if it is not already there
- add following three commands BEFORE "insmod ohci" in grub.cfg, i.e. it
should look like that:
...
serial
terminal_output console serial
debug=all
insmod ohci
insmod ehci
...
- if You will have connected USB disk as I recommend below, add also
"ls" command AFTER "insmod ehci" (similarly as in previous test), i.e.
it should look finally like that:
...
serial
terminal_output console serial
debug=all
insmod ohci
insmod ehci
ls
...
6.
Connect USB keyboard (and possibly also USB disk) to Fuloong 2F and
boot GRUB.
You should see lot of scrolling debugging texts during GRUB booting (and
the same texts should be included in capture file on second PC).
Be patient - the booting of GRUB takes long time when debugging via
serial line is enabled (specially with "all").
If all USB related things are OK, the debugging output will never stop -
but You can stop capturing after approx. at least one or maybe better
two minute(s) or more.
If the debugging texts stops (it should not normally happen), then You
can stop capturing also.
7.
Send captured debugging text to me.
I hope I didn't forget any important part and I didn't write any
nonsense in "manual" above and You will have not problem with debugging
and capturing...
BR,
Ales
> Hi,
> thanks for the test(s).
>
> It looks like there are two possible cases:
> - OHCI driver is not working on fuloong 2f
> - root hub events handling is still not correct on fuloong 2f
>
> Fortunately fuloong 2F has more or less classic serial interface so we probably can capture debug output from whole USB subsystem.
> Do You have some another PC which can capture debug output from Fuloong 2f via serial cable?
> If yes, we will contiue with tests at the end of week, currently I am busy.
>
> BR,
> Ales
>
>> | Hm.
>> | Could You make following additional test?
>> | ...
>> |
>> | 4.
>> | Boot the PC. During boot check this:
>> | - If USB disk blinks when ls command is issued (i.e. if USB disk is
>> | accessed by GRUB).
>>
>> No, it doesn't.
>>
>> | - If ls command output contains somewhere at least "usb(0)" or "usb(0)
>> | usb(0,msdos1)" or whatever similar.
>>
>> Unfortunately no.
>>
>> |
>> | 5.
>> | Send the result to us. :-)
>>
>> Done, :-)
>>
>> Thanks,
>>
>> --
>> Javier.
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
next prev parent reply other threads:[~2013-07-26 15:30 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 [this message]
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
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=51F2960A.6030805@volny.cz \
--to=starous@volny.cz \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.