From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ma1-aaemail-dr-lapp02.apple.com (ma1-aaemail-dr-lapp02.apple.com [17.171.2.68]) by mx.groups.io with SMTP id smtpd.web10.2378.1570861645613399698 for ; Fri, 11 Oct 2019 23:27:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=PNNvqOwV; spf=pass (domain: apple.com, ip: 17.171.2.68, mailfrom: afish@apple.com) Received: from pps.filterd (ma1-aaemail-dr-lapp02.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp02.apple.com (8.16.0.27/8.16.0.27) with SMTP id x9C6RKed001338; Fri, 11 Oct 2019 23:27:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=sender : from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=vCqdljAtv3CLsnMMNwA66Q+uuck+Xm8YRL+pZhzXA+M=; b=PNNvqOwVb6kzH7Lc1dCRCrg8tfMquGTYt4MonY5AyPklmUJvZk3zRbnpEPrVFL8MEjNW MQ6OY1VlTUFSdR/yw7LFSbO3CYbV73OSDISSLpS3UvINrXTJuZFHY0eerdvR9wcAshk/ N8bC1KUchEDEtctwqy7Y+M9AR9K+/JqUzG1y/0eIg8Ww/ReU829x8dMFlnFcizo/8wVK 4H2nOJ2qv4rDGFgdOJxY6yWF9AhmuzEer0rhJhZeZj69pxgx5+LpNDs0I7MU2H7tQm7G jhQe+nqndpr1FNqcV19C7CxloQp8UGW0bfy1LMCiCfFmyzfUeb+8JMurUjpjgWC5FaEi ZA== Received: from ma1-mtap-s01.corp.apple.com (ma1-mtap-s01.corp.apple.com [17.40.76.5]) by ma1-aaemail-dr-lapp02.apple.com with ESMTP id 2vequx8bs7-10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 11 Oct 2019 23:27:23 -0700 Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by ma1-mtap-s01.corp.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPS id <0PZ9007K20LJLU20@ma1-mtap-s01.corp.apple.com>; Fri, 11 Oct 2019 23:27:19 -0700 (PDT) Received: from process_milters-daemon.nwk-mmpp-sz09.apple.com by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0PZ800100ZNHRE00@nwk-mmpp-sz09.apple.com>; Fri, 11 Oct 2019 23:27:19 -0700 (PDT) X-Va-A: X-Va-T-CD: 8470012fde081de1423ca349c61f0567 X-Va-E-CD: c45a85035969dbe72d76011f9b4a5dcb X-Va-R-CD: bafbfdcfb394704e62e9aa060f553ed5 X-Va-CD: 0 X-Va-ID: 9788f0dd-07f3-4a87-bfa8-9c67818da080 X-V-A: X-V-T-CD: 8470012fde081de1423ca349c61f0567 X-V-E-CD: c45a85035969dbe72d76011f9b4a5dcb X-V-R-CD: bafbfdcfb394704e62e9aa060f553ed5 X-V-CD: 0 X-V-ID: 26accf95-e55c-48e0-96cb-f180cd9c0046 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-12_03:,, signatures=0 Received: from [17.235.27.235] (unknown [17.235.27.235]) by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0PZ900F8O0L9V970@nwk-mmpp-sz09.apple.com>; Fri, 11 Oct 2019 23:27:11 -0700 (PDT) Sender: afish@apple.com From: "Andrew Fish" Message-id: <4006049B-57D4-46F7-BB84-C8DA11B2A844@apple.com> MIME-version: 1.0 (Mac OS X Mail 13.0 \(3594.4.17\)) Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp Date: Fri, 11 Oct 2019 23:27:09 -0700 In-reply-to: <50E163A92F208D4B8CEB452055E613EB0AFE8F18@SHSMSX101.ccr.corp.intel.com> Cc: David Woodhouse , Laszlo Ersek To: devel@edk2.groups.io, junhao.gao@intel.com References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> <15CC73B09CF3FDD9.17220@groups.io> <50E163A92F208D4B8CEB452055E613EB0AFE8C2B@SHSMSX101.ccr.corp.intel.com> <0d2c8aa3-0147-d297-5d03-21562e438fdf@redhat.com> <26980775fc87acc8c4d180626d853607e9f20b0e.camel@infradead.org> <50E163A92F208D4B8CEB452055E613EB0AFE8F18@SHSMSX101.ccr.corp.intel.com> X-Mailer: Apple Mail (2.3594.4.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-12_03:,, signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_F3E83584-0F81-492F-A547-24DB4A6DA9EF" --Apple-Mail=_F3E83584-0F81-492F-A547-24DB4A6DA9EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Junhao FYI there is a regression in master for OVFM right now: https://bugzilla.t= ianocore.org/show_bug.cgi?id=3D2266 so you might be hitting that. Thanks, Andrew Fish > On Oct 11, 2019, at 11:13 PM, Junhao Gao wrote: >=20 >=20 >=20 >> -----Original Message----- >> From: David Woodhouse = > >> Sent: Friday, October 11, 2019 10:36 PM >> To: Laszlo Ersek >; Gao, J= unhao >; >> devel@edk2.groups.io >> Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp >>=20 >> On Fri, 2019-10-11 at 16:27 +0200, Laszlo Ersek wrote: >>> On 10/11/19 09:44, Gao, Junhao wrote: >>>> Hi David >>>>=20 >>>> I have found this compiled OVMF-with-csm.fd can support winxp b= ooting >> up. >>>> OVMF-with-csm.fd path: >> https://www.kraxel.org/repos/jenkins/seabios/seabios.git-csm-1.12.0- >> 33.63.g43f5df7.x86_64.rpm >>>> Then could you help to provide me the compile method and base c= ode to >> reproduce this OVMF-with-csm.fd? >>>=20 >>> Ah, good point, I should have remembered that Gerd offers a CSM build = in >>> his repo! >>>=20 >>> So, you can easily look up the build instructions, in Gerd's SeaBIOS a= nd >>> OVMF RPM "spec" files. Check out these git repositories: >>>=20 >>> https://git.kraxel.org/cgit/jenkins/seabios/ >>> https://git.kraxel.org/cgit/jenkins/edk2/ >>>=20 >>> Specifically: >>>=20 >>> https://git.kraxel.org/cgit/jenkins/seabios/tree/seabios.git.spec >>> https://git.kraxel.org/cgit/jenkins/edk2/tree/edk2.git.spec.template >>=20 >> Right, thanks. >>=20 >> Ultimately it's as simple as: >>=20 >> =E2=80=A2 Build SeaBIOS with CONFIG_CSM >> =E2=80=A2 Drop the resulting Csm16.bin into OvmfPkg/Csm/Csm16/ in the E= DK2 tree >> =E2=80=A2 Build EDK2 with -DCSM_ENABLE >>=20 >=20 > Thanks David, follow these steps, I can reproduce the OVMF-with-csm.fd. > However, I find that when I choose remotes/origin/master branch, after c= ompiling, qemu+kvm+ovmf+winxp can't=20 > boot up, but when I choose remotes/origin/UDK2018, the compiled OVMF.fd = can work. > So the latest edk2 code have removed CSM support? Could I apply the CSM = patch to=20 > the latest edk2 code to support my work because our project is based on = the latest EDK2 code, thanks. >=20 >> Someone else mailed me recently to say they'd copied the Csm packages >> over from OvmfPkg to Quark and had Windows booting on Galileo boards. >>=20 >> Hm, I wonder if we should move the CSM support out of OVMF and into >> somewhere more generic, since it really is generic and not platform- >> specific? >=20 > I can't make some decisions, from my view, maybe CSM module can be=20 > an independent patch for user to apply or reject :) >=20 >=20 --Apple-Mail=_F3E83584-0F81-492F-A547-24DB4A6DA9EF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Junhao  


FYI there is a regression in master f= or OVFM right now: https://bugzilla.tianocore.org/show_bug.cgi?id=3D= 2266 so you might be hitting that.


Thanks,

Andrew Fish

On Oct 11, 2019, at 11:13 PM, Junhao Gao &l= t;junhao.gao@intel.com> wrote:

=

-----Original Message-----
From: David= Woodhouse <
dwmw2@infr= adead.org>
Sent: Friday, October 11, 2019 10:36 PM
To: Laszlo Ersek <lersek@redhat.com>; Gao, Junhao <junhao.gao@intel.com>;
devel@edk2.groups.io
Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp

On Fri, 2019-10-11 at 16:27 +0200, Laszlo Ersek wr= ote:
On 10/11/19 09:44, = Gao, Junhao wrote:
Hi Da= vid

      I have= found this compiled OVMF-with-csm.fd can support winxp booting
up.
     = ; OVMF-with-csm.fd path:
https://www.kraxel.org/repos/jenkins/seabios/seabios.git-csm-1.= 12.0-
33.63.g43f5df7.x86_64.rpm
  =     Then could you help to provide me the compile metho= d and base code to
reproduce this O= VMF-with-csm.fd?

Ah, good point, I should have remembered that Gerd offers a CSM bui= ld in
his repo!

So, you can easi= ly look up the build instructions, in Gerd's SeaBIOS and
OVMF= RPM "spec" files. Check out these git repositories:

 https://git.kraxel.org/cgit/jenkins/seabios/
&nb= sp;https://git.kraxel.org/cgit/jenkins/edk2/

S= pecifically:

 https://git.kraxel.org/cgit= /jenkins/seabios/tree/seabios.git.spec
 https://git.krax= el.org/cgit/jenkins/edk2/tree/edk2.git.spec.template

Right, thanks.

Ultimately = it's as simple as:

=E2=80=A2 Build SeaBIOS wit= h CONFIG_CSM
=E2=80=A2 Drop the resulting Csm16.bin into Ovmf= Pkg/Csm/Csm16/ in the EDK2 tree
=E2=80=A2 Build EDK2 with -DC= SM_ENABLE


Thanks David, follow these steps, I can reproduce th= e OVMF-with-csm.fd.
How= ever, I find that when I choose remotes/origin/master branch, after compili= ng, qemu+kvm+ovmf+winxp can't 
boot up, but when= I choose remotes/origin/UDK2018, the compiled OVMF.fd can work.
So the latest edk2 code have remo= ved CSM support? Could I apply the CSM patch to 
the latest edk2 code to support my work because our project is based on th= e latest EDK2 code, thanks.
Someone else maile= d me recently to say they'd copied the Csm packages
over from= OvmfPkg to Quark and had Windows booting on Galileo boards.
=
Hm, I wonder if we should move the CSM support out of OVMF a= nd into
somewhere more generic, since it really is generic an= d not platform-
specific?

I can't make some decisions, from my = view, maybe CSM module can be 
an independent pa= tch for user to apply or reject :)


--Apple-Mail=_F3E83584-0F81-492F-A547-24DB4A6DA9EF--