grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: andreas@heider.io
To: grub-devel@gnu.org
Subject: Re: [PATCH] Add apple_set_os command
Date: Tue, 07 Jan 2014 15:58:43 +0100	[thread overview]
Message-ID: <a8ccc375757232cc3243f0a7827808bc@heider.io> (raw)
In-Reply-To: <52CC033A.2040505@gmail.com>

Am 2014-01-07 14:38, schrieb Vladimir 'φ-coder/phcoder' Serbinenko:
> On 30.12.2013 17:04, Andreas Heider wrote:
>> +static const grub_efi_char8_t apple_os_version[] = "Mac OS X 10.9";
>> +static const grub_efi_char8_t apple_os_vendor[]  = "Apple Inc.";
>> +
> Can those be optionally supplied on command line?
> E.g.
> apple_set_os [[VENDOR] VERSION]
> On the other hand we should probably start collecting whitelist of macs
> who need this and do it on them automatically. Idk if there is EFI
> variable to identify mac model from EFI but it's possible from SMBIOS.

I'll try to find the time to implement the command line arguments 
tonight, and I am pretty sure that there is a way to get the model from 
EFI. I just hope that Apple implemented this correctly.

One thing I'm still wondering about is how this could integrate better 
with EFISTUB. Do you know how for example the broadcom fix is applied in 
that scenario? Is the same fix just duplicated in the Linux kernel? 
Because if we implement a whitelist in grub and then suddenly Linux boot 
properly with grub but not directly with EFISTUB things become quite 
ugly.

>> +static grub_err_t
>> +grub_cmd_apple_set_os (grub_command_t cmd __attribute__ ((unused)),
>> +                       int argc __attribute__ ((unused)),
>> +                       char **args __attribute__ ((unused)))
>> +{
>> +  grub_efi_guid_t apple_set_os_guid = 
>> GRUB_EFI_APPLE_SET_OS_PROTOCOL_GUID;
> 
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


  parent reply	other threads:[~2014-01-07 14:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-30 16:04 [PATCH] Add apple_set_os command Andreas Heider
2013-12-30 23:11 ` SevenBits
2013-12-31  5:19   ` Andreas Heider
2014-01-03  6:46   ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-03 17:26     ` SevenBits
2014-01-03 18:38     ` SevenBits
2014-01-07 15:19       ` andreas
2014-01-07 23:04         ` SevenBits
2014-01-07 13:38 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-07 14:46   ` Andrey Borzenkov
2014-01-07 14:58   ` andreas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-13  6:57 Michael Marineau
2015-04-09 10:50 Bruno Bierbaumer

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=a8ccc375757232cc3243f0a7827808bc@heider.io \
    --to=andreas@heider.io \
    --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).