All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: select menu item depending on frontkey
Date: Mon, 23 Apr 2012 14:56:03 +0200	[thread overview]
Message-ID: <4F955163.4070806@gmail.com> (raw)
In-Reply-To: <4F955106.8010603@jomammele.de>

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

On 23.04.2012 14:54, Joachim Mammele wrote:
> Hi,
> accrding to Vladimirs hints I adapted my grub-configuration.
>
> What I changed in /boot/grub/grub.cfg is the following: (I'm aware
> that editing grub.cfg isn't the best option as it gets rewritten on
> executing the config-scripts)
> (the whole file can be found here http://pastebin.com/K57RHjwn)
>
> ### BEGIN /etc/grub.d/00_header ###
> if [ -s $prefix/grubenv ]; then
>   load_env
> fi
>
> #unsigned char bits9, keybits;
>
> set keybits = "32";
> grub_outb(keybits, 0x20A);
> grub_outw(-16832, 0x20C);
> set bits9 = grub_inb(0x209);
>
> echo "bits9= "
> echo bits9
>
> if (bits9 == 64)
>     set default="1"
> if (bits9 == 32)
>     set default="2"
> if (bits9 == 16)
>     set default="3"
> else
>     set default="0"
>
> On starting grub I see some error log-messages but before I can read
> them the grub-menu appears.
> I'm using ubuntu 10.04 (Kernel 2.6.32-40)
>
> Any help would be appreciated.
>
grub.cfg is written in GRUB bash-like, not C. Modules are in C.
> Greetings
> Joachim
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



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

  reply	other threads:[~2012-04-23 12:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 12:54 select menu item depending on frontkey Joachim Mammele
2012-04-23 12:56 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2012-04-23 13:28   ` Joachim Mammele

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=4F955163.4070806@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 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.