Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LvX2i-0003rH-SR for mharc-grub-devel@gnu.org; Sun, 19 Apr 2009 09:26:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvX2g-0003r7-Pq for grub-devel@gnu.org; Sun, 19 Apr 2009 09:26:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvX2b-0003qS-4V for grub-devel@gnu.org; Sun, 19 Apr 2009 09:26:41 -0400 Received: from [199.232.76.173] (port=57584 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvX2a-0003qP-Vc for grub-devel@gnu.org; Sun, 19 Apr 2009 09:26:37 -0400 Received: from wf-out-1314.google.com ([209.85.200.170]:54824) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvX2a-0004Ia-ER for grub-devel@gnu.org; Sun, 19 Apr 2009 09:26:36 -0400 Received: by wf-out-1314.google.com with SMTP id 23so1437118wfg.24 for ; Sun, 19 Apr 2009 06:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=+801lG3ghN7Hi2ymMb7DOmsrDZ0KQPdpyxYAggSjfXM=; b=GNfxTYU1dJghMnH6zcg8CsfyfUAytgjl5ZTJK0yio/VSxz9ZZpGWNbkHoNAUzLxPei /BWIIeIC3xiciM2isUGF+vHueeDk8S8ushREVfIGi/5Xo1UwovCaKxZL7XsQolCzcXv/ Q/yCdyaabIIf/7QHZWZZSyTsIf+jrJFSCbi0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JhC2zMly7Jl0/9uCL+vq/ht7cwnDaJYhccCxsRPMCJZAvHrT7OxwMIbgpkGbWUnXcE LQOmpasx43cwYRak5H3sVBStCdPZdb07WI0JjbbSmEkeQ5GrPGgdNSql4QVvx5GZVYzT rcaxFw9NfANLLpCUmg6iYCZhiMYX/jCNgkmZ4= MIME-Version: 1.0 Received: by 10.142.13.13 with SMTP id 13mr4066739wfm.131.1240147596142; Sun, 19 Apr 2009 06:26:36 -0700 (PDT) In-Reply-To: References: <48f46e890904182151t55ad5e29sd7a280c62574ba40@mail.gmail.com> Date: Sun, 19 Apr 2009 23:26:36 +1000 Message-ID: <48f46e890904190626l78773fdbp17f4ddd18566cdec@mail.gmail.com> From: Peter Cros To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=000e0cd5097aefe9200467e85c6a X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] bless command X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2009 13:26:42 -0000 --000e0cd5097aefe9200467e85c6a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit bless.diff version 2. success. cleared all bless on hfsplus partition in OSX. grub> hfspbless (hd0,3)/efi/test/grub523.efi Back to OSX - Last login: Sun Apr 19 22:48:43 on console im81:~ pxw$ bless --info /Volumes/hfsp finderinfo[0]: 75 => Blessed System Folder is finderinfo[1]: 7857 => Blessed System File is /Volumes/hfsp/efi/test/grub523.efi finderinfo[2]: 0 => Open-folder linked list empty finderinfo[3]: 0 => No OS 9 + X blessed 9 folder finderinfo[4]: 0 => Unused field unset finderinfo[5]: 0 => No OS 9 + X blessed X folder 64-bit VSDB volume id: 0x0F87F7680B9C5211 It boots - Restart with option key gives the Apple EFI disk icon, which boots grub523.efi Confirmed with shutdown-restart again. Redundant info - I checked the OSX bless utility, it requires both folder and file, or it will not agree to bless the file. im81:~ pxw$ sudo bless --folder /Volumes/hfsp/efi/test --file /Volumes/hfsp/efi/test/grub523.efi im81:~ pxw$ bless --info /Volumes/hfsp finderinfo[0]: 7882 => Blessed System Folder is /Volumes/hfsp/efi/test finderinfo[1]: 7885 => Blessed System File is /Volumes/hfsp/efi/test/grub523.efi Now all we need is --setBoot to make grub.efi the default boot, no Option key required. Oh, and how do we get grub.efi booted to bless itself - the only way I know at present is to use a rEFIt CD, which is bootable by Apple EFI. On Sun, Apr 19, 2009 at 8:50 PM, Vladimir Serbinenko wrote: > Hello, thank you for the testing. Two concepts together (system folder and > system file) are clearly redundant. I thought that intel macs look which > folder is blessed and load boot.efi file from this directory. Here I attach > a patch which updates finderinfo[0] when argument is a directory and > finderinfo[1] when argument is a file. Can you do a test and tell me which > concept is really used by intel macs? When doing tests don't forget to hold > option key and select your testing partition. I will do a similar test on my > ppc mac > > > On Sun, Apr 19, 2009 at 6:51 AM, Peter Cros wrote: > >> Hi, >> >> Tested and works on Apple imac81 with Mac OSX 10.5, patch applied to r >> 2074 >> >> grub> hfspbless (hd0,3)/efi >> >> Last login: Sun Apr 19 14:30:23 on console >> im81:~ pxw$ bless --info /Volumes/hfsp >> finderinfo[0]: 52 => Blessed System Folder is /Volumes/hfsp/efi >> finderinfo[1]: 0 => No Blessed System File >> finderinfo[2]: 0 => Open-folder linked list empty >> finderinfo[3]: 0 => No OS 9 + X blessed 9 folder >> finderinfo[4]: 0 => Unused field unset >> finderinfo[5]: 0 => No OS 9 + X blessed X folder >> 64-bit VSDB volume id: 0x0F87F7680B9C5211 >> im81:~ pxw$ >> >> Now it just needs to bless the file in order to boot from grub.efi on >> Apple EFI >> >> hfspbless >> >> This would be VERY useful, making grub.efi boot possible on Apple Mac >> without needing Mac OSX or refit. >> >> hfspbless is fine for a name >> >> >> 2009/4/19 Vladimir Serbinenko >> >>> Hello, due to request by ams I wrote this. It's an analog of "bless" >>> command available under OSX rewritten using grub2 fs functions and according >>> to apple specification of hfs+ on-disk format. This command only update the >>> blessed folder on a partition it doesn't change which drive is used for >>> booting. The later will be a separate command. Also you can choose which >>> volume to boot from by holding option key. Syntax: >>> hfspbless >>> It works only on HFS+ volumes. Also due to the lack of hardware I wasn't >>> unable to test this "in vivo" >>> >>> >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> http://lists.gnu.org/mailman/listinfo/grub-devel >>> >>> >> >> >> -- >> Cros (pxw) >> >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> >> > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Cros (pxw) --000e0cd5097aefe9200467e85c6a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

