From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LtILQ-0001Zv-Qo for mharc-grub-devel@gnu.org; Mon, 13 Apr 2009 05:20:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtILN-0001ZN-TF for grub-devel@gnu.org; Mon, 13 Apr 2009 05:20:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtILI-0001Xo-Ud for grub-devel@gnu.org; Mon, 13 Apr 2009 05:20:45 -0400 Received: from [199.232.76.173] (port=41194 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtILI-0001Xe-OU for grub-devel@gnu.org; Mon, 13 Apr 2009 05:20:40 -0400 Received: from mail-fx0-f166.google.com ([209.85.220.166]:56005) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LtILI-0007Wl-7A for grub-devel@gnu.org; Mon, 13 Apr 2009 05:20:40 -0400 Received: by fxm10 with SMTP id 10so2123250fxm.42 for ; Mon, 13 Apr 2009 02:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Y6HhlBnQisesTfz1+6iMIbyU5oFsDw40dIRkLdYGRco=; b=ffetD0BkDKgKM4WZh8k8EllVyFpaTecnTCNv6netYwm0UrT/4z+jg3lsrSuy7I4YVa J/w58BSVKB4WvA7mffQVr+ttoweQLCCQqeixnZpkvvhVa66QXFJD9J++quUZTgWf8ujT GHN+xnRuse91LP9buojRxJvqu9+rE92CAYzLA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=tfEStfJj9wc3FcLeEKHhkh6H0Ca22HWdEa98ybeTqv8QdKVJFRZRztSGerfDiAl6+I KTOB2nVcmxd5zJE18LFD6xbYCFjBqtSCNRFl2nWkm1impvKFJMz1z4JjB7oFTk+XfdNG Eea7/bPNnOEAfRj+g+LNJdix/EvEBCIMRJ+Dc= Received: by 10.86.65.9 with SMTP id n9mr775957fga.47.1239614439092; Mon, 13 Apr 2009 02:20:39 -0700 (PDT) Received: from ?192.168.1.25? (116-145.62-81.cust.bluewin.ch [81.62.145.116]) by mx.google.com with ESMTPS id d6sm6074761fga.7.2009.04.13.02.20.38 (version=SSLv3 cipher=RC4-MD5); Mon, 13 Apr 2009 02:20:38 -0700 (PDT) Message-ID: <49E303EB.9060005@gmail.com> Date: Mon, 13 Apr 2009 11:20:43 +0200 From: phcoder User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: The development of GRUB 2 References: <49E29515.1090804@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] FreeBSD 64-bit kernel support 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: Mon, 13 Apr 2009 09:20:46 -0000 Joey Korkames wrote: > Hmm, FreeBSD seems to choke when trying to load the grub-bootstrapped > mfsroot.gz (as the root device - haven't tried loading without rooting > from it)... Thank you for the testing. Can you define "choke" more exactly? > > This is a custom mfsroot, booted like so: > menuentry "FreeBSD 7.1-STABLE amd64" { > freebsd /osstore/STAGE2/FREEBSD/amd64/kernel.gz Dh > freebsd_loadenv /osstore/STAGE2/FREEBSD/amd64/device.hints > freebsd_module /osstore/STAGE2/FREEBSD/amd64/mfsroot.gz type=mfs_root > set FreeBSD.vfs.root.mountfrom=ufs:/dev/md0 > } > > perhaps I'll try with the Sysinstall floppy's mfsroot - it might be a > little smaller. > > PS. A correction for that last patch: > -MOSTLYCLEANFILES += bsd_mod-loader_i386_bsd.d bsd_mod-loader_i386_bsd.d > +MOSTLYCLEANFILES += bsd_mod-loader_i386_bsd.d > bsd_mod-loader_i386_bsd_helper.d > Just run commands I gave you. You also need ruby to regenerate all these autogenerated files. > Thanks > joey > > Joey Korkames writes: > >> Figured it out, >> s/multiboot_mod-loader_i386_multiboot_helper/bsd_mod-loader_i386_bsd_helper/ >> and bingo! >> >> Worked ion both Xen HVM and on a real amd64 box (over PXE) >> >> Yay GRUB2 and its devs! >> -joey >> >> Joey Korkames writes: >> >>> I can't make grub2 build with phcoder's bsd64.diff. My guess it is >>> beacuse conf/i386.mk is missing stuff related to >>> loader/i386/bsd_helper.S $(loader/i386/bsd_helper.S_DEPENDENCIES)?, >>> but I wouldn't how or where to add it in. >>> >>> >>> phcoder writes: >>> >>>> Bean kindly allowed me to mess with this patch. So here comes an >>>> improved version. I moved helpers out of the kernels. Because of how >>>> FreeBSD expects the initial virtual memory mapping only first GB of >>>> physical memory is accessible so it was required to use of >>>> trampoline technique. >> > > ------------------------------------------------------------------------ > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel -- Regards Vladimir 'phcoder' Serbinenko