Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LxFpn-0002Rh-1F for mharc-grub-devel@gnu.org; Fri, 24 Apr 2009 03:28:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxFpk-0002Q6-Ln for grub-devel@gnu.org; Fri, 24 Apr 2009 03:28:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxFpg-0002NI-Tm for grub-devel@gnu.org; Fri, 24 Apr 2009 03:28:28 -0400 Received: from [199.232.76.173] (port=52017 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxFpg-0002ND-NJ for grub-devel@gnu.org; Fri, 24 Apr 2009 03:28:24 -0400 Received: from mx20.gnu.org ([199.232.41.8]:15722) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LxFpg-0008B4-4r for grub-devel@gnu.org; Fri, 24 Apr 2009 03:28:24 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxFpe-0001bg-Vd for grub-devel@gnu.org; Fri, 24 Apr 2009 03:28:23 -0400 Received: by ewy6 with SMTP id 6so885296ewy.42 for ; Fri, 24 Apr 2009 00:28:19 -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=7i3HHZue90tauaSwfhxz+VvyNjFLVgQHNjRfaFg78Pc=; b=G6RhY+Uv/5nrfDQ9kaRtzqbgOfffa6JQ4+GZYC5MTapQvmhBUyeECXcDQNxHLA4OOi MZM/c9hUBmKsGiNyUcnfL6o+Im5yM2+hVSpbjIfMPCes5eYVBMydqXhTaXVCa1mMxPhU SEDmD4GBqxiiccf68JPySvlYsLBD5eDZAZZbU= 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=UvdYR2yJxxU2Was7VOC/hsa5uL+Mq3xSJpTjbrVDcAAZa0lN63RCOzBdwUYtN2QzeU MwDXe/ZoQQHRs1hM/TBjLKGf6Vv/kn/HkukvfG7OqRD4HdgLyGYoTOKfnVRBThpoBzK4 cm5JurIi4YpFSpVGAx5BfS+dI4B2jcViyc4F0= MIME-Version: 1.0 Received: by 10.210.78.16 with SMTP id a16mr1918728ebb.74.1240558099796; Fri, 24 Apr 2009 00:28:19 -0700 (PDT) In-Reply-To: References: <49E51246.8070606@gmail.com> Date: Fri, 24 Apr 2009 09:28:19 +0200 Message-ID: From: Vladimir Serbinenko To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=000e0cd1eb70dc9575046847f026 X-detected-kernel: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH] xnu 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: Fri, 24 Apr 2009 07:28:29 -0000 --000e0cd1eb70dc9575046847f026 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Your FSB wasn't detected correctly (or rather not detected at all, what's your CPU?). The actual bug is that if fsb frequency is too low the kernel will crash when trying to use 64-bit mode (you can use -legacy parameter to put xnu in 32-bit mode). You need to specify fsb with a variable. Can you come to irc.freenode.net#grub ? (e.g. for 200Mhz: set fsb=200). On Fri, Apr 24, 2009 at 2:41 AM, Joey Korkames > wrote: > This patch did not work as well as the last one posted (on my test > machine). The last one got all the way to trying to run /sbin/launchd off > the ramdisk - log post of this one's boot attempt are attached. > > Oh, here is my updated menuentry, works well and gives me serial output of > the darwin kernel (as well as on the VGA monitor): > > menuentry "PureDarwin 9 (phcoder efiemu)" { > echo "Switching to VESA and booting Darwin (slow)... " > #bootloader must tickle VESA before xnu can use it > loadfont /osstore/STAGE1a/grub2/unifont.pf2 > set gfxmode="800x600x32" > set vbe_mode=0x115 > terminal_output gfxterm > echo "VESA enabled. Booting Darwin (slow)... " > > #efiemu_loadcore /osstore/STAGE1a/grub2/efiemu64.o > efiemu_loadcore /osstore/STAGE1a/grub2/efiemu32.o > efiemu_pnvram > efiemu_prepare > xnu_kernel /osstore/STAGE2/DARWIN/live/mach_kernel -s -f debug=0x08 > serial=2 serialbaud=9600 rd=md0 > -f parameter isn't actually used. Use xnu_kextdir if you don't want to use mkext > > xnu_mkext /osstore/STAGE2/DARWIN/live/System/Library/Extensions.mkext > xnu_ramdisk /osstore/STAGE2/DARWIN/ramdisk.hfs > # ^^30MB too big? (full /System/Library/Extensions) - yes, box will > reboot before kernel turnover Can you give more info about it > > # ^^if ramdisk is invalid, like FBSD, will attempt NFSMOUNT (to > nowhere) - else, tries /sbin/launchd > } > > Thanks > -joey > > Vladimir Serbinenko writes: > > << HTML content follows >> >> New improved version. Numerous bugfixes. Thanks to Florian Idelberger for >> the time he spent on testing and to David Miller for pointing a nasty >> mistake out. Also I added fsb autodetection for intel cpus (thanks to Kabyl >> for the information about Intel speedstep) but I tested fsb autodetect only >> on my own laptop so it may or may not work in general. Parameter fsb= is >> still present and overrides autodetect >> >> >> > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > --000e0cd1eb70dc9575046847f026 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Your FSB wasn't detected correctly (or rather not detected at all, what= 's your CPU?). The actual bug is that if fsb frequency is too low the k= ernel will crash when trying to use 64-bit mode (you can use -legacy parame= ter to put xnu in 32-bit mode). You need to specify fsb with a variable. Ca= n you come to irc.freenode.net#gru= b ?
(e.g. for 200Mhz: set fsb=3D200).

