Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KAlYM-00034w-5c for mharc-grub-devel@gnu.org; Mon, 23 Jun 2008 08:53:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAlYK-00033F-1m for grub-devel@gnu.org; Mon, 23 Jun 2008 08:53:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAlYJ-00032u-J1 for grub-devel@gnu.org; Mon, 23 Jun 2008 08:53:47 -0400 Received: from [199.232.76.173] (port=55589 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAlYJ-00032r-DJ for grub-devel@gnu.org; Mon, 23 Jun 2008 08:53:47 -0400 Received: from po-out-1718.google.com ([72.14.252.159]:42770) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAlYI-00024K-Q1 for grub-devel@gnu.org; Mon, 23 Jun 2008 08:53:47 -0400 Received: by po-out-1718.google.com with SMTP id c31so16219383poi.1 for ; Mon, 23 Jun 2008 05:53:43 -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:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=qSz311GZdhNXOYnUAMB5g5TzpI6mZ/gTt29mFKGGjF0=; b=kx2kx0JJF/RRVSCkBHgwVDd1F+/bieJdOYtaqSR9hwWBeoBviDgBkH6j4JuzxwS/yo Gn7uuywduclJxw4ABvIcsFarb19vWYR1KAltRWOj+VziFWBIzOaNiaXXzTfKHkFG4Ttd j5sKCAxRvkjYFHw6dBrGHVUKOypnmV/DEDBDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=f2XLB7v6i+9+jfAfljkNuYfokTqnjyOW1HpwDXtl+zJy+7GMah5a8w9joVs5me5y8h KBJ0pYN201Ibjl8j1QC47pDvTxlbWAnxXZf8279QJI3k87qEzOg7eU8ZPmMv651K7LtX wIaIGZJM8InrJar/lyVGz7YYh/jNfvbOlqAdU= Received: by 10.141.15.19 with SMTP id s19mr12720605rvi.39.1214225623516; Mon, 23 Jun 2008 05:53:43 -0700 (PDT) Received: by 10.141.66.21 with HTTP; Mon, 23 Jun 2008 05:53:43 -0700 (PDT) Message-ID: Date: Mon, 23 Jun 2008 20:53:43 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <485F9002.2000704@isaac.cedarswampstudios.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <485F9002.2000704@isaac.cedarswampstudios.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] New x86_64 EFI patch 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, 23 Jun 2008 12:53:48 -0000 On Mon, Jun 23, 2008 at 7:58 PM, Isaac Dupree wrote: > Bean wrote: >> >> On Sat, Jun 21, 2008 at 1:04 AM, Bean wrote: >>> >>> Hi, >>> >>> This new patch add the following function to the original x86_64 EFI >>> patch: >>> >>> 1, Fix menu drawing problem >>> It maps the unicode char to EFI char so that the rectangle box is >>> showed properly >>> >>> 2, Handle command line option for chainloader command >>> >>> 3, Add new command appleloader >>> The command is used to enable bios boot in apple's bootcamp, for example >>> >>> boot from legacy mbr: >>> appleloader HD >>> boot >>> >>> boot from legacy cd: >>> appleloader CD >>> boot >>> >>> boot from usb: >>> appleloader USB >>> boot >>> >>> The usb booting may not work in some machine. > > I'm not so sure about that syntax. Is there really only one way to boot > from HD or USB? (for example I've been storing pc-GRUB2 in fat16 header on > third partition, not mbr, and rEFIt finds it there). How does Windows do it > (can we boot Windows using this)? (even though Apple made BootCamp for > windows, I don't want to find out personally.) I guess you're stuck with > some limitations of the apple bios software? Also , "appleloader CD" makes > me think it should be used even for Mac OS X boot-CD's, which I doubt it > should? Yes, this is the only way to boot from legacy HD/CD. Refit is using the same method, but it also writes an embedded syslinux mbr to the disk, and mark the partition as active, this is how it boots from different partition. >> Hi, >> >> I also fix a few problem in the linux loader, now it can load both 686 >> and x86_64 kernel from 64-bit EFI firmware. > > do you mean linux successfully booting, or hanging as before? It can boot both x86_64 and 686 kernel from 64-bit EFI firmware, while previously it can only boot x86_64. > >> Would someone test it in 32-bit EFI ? > > I get an error during `make`, after (from a clean tree) > cvs up; patch -p1 -l < ~/../downloads/efi_5.diff; > ./configure --with-platform=efi; make > > cat kernel_syms.lst def-normal.lst def-_chain.lst def-chain.lst > def-_linux.lst def-linux.lst def-cpuid.lst def-halt.lst def-reboot.lst > def-fshelp.lst def-fat.lst def-ufs.lst def-ext2.lst def-ntfs.lst > def-ntfscomp.lst def-minix.lst def-hfs.lst def-jfs.lst def-iso9660.lst > def-xfs.lst def-affs.lst def-sfs.lst def-hfsplus.lst def-reiserfs.lst > def-cpio.lst def-udf.lst def-afs.lst def-amiga.lst def-apple.lst def-pc.lst > def-sun.lst def-acorn.lst def-gpt.lst def-raid.lst def-lvm.lst def-hello.lst > def-boot.lst def-terminal.lst def-ls.lst def-cmp.lst def-cat.lst > def-echo.lst def-help.lst def-font.lst def-search.lst def-test.lst > def-loopback.lst def-configfile.lst def-terminfo.lst def-blocklist.lst > def-hexdump.lst def-elf.lst def-gzio.lst def-read.lst def-sleep.lst > /dev/null \ > | mawk -f ./genmoddep.awk und-kernel.lst und-normal.lst > und-_chain.lst und-chain.lst und-_linux.lst und-linux.lst und-cpuid.lst > und-halt.lst und-reboot.lst und-fshelp.lst und-fat.lst und-ufs.lst > und-ext2.lst und-ntfs.lst und-ntfscomp.lst und-minix.lst und-hfs.lst > und-jfs.lst und-iso9660.lst und-xfs.lst und-affs.lst und-sfs.lst > und-hfsplus.lst und-reiserfs.lst und-cpio.lst und-udf.lst und-afs.lst > und-amiga.lst und-apple.lst und-pc.lst und-sun.lst und-acorn.lst und-gpt.lst > und-raid.lst und-lvm.lst und-hello.lst und-boot.lst und-terminal.lst > und-ls.lst und-cmp.lst und-cat.lst und-echo.lst und-help.lst und-font.lst > und-search.lst und-test.lst und-loopback.lst und-configfile.lst > und-terminfo.lst und-blocklist.lst und-hexdump.lst und-elf.lst und-gzio.lst > und-read.lst und-sleep.lst > moddep.lst \ > || (rm -f moddep.lst; exit 1) > grub_pci_make_address in _linux is not defined > make: *** [moddep.lst] Error 1 You should also run ./autogen.sh to update the mk files. Also, I have uploaded an binary version at: http://grub4dos.sourceforge.net/grub2/grub.efi.1 You can use it if you still can't compile it successfully. -- Bean