All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] use at_keyboard.c on i386-ieee1275
Date: Wed, 23 Jan 2008 12:32:14 +0100	[thread overview]
Message-ID: <87fxword4x.fsf@xs4all.nl> (raw)
In-Reply-To: <20080123111822.GC25594@thorin> (Robert Millan's message of "Wed,  23 Jan 2008 12:18:22 +0100")

Robert Millan <rmh@aybabtu.com> writes:

> On Wed, Jan 23, 2008 at 11:58:58AM +0100, Marco Gerards wrote:
>> Robert Millan <rmh@aybabtu.com> writes:
>> 
>> > Taking into account that ofconsole on i386:
>> >
>> >   - Has bugs with similar usability effect than at_keyboard.c (e.g. arrow keys
>> >     not working).
>> >   - In practice doesn't provide support for any keyboard other than AT
>> >     (since OFW shuts down USB before transfering control to us).
>> >   - Sharing code with other ports (CoreBoot, attow) is more efficient to get
>> >     these bugs solved.
>> >
>> > I propose to use at_keyboard.c as default for i386-ieee1275.
>> 
>> Fine for me, it is your baby :-) Although you forgot the changelog entry.
>
>         * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
>         `term/i386/pc/at_keyboard.c'.
>
>         * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'.  Remove
>         `<grub/powerpc/ieee1275/console.h>'.
>         (grub_keyboard_controller_init): New function prototype.
>         (grub_console_checkkey): Likewise.
>         (grub_console_getkey): Likewise.
>
>         * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
>         keyboard on i386.
>
>         * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
>         grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.

Looks fine to me.

>> Will you fix the ifdef's soon?
>
> My plan is to propose a split of terminal handling in kernel so that input and
> output terminals become different objects.  This would fix this hack and others
> (such as intermangled at_keyboard.c/vga_text.c with console.c in CB port, or
> gfxterm depending on grub_console_{get,check}key() ).

Great!

> But I'd like to leave this for later.  As mentioned on IRC, Debian is planning
> to start stabilizing next release in March.  If GRUB 2 is mostly in shape at
> that time, we'll be able to use it as the default bootloader.

That's a good idea.

> Which reminds me, is 1.96 coming soon?  When lvm/raid, reiserfs and powerpc
> issues are fixed, it might be a good time.  What do you think?

Fine for me, we didn't have a release for quite a while.  To be
honest, I just hate the upload procedure of ftp://alpha.gnu.org.  The
documents can be interpreted in two ways, or my English simply sucks.
That's one reason for me not to release that quickly. ;-)

>> Doesn't this cause any problems?  Now there are two keyboard drivers
>> active.
>
> Not at all.  I didn't bother #ifdefing grub_ofconsole_{get,check}key out to
> avoid cluttering it (since space is not critical), but it works fine here.

Ok!

> The only drawback is that it doesn't automaticaly switch to serial tty when
> OFW is running there, but that's a problem for every other port anyway (I
> have a solution in mind as well;  when we redesign terminal handling, we
> could layout a scheme in which multiple input or output terminals can be
> active at the same time).

Yes, that would be nice! :-)

--
Marco




  reply	other threads:[~2008-01-23 11:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-23 10:47 [PATCH] use at_keyboard.c on i386-ieee1275 Robert Millan
2008-01-23 10:58 ` Marco Gerards
2008-01-23 11:18   ` Robert Millan
2008-01-23 11:32     ` Marco Gerards [this message]
2008-01-23 11:56       ` Robert Millan
2008-01-24  8:40       ` Yoshinori K. Okuji
2008-01-24  9:10         ` Marco Gerards
2008-01-24 12:39         ` Robert Millan
2008-01-24 12:56           ` Marco Gerards
2008-01-24 21:26           ` Yoshinori K. Okuji
2008-01-24 21:55             ` Robert Millan
2008-01-25  8:56             ` Marco Gerards
2008-01-25 21:22               ` Yoshinori K. Okuji
2008-01-25 22:57                 ` next release & NEWS file (Re: [PATCH] use at_keyboard.c on i386-ieee1275) Robert Millan
2008-01-27  8:01                   ` Pavel Roskin
2008-01-27 22:03                     ` Robert Millan
2008-01-28  8:53                 ` [PATCH] use at_keyboard.c on i386-ieee1275 Marco Gerards

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=87fxword4x.fsf@xs4all.nl \
    --to=mgerards@xs4all.nl \
    --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.