From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QRlQe-0007xh-LK for mharc-grub-devel@gnu.org; Wed, 01 Jun 2011 09:25:44 -0400 Received: from eggs.gnu.org ([140.186.70.92]:40793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRlQa-0007wr-SA for grub-devel@gnu.org; Wed, 01 Jun 2011 09:25:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRlQY-0006yh-DK for grub-devel@gnu.org; Wed, 01 Jun 2011 09:25:40 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:51876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRlQY-0006yT-3p for grub-devel@gnu.org; Wed, 01 Jun 2011 09:25:38 -0400 Received: by vws4 with SMTP id 4so5402817vws.0 for ; Wed, 01 Jun 2011 06:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=hwrYYga4YFdkH1j3wVC2Q45NVS3BDVaptAQZ3JDITys=; b=cC51lC2M1pl12/IR02qSacUvC0ucdLsfEQFDU+PachdzTlinlYUwDOR+gBIFVfar+y OicakSSXztfZUwNfhbcRQhNtLt2ozJkRUZezfi8quSKi8kxkFNE8y8tWCTMnZrFHjFCd h/aKdYBTs+TA2AoFEG/i/aLEyExBmcNV5sS3o= 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:x-enigmail-version:content-type; b=U/rQMqgX5c99vZBuCrzrt3A8IJvSvgL4nZxmp5GZM16dRAJymflf+lTsg9VquUqJTm 0woR4GGcYJaE2Z+/zzu0dnCPDV6b7NcKG0QykhzTa63P3Ocr2578uqRE2Sq+/tSClVRu 48M4EugomGaVr60g0cexkkqxEUryHxlnoScgA= Received: by 10.220.62.76 with SMTP id w12mr2769665vch.35.1306934737139; Wed, 01 Jun 2011 06:25:37 -0700 (PDT) Received: from debian.x201.phnet (c-68-50-4-42.hsd1.dc.comcast.net [68.50.4.42]) by mx.google.com with ESMTPS id gi16sm163344vcb.1.2011.06.01.06.25.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 06:25:36 -0700 (PDT) Message-ID: <4DE63DCF.9020303@gmail.com> Date: Wed, 01 Jun 2011 09:25:35 -0400 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Iceowl/1.0b2 Icedove/3.1.9 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Fwd: Re: [coreboot] About =?UTF-8?B?Z3J1Yi5jZmfigJTigJRCdWls?= =?UTF-8?B?ZGluZyBjb3JlYm9vdCB3aXRoIGdydWIyIHBheWxvYWQ=?= References: <4DE5EF7D.5080503@viatech.com.cn> In-Reply-To: <4DE5EF7D.5080503@viatech.com.cn> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig7F4F46703876E061D29CEF79" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 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: Wed, 01 Jun 2011 13:25:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7F4F46703876E061D29CEF79 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01.06.2011 03:51, Rock Cui wrote: > Thank you for your help, I have changed my operation, but my coreboot > > still step to grub. > > /************************************* LOG > *********************************************************/ > Check fallback/payload > Got a payload > Loading segment from rom address 0xfff29ff8 > data (compression=3D1) > New segment dstaddr 0x8200 memsize 0xd8b8 srcaddr 0xfff2a04c filesize= > 0x3a69 > (cleaned up) New segment addr 0x8200 size 0xd8b8 offset 0xfff2a04c > filesize 0x3a69 > Loading segment from rom address 0xfff2a014 > data (compression=3D1) > New segment dstaddr 0x15ab8 memsize 0x69914 srcaddr 0xfff2dab5 > filesize 0x1d0c0 > (cleaned up) New segment addr 0x15ab8 size 0x69914 offset 0xfff2dab5 > filesize 0x1d0c0 > Loading segment from rom address 0xfff2a030 > Entry Point 0x00008200 > Loading Segment: addr: 0x0000000000008200 memsz: 0x000000000000d8b8 > filesz: 0x0000000000003a69 > lb: [0x0000000000100000, 0x0000000000164000) > Post relocation: addr: 0x0000000000008200 memsz: 0x000000000000d8b8 > filesz: 0x0000000000003a69 > using LZMA > [ 0x00008200, 0000e51b, 0x00015ab8)<- fff2a04c > Clearing Segment: addr: 0x000000000000e51b memsz: 0x000000000000759d > dest 00008200, end 00015ab8, bouncebuffer 7fe28000 > Loading Segment: addr: 0x0000000000015ab8 memsz: 0x0000000000069914 > filesz: 0x000000000001d0c0 > lb: [0x0000000000100000, 0x0000000000164000) > Post relocation: addr: 0x0000000000015ab8 memsz: 0x0000000000069914 > filesz: 0x000000000001d0c0 > using LZMA > [ 0x00015ab8, 0007f3cc, 0x0007f3cc)<- fff2dab5 > dest 00015ab8, end 0007f3cc, bouncebuffer 7fe28000 > Loaded segments > Jumping to boot code at 8200 > entry =3D 0x00008200 > lb_start =3D 0x00100000 > lb_size =3D 0x00064000 > adjust =3D 0x7fd8c000 > buffer =3D 0x7fe28000 > elf_boot_notes =3D 0x0011622c > adjusted_boot_notes =3D 0x7fea222c > > /**********************************************************************= ******************************/ > > I have added "grub_printf("Enter grub_main()!\n")" in the top of > grub_main()(defined in grub-core/kern/main.c). Unfortunately, nothing > can be printed out when booting. I don't know it is stopped before grub= > C code or I don't open some grub2 option which close the standard outpu= t > mode. This is guaranteed not to work. You try printing before console is inited= =2E > >> 2011/5/31 Cui Lei: >>> I am working hard at building coreboot with grub2 payload. Now I >>> can build >>> a grub2 payload as follow: >>> 1: Download the lastest grub2 source code. >>> 2: ./autogen.sh >>> ./configure --with-platform=3Dcoreboot >>> make >>> 3: Use grub-mkimage to generate a "payload.elf", detail: >>> ./grub-mkimage -d . -O i386-coreboot -o >>> ../coreboot-v4/payload.elf >>> --prefix=3D'/boot/grub2' >>> memdisk cpio -m ../memdisk.tar >>> >>> Accoding the coreboot >>> website(http://www.coreboot.org/Talk:GRUB2), >>> memdisk is a virtual disk >>> in grub image and it is suggested that grub.cfg is contained in= a >>> memdisk image. So I made >>> folders boot/grub2 in my work folder and add a new grub.cfg >>> and some >>> modules(such as >>> memdisk.mod cpio.mod ...) into the boot/grub2, then tar >>> boot/grub2 to >>> memdisk.tar(according >>> to the website tar can be used to build a memdisk image). >>> >>> Problems: >>> 1: I don't know wether grub2 can found my grub.cfg ,if I set "= >>> --prefix=3D'/boot/grub2' " ? >>> On the coreboot website,a sample is=20 >>> --prefix=3D'(ata0)/boot/grub2'. I >>> think the ata0 is hard disk. >>> but I use the memdisk image, what should I do ? >>> >> I use this to create a custom grub2 efi app with memdisk embedded - >> >> /bin/grub-mkimage --directory=3D/usr/lib/grub/x86_64-efi >> --memdisk=3D"${memdisk_64_img}" --prefix=3D'(memdisk)/efi/grub2' >> --format=3Dx86_64-efi --compression=3Dxz >> --output=3D"${grub2_efi_mp}/efi/boot/bootx64.efi" ${GRUB2_MODULES} >> >> Hope this helps. >> >>> 2: I want my grub.cfg in memdisk to load the grub.cfg from my >>> hard disk. >>> Because I have install the >>> ubuntu11.04 on my hard disk, a grub.cfg file should be in t= he >>> /boot/grub. So my grub.cfg just like >>> this: >>> search -f -s /boot/grub/grub.cfg >>> configfile /boot/grub/grub.cfg >>> >>> Is this practicable? >>> >> Make it >> >> search --file --no-floppy --set=3Droot /boot/grub/grub.cfg >> configfile (${root})/boot/grub/grub.cfg >> >>> 3: I want the gurb can boot into the grub-shell, how to ? >>> >> I can't understand the question. You want grub to boot into >> grub-shell? Don't create a ${prefix}/grub.cfg file. >> >>> BRs, >>> >>> Rock.C >>> >> Regards. >> >> Keshav >> > > > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig7F4F46703876E061D29CEF79 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk3mPc8ACgkQNak7dOguQgkuHgD/RIXbaWNGxYH92QJplBtNs9vH AaWEaxiYkGCQNntIK10A/3B9CrPj+eEnuUWLzeU6WheBLPZiDtOd5VLlodlRv1sx =GdT5 -----END PGP SIGNATURE----- --------------enig7F4F46703876E061D29CEF79--