From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OoZfc-0002TT-Az for mharc-grub-devel@gnu.org; Thu, 26 Aug 2010 06:26:56 -0400 Received: from [140.186.70.92] (port=60512 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoZfX-0002Ri-UA for grub-devel@gnu.org; Thu, 26 Aug 2010 06:26:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoZfW-0007Qs-EE for grub-devel@gnu.org; Thu, 26 Aug 2010 06:26:51 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:36567) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoZfW-0007Qg-2B for grub-devel@gnu.org; Thu, 26 Aug 2010 06:26:50 -0400 Received: by bwz6 with SMTP id 6so1249546bwz.0 for ; Thu, 26 Aug 2010 03:26:49 -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 :x-enigmail-version:content-type; bh=lb+zvBgYRBL2610vDsi8up4+7/Gc91/UBbJGqOe0psM=; b=B1CdxJkp27pu+6Zgs9aHouLDj5J2vkKeN5ikCJTfWMb3gvgXtrcYZSr2yyPC95ataR jIFx9je37bIK6+ophzxlpx5sazEoMqxhDQv6PYiU3M5IwoJyEh6bb2+UdkUqktT7gRWl CU9SEnf84KS0lwlONYiohlG4rOnLKFZ4xkkoM= 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=bfmLsJirTsG1ka9xUO6H0I7lO6cLZZzVnu0h7LA75V2cMNAdl4mD/L+gDU8x4mxGvd RVx+PTTmNV3Nt1c60hondoqYA2XIPVbQC8RNAcMc8GCRd+WNVHv/X4HaO1Y/ZDxhm0nz nA9pGDZ1XFK4oo2Pbp8qBXBbdi3HUqDwJNVOE= Received: by 10.204.46.73 with SMTP id i9mr6146182bkf.156.1282818408445; Thu, 26 Aug 2010 03:26:48 -0700 (PDT) Received: from debian.bg45.phnet (gprs21.swisscom-mobile.ch [193.247.250.21]) by mx.google.com with ESMTPS id g12sm1523543bkb.14.2010.08.26.03.26.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 03:26:47 -0700 (PDT) Message-ID: <4C76415C.2060609@gmail.com> Date: Thu, 26 Aug 2010 12:26:36 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6 MIME-Version: 1.0 To: grub-devel@gnu.org References: <4C747249.4080205@gmail.com> <4C74E602.1060308@gmail.com> <4C762609.303@gmail.com> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig8FA5AC8DA65A462D23A61461" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Completely disable graphics support in grub2 x86_64-efi X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Thu, 26 Aug 2010 10:26:53 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8FA5AC8DA65A462D23A61461 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/26/2010 12:04 PM, KESHAV P.R. wrote: > 2010/8/26 Vladimir '=CF=86-coder/phcoder' Serbinenko : > =20 >>> Please include the way mainline handles >>> the issue, as a fallback option in efigfx, in case no graphics/video >>> mode is found. >>> >>> =20 >> I don't understand what happens in your case. According to you >> "videotest" doesn't work (can you confirm?) and according to code GRUB= >> in neither branch tries to detect any other way of configure graphics = on >> EFI. I have a theory that for some reason Linux uses vga_text normally= =2E >> It's possible to have this behaviour with patch at the end of this >> e-mail. But that patch can't be incorporated because there is no way t= o >> actualy check the availability of vga_text on EFI and on EFI as a >> firmware it's usualy not. EFI is pretty loosy firmware and is definite= ly >> not what I recommend. I recognize that in some cases you have to use E= FI >> (if your hardware is shipped with it) but in case of DUET, it's >> specifically searching for trouble. >> =20 > Grub hangs when after trying videotest in the commandline. Recent > firmwares enable bios video while older firmwares use vga_text. > > =20 DUET isn't a firmware > I have attached the tarball of actual video driver VgaMiniPort enabled > in EDK1 DUET. The other video driver option BiosVideo is not compiling > in EDK1 DUET. I think grub2 tries for the 2nd video driver to be > present in the firmware. > > =20 GRUB doesn't handle the choice of driver by EFI. I would recommend loading only efi_gop since efi_uga is hacky. If you supply the qemu image to test I might be interested in finding out the reason of this. >> Additionaly DUET is labeled as being for test purposes only and not fo= r >> regular use. >> =20 > I know it is for test purposes only. I compile DUET (both EDK and > EDK2) in windows using visual studio. I use DUET to boot windows 7 x64 > in UEFI-GPT mode because I have a GPT partitioned disk in a way hybrid > mbr cannot be used because I need access to all the partitions in > windows. Windows does not allow mixing BIOS+GPT Call Microsoft, and tell them to stop telling the crap about the impossibility of GPT+BIOS. > like linux or grub2 > allows. If you to try the DUET firmwares you can download it from > http://tiano-efi-duet-folder-sk.4shared.com/ where I have given > instructions on how to set it up (requires windows). > > =20 EDK2 can be compiled with mingw under GNU/Linux. You don't approach the problem from right angle. Rather than trying to make grub work under DUET with all the incurring penalties you should look into loading DUET from GRUB. If DUET supported multiboot it would be trivial. I would recommend suggesting multibootor multiboot2 to DUET guys. With lack of those you need to stick to chainloader. > Regards. > > Keshav. > > =20 >> =3D=3D=3D modified file 'grub-core/loader/i386/linux.c' >> --- grub-core/loader/i386/linux.c 2010-04-21 17:13:45 +0000 >> +++ grub-core/loader/i386/linux.c 2010-08-26 08:20:20 +0000 >> @@ -638,7 +638,7 @@ >> } >> else >> { >> -#if defined (GRUB_MACHINE_PCBIOS) || defined (GRUB_MACHINE_COREBOOT) = || >> defined (GRUB_MACHINE_QEMU) >> +#if 1 >> params->have_vga =3D GRUB_VIDEO_LINUX_TYPE_TEXT; >> params->video_mode =3D 0x3; >> #else >> >> >> =20 >>> Regards. >>> >>> Keshav >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> http://lists.gnu.org/mailman/listinfo/grub-devel >>> >>> >>> =20 >> >> -- >> Regards >> Vladimir '=CF=86-coder/phcoder' Serbinenko >> >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> =20 >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig8FA5AC8DA65A462D23A61461 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.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkx2QWUACgkQNak7dOguQgn2xAD+KNqK4B2mCZpwesiSCAGurrgn Ug0z9kNKS15GMx356Y0A/1iDx24lSIg/W+wRIOjPV6SbyyrSCBydmyRhUKyBW3d7 =Qp4k -----END PGP SIGNATURE----- --------------enig8FA5AC8DA65A462D23A61461--