On Fri,= Apr 24, 2009 at 2:41 AM, Joey Korkames <joey+lists@kidfixit.com> wrot= e:
This patch did no= t work as well as the last one posted (on my test machine). The last one go= t all the way to trying to run /sbin/launchd off the ramdisk - log post of = this one's boot attempt are attached.

Oh, here is my updated menuentry, works well and gives me serial output of = the darwin kernel (as well as on the VGA monitor):


menuentry "PureDarwin 9 (phcoder efiemu)" {
=A0 =A0 =A0 echo "Switching to VESA and booting Darwin (slow)... &quo= t;
=A0 =A0 =A0 #bootloader must tickle VESA before xnu can use it

=A0 =A0 =A0 loadfont /osstore/STAGE1a/grub2/unifont.pf2
=A0 =A0 =A0 set gfxmode=3D"800x600x32"
=A0 =A0 =A0 set vbe_mode=3D0x115
=A0 =A0 =A0 terminal_output gfxterm
=A0 =A0 =A0 echo "VESA enabled. Booting Darwin (slow)... "

=A0 =A0 =A0 #efiemu_loadcore /osstore/STAGE1a/grub2/efiemu64.o

=A0 =A0 =A0 efiemu_loadcore /osstore/STAGE1a/grub2/efiemu32.o
=A0 =A0 =A0 efiemu_pnvram
=A0 =A0 =A0 efiemu_prepare
=A0 =A0 =A0 =A0 xnu_kernel /osstore/STAGE2/DARWIN/live/mach_kernel -s -f = debug=3D0x08 serial=3D2 serialbaud=3D9600 rd=3Dmd0
<= /blockquote>
-f parameter isn't actually used. Use xnu_kextdir if y= ou don't want to use=A0 mkext

=A0 =A0 =A0 xnu_mkext /osstore/STAGE2/DARWIN/live/System/Library/Extension= s.mkext
=A0 =A0 =A0 xnu_ramdisk /osstore/STAGE2/DARWIN/ramdisk.hfs
# =A0 =A0 =A0 ^^30MB too big? (full /System/Library/Extensions) - yes, box = will reboot before kernel turnover
Can you give more info = about it

}

Thanks
-joey

Vladimir Serbinenko writes:

<< HTML content follows >>

New improved version. Numerous bugfixes. Thanks to Florian Idelberger for t= he time he spent on testing and to David Miller for pointing a nasty mistak= e out. Also I added fsb autodetection for intel cpus (thanks to Kabyl for t= he information about Intel speedstep) but I tested fsb autodetect only on m= y own laptop so it may or may not work in general. Parameter fsb=3D is stil= l present and overrides autodetect




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


--000e0cd1eb70dc9575046847f026--