grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [grub-devel] loongson-2f mini-pc (fuloong) elf image generation.
Date: Sun, 27 Oct 2013 23:04:29 +0100	[thread overview]
Message-ID: <526D8DED.9040109@gmail.com> (raw)
In-Reply-To: <CALUrRGe7z6VZR2Y3oGKEpcUa=oh-8+LRmBJ9U-NpK-CrJEdTWw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3888 bytes --]

On 27.10.2013 21:19, Javier Vasquez wrote:
> On Sun, Oct 27, 2013 at 2:03 PM, Aleš Nesrsta <starous@volny.cz> wrote:
>> 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=0xb4073010, port=0, status=0x1403
>>
>> bus/usb/ehci.c:1772: detect_dev: EHCI STATUS: 0000c004
>>
>> bus/usb/ehci.c:1774: detect_dev: iobase=0xb4073010, port=1, status=0x1403
>> ..."
>>
>> 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 via
>> 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 first and
>> OHCI as second module. (It is not critical but little bit more effective.)
>>
>> Then try if USB keyboard will work. If not, send new full debug output.
>>
>> BR,
>> Ales
> 
> 
> 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.
> 
> 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...
> 
> 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...
> 
> Quoting past e-mail:
> 
> +++++++++
> I just used:
> 
> ./configure --prefix=/usr --sysconfdir=/etc
> make
> sudo make install
> 
> After installing I removed old grub generated stuff, and ran:
> 
> sudo grub-install --boot-directory=/boot --target=mipsel-loongson
> --recheck /dev/sda
> 
Add --modules="ehci ohci usb_keyboard"
> That automatically generate a /boot/grub.elf image.  Then after
> editing /etc/default/grub I ran:
> 
> sudo grub-mkconfig -o /boot/grub/grub.cfg
> 
> So far so good...  I already have as a /boot/boot.cfg menu entry, one
> dedicated to use the grub elf image:
> 
> title   Boot with GNU GRUB2
>         kernel  (wd0,0)/grub.elf
>         args    console=tty no_auto_cmd
> 
> 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.
> 
> I then tried to manually generate a grub.elf image by running:
> 
> 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
> 
> 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, :-)
> 
> I also tried:
> 
> 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
> 
> But that didn't make any difference.
> +++++++++
> 
> Thanks,
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]

  parent reply	other threads:[~2013-10-27 22:04 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 [this message]
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=526D8DED.9040109@gmail.com \
    --to=phcoder@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).