bless.diff version 2.
success.

=
cleared all bless on hfsplus partition in OSX.

grub> hfspbless (hd0,3)/efi/test/grub523.efi

Back to =A0OSX -
Last login: Sun Apr 19 22:48:43 on console<= /div>
im81:~ pxw$ bless --info /Volumes/hfsp=A0
finderinfo[0]= : =A0 =A0 75 =3D> Blessed System Folder is <missing>
fin= derinfo[1]: =A0 7857 =3D> Blessed System File is /Volumes/hfsp/efi/test/= grub523.efi
finderinfo[2]: =A0 =A0 =A00 =3D> Open-folder linked list empty
finderinfo[3]: =A0 =A0 =A00 =3D> No OS 9 + X blessed 9 folder
finderinfo[4]: =A0 =A0 =A00 =3D> Unused field unset
find= erinfo[5]: =A0 =A0 =A00 =3D> No OS 9 + X blessed X folder
64-bit VSDB volume id: =A00x0F87F7680B9C5211

= It boots -=A0
Restart with option key gives the Apple EFI disk ic= on, which boots grub523.efi
Confirmed with shutdown-restart again= .

Redundant info -
I checked the OSX bless util= ity, it requires both folder and file, or it will not agree to bless the fi= le.

im81:~ pxw$ sudo bless --folder /Volumes/hfsp/= efi/test --file /Volumes/hfsp/efi/test/grub523.efi=A0
im81:~ pxw$ bless --info /Volumes/hfsp=A0
finderinfo[0]: =A0= 7882 =3D> Blessed System Folder is /Volumes/hfsp/efi/test
fin= derinfo[1]: =A0 7885 =3D> Blessed System File is /Volumes/hfsp/efi/test/= grub523.efi


Now all we need is =A0--setBoot to make = grub.efi the default boot, no Option key required.

Oh, and how do we get grub.efi booted to bless itself - the only way I kno= w at present is to use a rEFIt CD, which is bootable by Apple EFI.


On Sun, Apr 19, 2009 at 8:50 = PM, Vladimir Serbinenko <phcoder@gmail.com> wrote:
Hello, thank you for the testing. Two concepts together (system folder and = system file) are clearly redundant. I thought that intel macs look which fo= lder is blessed and load boot.efi file from this directory. Here I attach a= patch which updates finderinfo[0] when argument is a directory and finderi= nfo[1] when argument is a file. Can you do a test and tell me which concept= is really used by intel macs? When doing tests don't forget to hold op= tion key and select your testing partition. I will do a similar test on my = ppc mac


On Sun, Apr 19, 2009 at 6:51 AM, Peter Cros = <pxwpxw8@gmail.com> wrote:
Hi,

Tested and works on Apple imac81 with Mac= OSX 10.5, patch applied to r 2074

grub> hfspbl= ess (hd0,3)/efi

Last login: Sun Apr 19 14:30:23 on= console
im81:~ pxw$ bless --info /Volumes/hfsp=A0
finderinfo[0]: =A0= =A0 52 =3D> Blessed System Folder is /Volumes/hfsp/efi
finder= info[1]: =A0 =A0 =A00 =3D> No Blessed System File
finderinfo[2= ]: =A0 =A0 =A00 =3D> Open-folder linked list empty
finderinfo[3]: =A0 =A0 =A00 =3D> No OS 9 + X blessed 9 folder
=
finderinfo[4]: =A0 =A0 =A00 =3D> Unused field unset
finde= rinfo[5]: =A0 =A0 =A00 =3D> No OS 9 + X blessed X folder
64-bi= t VSDB volume id: =A00x0F87F7680B9C5211
im81:~ pxw$=A0

Now it just needs to bless the= file in order to boot from grub.efi on Apple EFI

= hfspbless <DIRECTORY> <FILE>

This woul= d be VERY useful, making grub.efi boot possible on Apple Mac without needin= g Mac OSX or refit.

hfspbless is fine for a name


2009/4/19 Vladimir Serbinenko &l= t;phcoder@gmail.com<= /a>>
Hello, due to request by ams I wrote this. It's an analog of "bles= s" command available under OSX rewritten using grub2 fs functions and = according to apple specification of hfs+ on-disk format. This command only = update the blessed folder on a partition it doesn't change which drive = is used for booting. The later will be a separate command. Also you can cho= ose which volume to boot from by holding option key. Syntax:
hfspbless <DIRECTORY>
It works only on HFS+ volumes. Also due to t= he lack of hardware I wasn't unable to test this "in vivo"
=A0

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org<= /a>
http://lists.gnu.org/mailman/listinfo/grub-devel




--=
Cros (pxw)



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org<= /a>
http://lists.gnu.org/mailman/listinfo/grub-devel



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel




--
Cros (pxw)

<= br> --000e0cd5097aefe9200467e85c6a--