Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MPAIg-0000LY-Ci for mharc-grub-devel@gnu.org; Fri, 10 Jul 2009 03:13:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPAIe-0000KS-OF for grub-devel@gnu.org; Fri, 10 Jul 2009 03:13:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPAIa-0000IM-8Y for grub-devel@gnu.org; Fri, 10 Jul 2009 03:13:40 -0400 Received: from [199.232.76.173] (port=60384 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPAIa-0000IJ-3O for grub-devel@gnu.org; Fri, 10 Jul 2009 03:13:36 -0400 Received: from mx20.gnu.org ([199.232.41.8]:1221) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MPAIZ-0004Fv-Hv for grub-devel@gnu.org; Fri, 10 Jul 2009 03:13:35 -0400 Received: from mail-pz0-f197.google.com ([209.85.222.197]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPAIX-000829-K6 for grub-devel@gnu.org; Fri, 10 Jul 2009 03:13:33 -0400 Received: by pzk35 with SMTP id 35so491846pzk.14 for ; Fri, 10 Jul 2009 00:13:32 -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 :content-transfer-encoding; bh=XFVLPcHFbWGuRI5FamECBoBqVDDa1pMnFlyDhLrFW2s=; b=XlhOMp6TkBKSxcDk4K4wfHzrnqfnmOts1P2Cnd4toyGHLsFD2eQRJVRVl12WFyGogF hYAlMJG4vh5hJn6bTYQBZRS2FlMJ+agL9bgPHeViQS5ru9rN6G1ldwAduixGdovIG641 jUB9WHiThL91u12xAJe4Ocu/M8OOHO8T8AdE8= 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:content-transfer-encoding; b=dS8LAOPzGa/M1cyUE025qF59NjQGi0HaWpRuxOwSFSmadiuc0mhavmF44aYIFsQthJ pQ58WdfrDR2dlaiNQCPdgbrfoitGX0wJ89qMe5qU7cjrmC99gzZrkmqfKJU9ToaqJEgs jaRIAveHtDAvpXblV6zHyf5J7X3f204maUz8M= MIME-Version: 1.0 Received: by 10.114.145.17 with SMTP id s17mr2696138wad.120.1247210011694; Fri, 10 Jul 2009 00:13:31 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Jul 2009 15:13:31 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Detected-Operating-System: 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: GRUB 1.96 - unknown commands 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, 10 Jul 2009 07:13:41 -0000 Hi, You need to add module sh, minicmd and linux. On Fri, Jul 10, 2009 at 2:40 PM, Chris Smart wro= te: > Hi all, > > I'm trying to get GRUB2 to boot on an EFI system (Apple Mac) using > grub.efi and rEFIt as the boot manager. > > I have checked GRUB out of svn and built it with the following > commands (on a 32bit Linux operating system): > > ./configure --with-platform=3Defi > make > ./grub-mkimage -d . -o grub.efi gpt hfsplus fat ext2 normal chain boot > configfile > sudo cp grub.efi *.mod fs.lst command.lst /efi/grub/ > > Upon a reboot, rEFIt detects the grub.efi and presents the option to boot= it. > > Without a grub.cfg configuration file, it boots straight to a GRUB > 1.96 shell which looks good. There I have the help command and I can > see all the modules I copied across. > > I can also boot the kernel and initrd that I want by manually typing > in the "linux", "initrd", and "boot" commands. Nice. > > When I boot it with a config file however, it cannot parse the > grub.cfg file and spits out errors about unknown commands. > I am assuming that I have left out a module or something, but for the > life of me I can't work out what I've done wrong! > > Here is the simple grub.cfg that I am using: > > set timeout=3D10 > set default=3D0 > menuentry "Linux" { > =A0linux /efi/grub/vmlinuz > =A0initrd /efi/grub/initrd > } > > > Here is what happens: > > Boot PC to rEFIt > Select grub.efi boot option > Computer says "Starting grub.efi" > Computer goes to GRUB 1.96 shell > > GRUB spits out errors: > Unknown command 'menuentry' > Unknown command '}' > Unknown command 'linux' > Unknown command 'initrd' > ..and so on. > > Once that happens, none of the commands work, even though I'm at the > prompt. It's like the config has broken everything. > > Any ideas? > > I have seen this post on the mailing list, but it doesn't seem to > match my issue. > "http://lists.gnu.org/archive/html/grub-devel/2009-03/msg00389.html" > > Thanks! > Chris > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Bean