From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1V1fvM-0003Ns-SU for mharc-grub-devel@gnu.org; Tue, 23 Jul 2013 12:58:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1fvJ-0003M3-Hq for grub-devel@gnu.org; Tue, 23 Jul 2013 12:58:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1fvH-0003Xn-Ko for grub-devel@gnu.org; Tue, 23 Jul 2013 12:58:53 -0400 Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:61081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1fvH-0003Xc-7k for grub-devel@gnu.org; Tue, 23 Jul 2013 12:58:51 -0400 Received: by mail-lb0-f182.google.com with SMTP id r11so6585712lbv.27 for ; Tue, 23 Jul 2013 09:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=9TX4zG+XpUL471wBHwXDl5204dJR2cbO/6sCm0wvc9o=; b=VYK9htgAFHqzAw6Dtfj8FScFr3r1A1v2TdNtN2++pukEMWW/2+e8IPAispVi2T78PN e5dlmrgnQMNgtYaThLVUmes5UPe35bc1yKKiPzkGZ/B/vl6+4EdOJuE11RcpBMX238y6 j70m9uu4UdCqEW0kLsUd+A9xLSytHHFF4A+E0W83Kv7R4pG+H8DtIY1GI0Kb9ARHrz1c tM1m0lJNyjeAzpv15BxYQpJff+6f4Kl9O8UOv23jAv0nrP+fmBWtmHAk5xtIT2zLO5vV ZyY9TURPES/8uXPQZdyGQxBV2p0IM1VrMIILa/qnGuKk+5W3nuUxwOYdvznC5il0Iq6q a/5w== X-Received: by 10.112.61.199 with SMTP id s7mr14753572lbr.53.1374598730030; Tue, 23 Jul 2013 09:58:50 -0700 (PDT) Received: from opensuse.site (ppp79-139-160-84.pppoe.spdop.ru. [79.139.160.84]) by mx.google.com with ESMTPSA id p17sm13094220lbv.11.2013.07.23.09.58.49 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 23 Jul 2013 09:58:49 -0700 (PDT) Date: Tue, 23 Jul 2013 20:58:48 +0400 From: Andrey Borzenkov To: The development of GNU GRUB Subject: Re: How to make/compile and link Open Source gnu-2.00 package? Message-ID: <20130723205848.228fcdab@opensuse.site> In-Reply-To: <67BFA875989E5748A862DFF55409F2A21B0D42E2@IRSMSX104.ger.corp.intel.com> References: <67BFA875989E5748A862DFF55409F2A21B0CC310@IRSMSX104.ger.corp.intel.com> <67BFA875989E5748A862DFF55409F2A21B0D42E2@IRSMSX104.ger.corp.intel.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::236 Cc: zoran.stojsavljevic@intel.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 16:58:55 -0000 В Tue, 23 Jul 2013 14:15:49 +0000 "Stojsavljevic, Zoran" пишет: > Hello to GRUB community, > > I continued to explore and read the documentations, and so far I was not able to boot from my GRUB made and install from original GRUB package. > > I had all tools installed in /usr/local/sbin (all relevant tools), and then executed the following command: > grub-install --boot-directory=/media/rootfs/boot --directory=/usr/local/lib/grub/i386-coreboot target=x86_64 > --directory and --target are mutually exclusive and normally none is needed - grub-install will autodetect current platform. Only if you want to install GRUB for platform different from current (e.g. install GRUB for EFI while running in legacy BIOS mode). --target means use modules from standard system-wide location and is normally used after grub is installed. --directory overrides module location and is usually used before installation. > It installed for me everything on the target HDD (mounted on /media/rootfs), in the directory /media/rootfs/boot/grub/i386-coreboot (I found there file core.elf, size 105K). > > But I also used the following command from the same /usb/local/sbin: > grub-mkimage --directory=/usr/local/lib/grub/i386-coreboot -o /media/rootfs/boot/grub/core.img -O i386-coreboot > > And this command built for me core.img in /media/rootfs/boot/grub of size 27K. > > It seems that these two files are identical, grub-install detects which drivers are needed to access --boot-directory and adds them to core.img. When using grub-mkimage directly it is up to you to specify correct drivers. > till the end of file, where core.img has directory in ascii: /boot/grub > > I try to embed both files consecutively in coreboot as payload, in sincere hope to boot to MBR and get the grub> prompt. > > But I did not succeed, and my IVB platform stopped at Post Code 0x00F8 (PEI_RECOVERY_PPI_NOT_FOUND) instead stopping to (0x00A3) DXE IDE Detect. > Can't help you here, sorry. > Any clue what I am doing wrong? > > Thank you, > Zoran > _______ > Most of The Time you should be "intel inside" to be capable to think "out of the box". > > From: Stojsavljevic, Zoran > Sent: Thursday, July 18, 2013 3:48 PM > To: grub-devel@gnu.org > Subject: How to make/compile and link Open Source gnu-2.00 package? > > Hello, > > I would like to set/configure Open Source gnu-2.00 package (or later) in order to be able to support the following configuration on my target HDD: > > Directory /boot: > [zorans@localhost boot]$ ls -al > total 84580 > drwxr-xr-x. 3 root root 4096 Jul 12 14:27 . > drwxr-xr-x. 22 root root 4096 Jul 17 15:41 .. > -rw-------. 1 root root 512 Feb 6 2012 backup_mbr > lrwxrwxrwx. 1 root root 1 Feb 6 2012 boot -> . > -rw-r--r--. 1 root root 1236 May 10 2010 boot.readme > -rw-r--r--. 1 root root 107874 May 20 2010 config-2.6.32.12-0.7-default > drwxr-xr-x. 2 root root 4096 Mar 27 15:26 grub > lrwxrwxrwx. 1 root root 28 Feb 6 2012 initrd -> initrd-2.6.32.12-0.7-default > -rw-r--r--. 1 root root 6514736 Feb 6 2012 initrd-2.6.32.12-0.7-default -rw-r--r--. 1 root root 6667077 Mar 25 23:14 initrd-3.0.13default2 -rw-------. 1 root root 22243322 Mar 27 14:17 initrd-3.4.37-0.27-default -rw-------. 1 root root 22539906 Mar 27 15:17 initrd-3.8.4-0.27-default > -rw-r--r--. 1 root root 435712 Feb 6 2012 message > -rw-r--r--. 1 root root 189729 May 20 2010 symsets-2.6.32.12-0.7-default.tar.gz > -rw-r--r--. 1 root root 495291 May 20 2010 symtypes-2.6.32.12-0.7-default.gz > -rw-r--r--. 1 root root 178468 May 20 2010 symvers-2.6.32.12-0.7-default.gz > -rw-r--r--. 1 root root 1651761 May 20 2010 System.map-2.6.32.12-0.7-default -rw-r--r--. 1 root root 2332527 Mar 25 23:14 System.map-3.0.13default2 -rw-r--r--. 1 root root 2041118 Mar 27 14:17 System.map-3.4.37-0.27-default -rw-r--r--. 1 root root 2133832 Mar 27 15:17 System.map-3.8.4-0.27-default -rw-r--r--. 1 root root 3774506 May 20 2010 vmlinux-2.6.32.12-0.7-default.gz > lrwxrwxrwx. 1 root root 29 Feb 6 2012 vmlinuz -> vmlinuz-2.6.32.12-0.7-default > -rw-r--r--. 1 root root 3231872 May 20 2010 vmlinuz-2.6.32.12-0.7-default -rw-r--r--. 1 root root 4779280 Mar 25 23:14 vmlinuz-3.0.13default2 -rw-r--r--. 1 root root 3454320 Mar 27 14:17 vmlinuz-3.4.37-0.27-default -rw-r--r--. 1 root root 3635840 Mar 27 15:17 vmlinuz-3.8.4-0.27-default > > I would like to have in /boot/grub/ the following (similar) directory on my target HDD as result of the grub-install command (in /usr/local/sbin on my development system): > > drwxr-xr-x. 2 root root 4096 Mar 27 15:26 . > drwxr-xr-x. 3 root root 4096 Jul 12 14:27 .. > -rw-------. 1 root root 10 Feb 6 2012 default > -rw-------. 1 root root 47 Feb 6 2012 device.map > -rw-r--r--. 1 root root 46 Feb 6 2012 device.map.old > -rw-r--r--. 1 root root 8576 May 11 2010 e2fs_stage1_5 > -rw-r--r--. 1 root root 7840 May 11 2010 fat_stage1_5 > -rw-r--r--. 1 root root 7104 May 11 2010 ffs_stage1_5 > -rw-r--r--. 1 root root 7104 May 11 2010 iso9660_stage1_5 > -rw-r--r--. 1 root root 8576 May 11 2010 jfs_stage1_5 > -rw-------. 1 root root 1701 Mar 27 15:26 menu.lst > -rw-------. 1 root root 1694 Feb 6 2012 menu.lst.old > -rw-r--r--. 1 root root 7264 May 11 2010 minix_stage1_5 > -rw-r--r--. 1 root root 9600 May 11 2010 reiserfs_stage1_5 > -rw-r--r--. 1 root root 512 May 11 2010 stage1 > -rw-r--r--. 1 root root 101962 Feb 6 2012 stage2 > -rw-r--r--. 1 root root 7456 May 11 2010 ufs2_stage1_5 > -rw-r--r--. 1 root root 6656 May 11 2010 vstafs_stage1_5 > -rw-r--r--. 1 root root 9288 May 11 2010 xfs_stage1_5 > > And would be able to jump from Coreboot to start executing stage1 (MBR)? > > Actually, I don't mind having *.elf which will somehow jump to /boot/grub (?) from Coreboot to see in the /boot all these kernels? > > Any GRUB BKM web page for that? > > Thank you, > Zoran > _______ > Most of The Time you should be "intel inside" to be capable to think "out of the box". > > Intel GmbH > Dornacher Strasse 1 > 85622 Feldkirchen/Muenchen, Deutschland > Sitz der Gesellschaft: Feldkirchen bei Muenchen > Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk > Registergericht: Muenchen HRB 47456 > Ust.-IdNr./VAT Registration No.: DE129385895 > Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052